Device positioning system, method and electronic device
By setting up iBeacon broadcasting devices and Bluetooth beacon devices in the cabinet and combining them with positioning lights, intelligent positioning of equipment in the computer room is achieved, solving the time-consuming and labor-intensive problem of equipment positioning in the computer room and simplifying equipment management.
Patent Information
- Application Number
- CN202310370717.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2043-04-07
AI Technical Summary
Finding equipment in a computer room consumes time and manpower, especially in very large computer rooms where equipment location is difficult.
An iBeacon broadcast device is set up in each cabinet, which communicates with the mobile terminal through the Bluetooth beacon device, generates and sends a data packet containing the device location information, and uses the positioning light to assist in positioning.
It realizes intelligent positioning of equipment, simplifies equipment management, and reduces the difficulty and time cost of finding equipment.
Smart Images

Figure CN116668941B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a device positioning system, method and electronic equipment. Background Art
[0002] Currently, there are many storage devices in the computer room, and the distribution of computer room areas is relatively complex. If you want to enter the computer room to find a certain device, you need to first search the electronic file of the computer room equipment, find the computer room area, computer room number, cabinet number and other information where the device is located in the electronic file; apply for computer room access control based on the information provided by the electronic file, and then manually find the target computer room area, target computer room, target cabinet, and target device.
[0003] This manual search method to locate equipment is time-consuming and labor-intensive. For extra-large computer rooms, the difficulty of finding equipment increases. Summary of the Invention
[0004] In view of the problems existing in the prior art, embodiments of the present invention provide a device positioning system, method and electronic device.
[0005] In a first aspect, an embodiment of the present invention provides a device positioning system for positioning a device to be positioned, wherein the device to be positioned is stored in a cabinet in a computer room, and the device positioning system includes: at least one iBeacon broadcasting device and a Bluetooth beacon device;
[0006] The iBeacon broadcasting device is stored in the cabinet, wherein one iBeacon broadcasting device is set in each cabinet in each of the computer rooms;
[0007] A Bluetooth beacon device is installed in the storage area of each device to be located;
[0008] The iBeacon broadcasting device is used to send a broadcast message within the broadcast range of the iBeacon broadcasting device, wherein the broadcast message includes information about the device to be located stored in the cabinet matched with the iBeacon broadcasting device;
[0009] The Bluetooth beacon device is configured to, upon receiving a first data packet sent by a mobile terminal, generate a second data packet corresponding to the first data packet based on information of a computer room and a cabinet where the device to be located is located, as matched by the Bluetooth beacon device, and send the second data packet to the mobile terminal;
[0010] The second data packet is used to enable the mobile terminal to obtain the location information of the device to be located.
[0011] In some embodiments, the first data packet is generated by the mobile terminal based on the location information of the mobile terminal when the mobile terminal receives a target broadcast message sent by the iBeacon broadcast device; the target broadcast message carries information of the target device to be located, and the target device to be located is the device to be located that the mobile terminal needs to locate.
[0012] In some embodiments, a positioning light is further installed in the storage area of each of the devices to be positioned;
[0013] The positioning light is configured to flash when the Bluetooth beacon device of the device to be located receives the first data packet sent by the mobile terminal.
[0014] In a second aspect, an embodiment of the present invention further provides a device positioning method, which is applied to the above-mentioned device positioning system, comprising:
[0015] Sending a broadcast message based on an iBeacon broadcast device, wherein the broadcast message includes information about the device to be located stored in a cabinet matched with the iBeacon broadcast device;
[0016] When the Bluetooth beacon device receives the first data packet sent by the mobile terminal, generating a second data packet corresponding to the first data packet according to the information of the computer room and cabinet where the device to be located is located matched by the Bluetooth beacon device, and sending the second data packet to the mobile terminal;
[0017] The second data packet is used to enable the mobile terminal to obtain the location information of the device to be located.
[0018] In some embodiments, the first data packet is generated by the mobile terminal based on the location information of the mobile terminal when the mobile terminal receives a target broadcast message sent by the iBeacon broadcast device; the target broadcast message carries information of the target device to be located, and the target device to be located is the device to be located that the mobile terminal needs to locate.
[0019] In some embodiments, after the Bluetooth beacon device receives the first data packet sent by the mobile terminal, the method further includes:
[0020] Control the positioning light of the device to be located that matches the Bluetooth beacon device to flash.
[0021] In a third aspect, an embodiment of the present invention further provides a device positioning method, applied to a mobile terminal, comprising:
[0022] Receive and parse the broadcast message sent by the iBeacon broadcast device to obtain a parsing result, wherein the broadcast message carries information about the device to be located stored in the cabinet matched with the iBeacon broadcast device;
[0023] generating a first data packet when it is determined that the broadcast message is a target broadcast message according to the analysis result, wherein the target broadcast message carries information of a target device to be located, and the target device to be located is a device to be located that the mobile terminal needs to locate;
[0024] Sending the first data packet to a Bluetooth beacon device that matches the target device to be located;
[0025] Receive and parse the second data packet returned by the Bluetooth beacon device to obtain information about the computer room and cabinet where the target device to be located is located, and compare the information about the computer room and cabinet where the target device to be located is located with the information about the computer room and cabinet corresponding to the target device to be located stored on the mobile terminal. If the comparison is consistent, obtain the location information of the target device to be located based on the second data packet and the first data packet.
[0026] In some embodiments, the first data packet is generated based on location information of the mobile terminal.
[0027] In some embodiments, obtaining the location information of the target device to be located according to the second data packet and the first data packet includes:
[0028] determining a relative distance between the target device to be located and the mobile terminal according to a sending time of the first data packet, a receiving time of the second data packet, and a signal strength value of the target broadcast message;
[0029] The location information of the target device to be located is obtained according to the location information of the mobile terminal in the first data packet and the relative distance.
[0030] In a fourth aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-described device positioning methods when executing the computer program.
[0031] The present invention provides a device positioning system, method and electronic device, wherein the system is used to locate the device to be positioned, the device to be positioned is stored in a cabinet in a computer room, the system includes at least one iBeacon broadcasting device and a Bluetooth beacon device, the iBeacon broadcasting device is stored in the cabinet, wherein an iBeacon broadcasting device is set in each cabinet in each computer room, the iBeacon broadcasting device is used to send a broadcast message within the broadcast range of the iBeacon broadcasting device, the broadcast message includes the information of the device to be positioned stored in the computer room matched by the iBeacon broadcasting device, so that the iBeacon broadcasting device is set in each computer room to broadcast the information to the outside. The present invention can realize intelligent positioning of the device to be located in the computer room by configuring an iBeacon broadcasting device in each computer room and configuring a Bluetooth beacon on each device to be located, thereby simplifying the positioning method of the device to be located and reducing the difficulty of finding the device to be located. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 This is a schematic diagram of the deployment position structure of each device in the device positioning system provided by the present invention;
[0034] Figure 2 This is one of the flow charts of the device positioning method provided by the present invention;
[0035] Figure 3 This is the second flow chart of the device positioning method provided by the present invention. DETAILED DESCRIPTION
[0036] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0037] The present invention provides a device positioning system for locating a device to be located. The device to be located is stored in a cabinet in a computer room. The system includes at least one iBeacon broadcast device and a Bluetooth beacon device. It should be noted that the device to be located in this embodiment refers to a device stored in a cabinet in a computer room, such as a server, switch, or hardware gateway, and is not limited to this.
[0038] refer to Figure 1 , Figure 1 This is a schematic diagram of the deployment location structure of each device in the device positioning system provided by the present invention, such as Figure 1 As shown, the iBeacon broadcasting device 101 is stored in a cabinet, and one iBeacon broadcasting device 101 is set in each cabinet in each computer room.
[0039] A Bluetooth beacon device 102 is installed in the storage area of each device to be located 103 .
[0040] The iBeacon broadcasting device 101 is used to send a broadcast message within the broadcast range of the iBeacon broadcasting device 101, and the broadcast message includes information about the device to be located stored in the machine room matched with the iBeacon broadcasting device 101;
[0041] It can be understood that the core of the iBeacon broadcasting device 101 is broadcasting, and it does not need to connect to other terminal devices. It inserts the information to be broadcast into the broadcast packet and then broadcasts it.
[0042] The broadcast message sent by the iBeacon broadcasting device 101 includes a UUID field, a Major field, and a Minor field, wherein the UUID field is used to characterize the organization used for the iBeacon broadcasting device, and the Major field and the Minor field are used to encode location information. Typically, the Major field is used to indicate a certain building (area), and the Minor field is used to indicate a specific location in the building (area).
[0043] In this embodiment, since there are a large number of computer rooms, each computer room is provided with multiple cabinets, and each cabinet stores multiple devices to be located 103, in order to achieve intelligent management of the devices to be located 103, an iBeacon broadcasting device 101 is set in each cabinet.
[0044] Furthermore, for ease of management, it is stipulated that the iBeacon broadcasting devices 101 of all cabinets in each computer room occupy the same UUID field, each cabinet in the computer room occupies a separate Major field, and a device to be located 103 in the cabinet occupies a separate Minor field.
[0045] In other words, in this embodiment, the broadcast message includes the UUID field of the iBeacon broadcasting device matched with the computer room, the Minor field of each cabinet in the computer room, and the Major field information of each device to be located 103. In this way, the mobile terminal can parse the information of the device to be located stored in each cabinet through this information.
[0046] The Bluetooth beacon device 102 is configured to, upon receiving a first data packet sent by the mobile terminal, generate a second data packet corresponding to the first data packet based on the information of the computer room and cabinet where the device to be located 103 is located, matched by the Bluetooth beacon device 102, and send the second data packet to the mobile terminal;
[0047] Among them, the mobile terminal pre-stores the Minor field of each device to be located 103, the Major field of the cabinet where the device to be located 103 is located, and the UUID field information of the computer room. After the mobile terminal enters the broadcast range of the iBeacon broadcasting device 101 in the cabinet, it will receive the broadcast message sent by the iBeacon broadcasting device 101. The mobile terminal parses the broadcast message and determines, based on the result of the parsing, whether the broadcast message sent by the iBeacon broadcasting device 101 includes the information of the device to be located (i.e., the target device to be located) that the current mobile terminal needs to find. If included, the mobile terminal will send a first data packet to the Bluetooth beacon device 102 in the storage area of the target device to be located 103 based on the parsed information of the target device to be located.
[0048] After receiving the first data packet, the Bluetooth beacon device 102 adds the Major field of the cabinet where the target device to be located 103 is located and the UUID field information of the computer room to the corresponding fields in the first data packet to generate a second data packet, and sends the second data packet to the mobile terminal.
[0049] The second data packet is used to enable the mobile terminal to obtain the location information of the device to be located 103 .
[0050] Specifically, after receiving the second data packet, the mobile terminal parses the Major field of the cabinet where the device to be located 103 added by the Bluetooth beacon device 102 in the second data packet is located and the UUID field information of the computer room, and compares the information with the Major field and UUID field information corresponding to the device to be located (i.e., the target device to be located) 103 stored on the mobile terminal. If the comparison is consistent, it is determined that the target device to be located 103 is found.
[0051] Furthermore, the first data packet is generated by the mobile terminal according to the location information of the mobile terminal when the mobile terminal receives the target broadcast message sent by the iBeacon broadcast device 101; the target broadcast message carries information of the target device to be located, and the target device to be located is the device to be located 103 that the mobile terminal needs to locate.
[0052] After the mobile terminal enters the broadcast range of the iBeacon broadcast device 101, it will receive at least one broadcast message. It should be understood that the UUID field in the broadcast message sent by the iBeacon broadcast device 101 in different computer rooms is different. Therefore, the mobile terminal will first find the computer room where the device to be located 103 that the current mobile terminal needs to find is located based on the UUID field in the broadcast message. After reaching the computer room, it will further determine whether the target broadcast message is received based on the Major field and Minor field in the broadcast message.
[0053] Among them, the mobile terminal also pre-stores a Bluetooth beacon mapping table corresponding to the cabinet where each iBeacon broadcasting device 101 is located. The Bluetooth beacon mapping table records the mapping relationship between the Minor field corresponding to each device to be located 103 and the IP address of the Bluetooth beacon device 102 corresponding to each device to be located 103.
[0054] After receiving the target broadcast message, the mobile terminal determines the IP address of the Bluetooth beacon device 102 corresponding to the device 103 to be located that the current mobile terminal needs to find according to the Bluetooth beacon mapping table corresponding to the cabinet where the iBeacon broadcast device 101 that sends the target broadcast message is located, and sends a first data packet containing the location information of the mobile terminal to the Bluetooth beacon device 102 through this IP address, so that the location information of the device 103 to be located can be obtained based on the location information in the first data packet, and the second data packet returned by the Bluetooth beacon device 102 can be received.
[0055] It should be noted that since both the Bluetooth beacon device and the iBeacon broadcasting device are wireless electronic devices that transmit messages through the Bluetooth broadcast protocol, and the Bluetooth beacon device 102 installed in the storage area of the device to be located 103 is close to the position of the iBeacon broadcasting device 101 installed on the cabinet where the device to be located 103 is located, the channel signal transmission rate between the mobile terminal and the iBeacon broadcasting device 101 estimated based on the signal strength value of the broadcast message sent by the iBeacon broadcasting device 101 will be used as the channel signal transmission rate of the Bluetooth beacon device 102 on the cabinet.
[0056] The mobile terminal determines the channel signal transmission rate between the mobile terminal and the Bluetooth beacon device 102 based on the signal strength value of the received target broadcast message, determines the relative distance between the device to be located 103 and the mobile terminal based on the sending time of the first data packet, the receiving time of the second data packet and the channel signal transmission rate, and finally, based on the relative distance and the location information of the mobile terminal, displays the location information of the device to be located 103 on the display screen of the mobile terminal. The user can find the device to be located 103 through the displayed location information.
[0057] Furthermore, in some embodiments, the device positioning system also includes a positioning light 104, and a positioning light 104 is also installed in the storage area of each device to be positioned 103; the positioning light 104 is used to flash when the Bluetooth beacon device 102 of the device to be positioned 103 receives the first data packet sent by the mobile terminal.
[0058] Since a cabinet may store many devices to be located 103, when the Bluetooth beacon device 102 receives the first data packet sent by the mobile terminal, it will also send a control signal to the positioning light 104 in the storage area where the Bluetooth beacon device 102 is located to prompt the positioning light 104 to flash. In this way, when the mobile terminal reaches the cabinet where the device to be located that the mobile terminal needs to find is located, the device to be located 103 can be immediately found through the flashing positioning light 104.
[0059] The device positioning system provided by the present invention transmits information of devices to be positioned stored in the computer room by setting an iBeacon broadcasting device in each computer room; and a Bluetooth beacon device is installed in the storage area of each device to be positioned, and the computer room information and cabinet information of the device to be positioned are matched by the Bluetooth beacon device to generate a second data packet corresponding to the first data packet, and the second data packet is sent to the mobile terminal; the second data packet is used to enable the mobile terminal to obtain the location information of the device to be positioned. In this way, the present invention realizes intelligent positioning of the device to be positioned in the computer room by configuring an iBeacon broadcasting device in each computer room and configuring a Bluetooth beacon on each device to be positioned, thereby simplifying the management method of the device to be positioned and reducing the difficulty of finding the device to be positioned.
[0060] Figure 2 This is one of the flow charts of the device positioning method provided by the present invention, such as Figure 2 As shown, the execution subject of the method can be any of the above-mentioned device positioning systems. The method includes:
[0061] Step 201: Send a broadcast message based on an iBeacon broadcast device, wherein the broadcast message includes information of a device to be located stored in a cabinet matched with the iBeacon broadcast device;
[0062] The broadcast message sent by the iBeacon broadcasting device includes the UUID field, Major field and Minor field. Among them, the UUID field is used to characterize the organization used for the iBeacon broadcasting device, and the Major field and Minor field are used to encode location information. Usually, the Major field is used to indicate a certain building (area), and the Minor field is used to indicate a specific location in this building (area).
[0063] In this embodiment, since there are a large number of computer rooms, and each computer room is equipped with multiple cabinets, and each organization stores multiple devices to be located, in order to realize the intelligent management of the devices to be located, an iBeacon broadcasting device is set in each cabinet. Furthermore, in order to facilitate management, it is stipulated that the iBeacon broadcasting devices of all cabinets in each computer room occupy the same UUID field, each cabinet in the computer room occupies a Major field, and a device to be located in the cabinet occupies a Minor field.
[0064] In other words, in this implementation, the broadcast message includes the UUID field of the iBeacon broadcasting device that matches the computer room, the Minor field of each cabinet in the computer room, and the Major field information of each device to be located. In this way, the mobile terminal can parse the information of the device to be located stored in each cabinet through this information.
[0065] Step 202: When the Bluetooth beacon device receives the first data packet sent by the mobile terminal, a second data packet corresponding to the first data packet is generated based on the information of the computer room and cabinet where the device to be located is located, which is matched by the Bluetooth beacon device, and the second data packet is sent to the mobile terminal.
[0066] The second data packet is used to enable the mobile terminal to obtain the location information of the device to be located.
[0067] Among them, the mobile terminal pre-stores the Minor field of each device to be located, the Major field of the cabinet where the device to be located is located, and the UUID field information of the computer room. After the mobile terminal enters the broadcast range of the iBeacon broadcasting device in the cabinet, it will receive the broadcast message sent by the iBeacon broadcasting device. The mobile terminal parses the broadcast message and determines, based on the result of the analysis, whether the broadcast message sent by the iBeacon broadcasting device includes the information of the device to be located that the current mobile terminal needs to find. If included, the mobile terminal will send a first data packet to the Bluetooth beacon device in the storage area of the corresponding device to be located according to the parsed information of the device to be located.
[0068] After receiving the first data packet, the Bluetooth beacon device adds the Major field of the cabinet where the device to be located is located and the UUID field information of the computer room to the corresponding fields in the first data packet to generate a second data packet, and sends the second data packet to the mobile terminal.
[0069] Specifically, the first data packet is generated by the mobile terminal according to the location information of the mobile terminal when the mobile terminal receives the target broadcast message sent by the iBeacon broadcast device; the target broadcast message carries information of the target device to be located, and the target device to be located is the device to be located that the mobile terminal needs to locate.
[0070] After the mobile terminal enters the broadcast range of the iBeacon broadcast device, it will receive at least one broadcast message. It should be understood that the UUID field in the broadcast message sent by the iBeacon broadcast device in different computer rooms is different. Therefore, the mobile terminal will first find the computer room where the target device to be located that the current mobile terminal needs to find is located based on the UUID field in the broadcast message. After reaching the computer room, it will further determine whether the target broadcast message is received based on the Major field and Minor field in the broadcast message.
[0071] The mobile terminal also pre-stores a Bluetooth beacon mapping table corresponding to the cabinet where each iBeacon broadcast device is located. The Bluetooth beacon mapping table records the mapping relationship between the Minor field corresponding to each device to be located and the IP address of the Bluetooth beacon device corresponding to each device to be located. After receiving the target broadcast message, the mobile terminal determines the IP address of the Bluetooth beacon device corresponding to the target device to be located that the mobile terminal needs to find based on the Bluetooth beacon mapping table corresponding to the cabinet where the iBeacon broadcast device that sent the target broadcast message is located. The mobile terminal sends a first data packet containing the location information of the mobile terminal to the Bluetooth beacon device through this IP address, and receives a second data packet returned by the Bluetooth beacon device.
[0072] It should be noted that since both Bluetooth beacon devices and iBeacon broadcasting devices are wireless electronic devices that transmit messages through the Bluetooth broadcast protocol, and the Bluetooth beacon device installed in the storage area of the device to be located is close to the position of the iBeacon broadcasting device installed on the cabinet where the device to be located is located, the channel signal transmission rate between the mobile terminal and the iBeacon broadcasting device estimated based on the signal strength value of the broadcast message sent by the iBeacon broadcasting device will be used as the channel signal transmission rate of the Bluetooth beacon device on the cabinet.
[0073] The mobile terminal determines the channel signal transmission rate between the mobile terminal and the Bluetooth beacon device based on the signal strength value of the received target broadcast message, determines the relative distance between the device to be located and the mobile terminal based on the sending time of the first data packet, the receiving time of the second data packet and the channel signal transmission rate, and finally, based on the relative distance and the location information of the mobile terminal, displays the location information of the device to be located on the display screen of the mobile terminal. The user can find the device to be located through the displayed location information.
[0074] The device positioning method provided by the present invention sends a broadcast message based on an iBeacon broadcast device, where the broadcast message includes information about the device to be positioned stored in a computer room matched by the iBeacon broadcast device; when a Bluetooth beacon device receives a first data packet sent by a mobile terminal, a second data packet corresponding to the first data packet is generated according to the computer room and cabinet where the device to be positioned is located matched by the Bluetooth beacon device, and the second data packet is sent to the mobile terminal; the second data packet is used to enable the mobile terminal to locate the device to be positioned. In this way, the present invention realizes intelligent positioning of the device to be positioned in the computer room by configuring an iBeacon broadcast device in each computer room and configuring a Bluetooth beacon on each device to be positioned, thereby simplifying the management method of the device to be positioned and reducing the difficulty of finding the device to be positioned.
[0075] In some embodiments, after the Bluetooth beacon device receives the first data packet sent by the mobile terminal, the method further includes:
[0076] Control the positioning light of the device to be located that matches the Bluetooth beacon device to flash.
[0077] Since a cabinet may store many devices to be located, when the Bluetooth beacon device receives the first data packet sent by the mobile terminal, it will also send a control signal to the positioning light in the storage area where the Bluetooth beacon device is located to prompt the positioning light to flash. In this way, when the mobile terminal reaches the cabinet where the target device to be located is located, the target device to be located can be immediately found through the flashing positioning light.
[0078] Figure 3 This is one of the flow charts of the device positioning method provided by the present invention, such as Figure 3 As shown, the execution subject of the method is a mobile terminal that interacts with the above-mentioned device positioning system. The method includes:
[0079] Step 301: Receive and parse a broadcast message sent by an iBeacon broadcast device to obtain a parsing result, wherein the broadcast message carries information about a device to be located stored in a cabinet matched with the iBeacon broadcast device;
[0080] Specifically, the broadcast message sent by the iBeacon broadcast device includes the UUID field of the iBeacon broadcast device matching the room, the Minor field of each cabinet in the room, and the Major field information of each device to be located. In this way, the mobile terminal can parse the information of the device to be located stored in each cabinet through this information.
[0081] Step 302: If the broadcast message is determined to be a target broadcast message according to the analysis result, a first data packet is generated, wherein the target broadcast message carries information of a target device to be located, and the target device to be located is the device to be located that the mobile terminal needs to locate.
[0082] Among them, the mobile terminal pre-stores the Minor field of each device to be located, the Major field of the cabinet where the device to be located is located, and the UUID field information of the computer room. The mobile terminal will determine whether the broadcast message sent by the iBeacon broadcast device carries the information of the target device to be located based on the analysis result.
[0083] The first data packet is generated according to the location information of the mobile terminal.
[0084] After the mobile terminal enters the broadcast range of the iBeacon broadcast device, it will receive at least one broadcast message. It should be understood that the UUID field in the broadcast message sent by the iBeacon broadcast device in different computer rooms is different. Therefore, the mobile terminal will first find the computer room where the target device to be located that the current mobile terminal needs to find is located based on the UUID field in the broadcast message. After reaching the computer room, it will further determine whether the target broadcast message is received based on the Major field and Minor field in the broadcast message.
[0085] When the target broadcast message is received, the location information of the current mobile terminal is determined, and a first data packet containing the location information is generated, so as to subsequently locate the device to be located according to the location information in the first data packet.
[0086] Step 303: Send the first data packet to the Bluetooth beacon device that matches the target device to be located;
[0087] The mobile terminal also pre-stores a Bluetooth beacon mapping table corresponding to the cabinet where each iBeacon broadcast device is located. The Bluetooth beacon mapping table records the mapping relationship between the Minor field corresponding to each device to be located and the IP address of the Bluetooth beacon device corresponding to each device to be located. After receiving the target broadcast message, the mobile terminal determines the IP address of the Bluetooth beacon device corresponding to the device to be located that the mobile terminal needs to find based on the Bluetooth beacon mapping table corresponding to the cabinet where the iBeacon broadcast device that sent the target broadcast message is located, and sends a first data packet containing the location information of the mobile terminal to the Bluetooth beacon device via this IP address.
[0088] Step 304: Receive and parse the second data packet returned by the Bluetooth beacon device to obtain information about the computer room and cabinet where the target device to be located is located, and compare the information about the computer room and cabinet where the target device to be located is located with the information about the computer room and cabinet corresponding to the target device to be located stored on the mobile terminal. If the comparison is consistent, obtain the location information of the target device to be located based on the second data packet and the first data packet.
[0089] Among them, after receiving the first data packet, the Bluetooth beacon device adds the Major field of the cabinet where the device to be located is located and the UUID field information of the computer room matched by the Bluetooth beacon device to the corresponding fields in the first data packet to generate a second data packet, and sends the second data packet to the mobile terminal.
[0090] After receiving the second data packet, the mobile terminal parses the Major field of the cabinet and the UUID field of the computer room where the target device to be located is located, as added by the Bluetooth beacon device in the second data packet. This information is then compared with the Major field and UUID field information corresponding to the target device to be located stored on the mobile terminal. If the comparison is consistent, the target device to be located is determined to have been found. Finally, the target device to be located is located based on the first and second data packets.
[0091] The device positioning method proposed in the present invention generates a first data packet when it is determined that the broadcast message is a target broadcast message according to the analysis result, wherein the target broadcast message carries information of the target device to be positioned, and the target device to be positioned is the device to be positioned that the mobile terminal needs to position; receives and analyzes a second data packet returned by a Bluetooth beacon device to obtain information about the computer room and cabinet where the target device to be positioned is located, and compares the information about the computer room and cabinet where the target device to be positioned is located with the information about the computer room and cabinet corresponding to the target device to be positioned stored on the mobile terminal. If the comparison is consistent, the device to be positioned is located based on the first data packet and the second data packet. In the present invention, when the mobile terminal receives a target broadcast message corresponding to the target device to be positioned that the mobile terminal needs to position, it feeds back a first data packet to the Bluetooth beacon device matched with the target device to be positioned, and locates the target device to be positioned using the second data packet returned by the Bluetooth beacon device and the first data packet sent. In this way, by configuring an iBeacon broadcast device in each computer room and configuring a Bluetooth beacon on each device to be positioned, the mobile terminal can intelligently locate the device to be positioned in the computer room.
[0092] In some embodiments, obtaining the location information of the target device to be located according to the second data packet and the first data packet includes:
[0093] determining a relative distance between the target device to be located and the mobile terminal according to a sending time of the first data packet, a receiving time of the second data packet, and a signal strength value of the target broadcast message;
[0094] The location information of the target device to be located is obtained according to the location information of the mobile terminal in the first data packet and the relative distance.
[0095] It should be noted that since both Bluetooth beacon devices and iBeacon broadcasting devices are wireless electronic devices that transmit messages through the Bluetooth broadcast protocol, and the Bluetooth beacon device installed in the storage area of the device to be located is close to the position of the iBeacon broadcasting device installed on the cabinet where the device to be located is located, the channel signal transmission rate between the mobile terminal and the iBeacon broadcasting device estimated based on the signal strength value of the broadcast message sent by the iBeacon broadcasting device will be used as the channel signal transmission rate of the Bluetooth beacon device on the cabinet.
[0096] The mobile terminal determines the channel signal transmission rate between the mobile terminal and the Bluetooth beacon device based on the signal strength value of the received target broadcast message, determines the relative distance between the target device to be located and the mobile terminal based on the sending time of the first data packet, the receiving time of the second data packet and the channel signal transmission rate, and finally displays the location information of the target device to be located on the display screen of the mobile terminal based on the relative distance and the location information of the mobile terminal. The user can find the target device to be located through the displayed location information.
[0097] The present invention also provides an electronic device, which may include: a processor, a communications interface, a memory, and a communications bus, wherein the processor, the communications interface, and the memory communicate with each other via the communications bus. The processor may call logic instructions in the memory to execute a device positioning method, the method comprising:
[0098] Receive and parse the broadcast message sent by the iBeacon broadcast device to obtain a parsing result, wherein the broadcast message carries information about the device to be located stored in the cabinet matched with the iBeacon broadcast device;
[0099] generating a first data packet when it is determined that the broadcast message is a target broadcast message according to the analysis result, wherein the target broadcast message carries information of a target device to be located, and the target device to be located is a device to be located that the mobile terminal needs to locate;
[0100] Sending the first data packet to a Bluetooth beacon device that matches the target device to be located;
[0101] Receive and parse the second data packet returned by the Bluetooth beacon device to obtain information about the computer room and cabinet where the target device to be located is located, and compare the information about the computer room and cabinet where the target device to be located is located with the information about the computer room and cabinet corresponding to the target device to be located stored on the mobile terminal. If the comparison is consistent, obtain the location information of the target device to be located based on the second data packet and the first data packet.
[0102] In addition, the logical instructions in the above-mentioned memory can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0103] In another aspect, the present invention further provides a computer program product, comprising a computer program. The computer program may be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the device positioning method provided by each of the above methods, the method comprising:
[0104] Receive and parse the broadcast message sent by the iBeacon broadcast device to obtain a parsing result, wherein the broadcast message carries information about the device to be located stored in the cabinet matched with the iBeacon broadcast device;
[0105] generating a first data packet when it is determined that the broadcast message is a target broadcast message according to the analysis result, wherein the target broadcast message carries information of a target device to be located, and the target device to be located is a device to be located that the mobile terminal needs to locate;
[0106] Sending the first data packet to a Bluetooth beacon device that matches the target device to be located;
[0107] Receive and parse the second data packet returned by the Bluetooth beacon device to obtain information about the computer room and cabinet where the target device to be located is located, and compare the information about the computer room and cabinet where the target device to be located is located with the information about the computer room and cabinet corresponding to the target device to be located stored on the mobile terminal. If the comparison is consistent, obtain the location information of the target device to be located based on the second data packet and the first data packet.
[0108] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the device positioning method provided by the above methods is implemented, and the method includes:
[0109] Receive and parse the broadcast message sent by the iBeacon broadcast device to obtain a parsing result, wherein the broadcast message carries information about the device to be located stored in the cabinet matched with the iBeacon broadcast device;
[0110] generating a first data packet when it is determined that the broadcast message is a target broadcast message according to the analysis result, wherein the target broadcast message carries information of a target device to be located, and the target device to be located is a device to be located that the mobile terminal needs to locate;
[0111] Sending the first data packet to a Bluetooth beacon device that matches the target device to be located;
[0112] Receive and parse the second data packet returned by the Bluetooth beacon device to obtain information about the computer room and cabinet where the target device to be located is located, and compare the information about the computer room and cabinet where the target device to be located is located with the information about the computer room and cabinet corresponding to the target device to be located stored on the mobile terminal. If the comparison is consistent, obtain the location information of the target device to be located based on the second data packet and the first data packet.
[0113] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A device positioning system for positioning a device to be positioned, characterized in that: The device to be located is stored in a cabinet in a computer room, and the device positioning system includes: at least one iBeacon broadcasting device and a Bluetooth beacon device; The iBeacon broadcasting device is stored in the cabinet, wherein one iBeacon broadcasting device is set in each cabinet in each of the computer rooms; The iBeacon broadcasting device is used to send a broadcast message within the broadcast range of the iBeacon broadcasting device, wherein the broadcast message includes information about the device to be located stored in the cabinet matched with the iBeacon broadcasting device; The Bluetooth beacon device is configured to, upon receiving a first data packet sent by a mobile terminal, generate a second data packet corresponding to the first data packet based on information of a computer room and a cabinet where the device to be located is located, as matched by the Bluetooth beacon device, and send the second data packet to the mobile terminal; The second data packet is used to enable the mobile terminal to obtain the location information of the device to be located.
2. The device positioning system according to claim 1, characterized in that: The first data packet is generated by the mobile terminal according to the location information of the mobile terminal when the mobile terminal receives the target broadcast message sent by the iBeacon broadcast device; the target broadcast message carries information of the target device to be located, and the target device to be located is the device to be located that the mobile terminal needs to locate.
3. The device positioning system according to claim 1, wherein: A positioning light is also installed in the storage area of each of the devices to be positioned; The positioning light is configured to flash when the Bluetooth beacon device of the device to be located receives the first data packet sent by the mobile terminal.
4. A device positioning method, applied to the device positioning system according to any one of claims 1 to 3, characterized in that: include: Sending a broadcast message based on an iBeacon broadcast device, wherein the broadcast message includes information about the device to be located stored in a cabinet matched with the iBeacon broadcast device; When the Bluetooth beacon device receives the first data packet sent by the mobile terminal, generating a second data packet corresponding to the first data packet according to the information of the computer room and cabinet where the device to be located is located matched by the Bluetooth beacon device, and sending the second data packet to the mobile terminal; The second data packet is used to enable the mobile terminal to obtain the location information of the device to be located.
5. The device positioning method according to claim 4, characterized in that: The first data packet is generated by the mobile terminal according to the location information of the mobile terminal when the mobile terminal receives the target broadcast message sent by the iBeacon broadcast device; the target broadcast message carries information of the target device to be located, and the target device to be located is the device to be located that the mobile terminal needs to locate.
6. The device positioning method according to claim 4, characterized in that: After the Bluetooth beacon device receives the first data packet sent by the mobile terminal, the method further includes: Control the positioning light of the device to be located that matches the Bluetooth beacon device to flash.
7. A device positioning method, applied to a mobile terminal, characterized in that: include: Receive and parse the broadcast message sent by the iBeacon broadcast device to obtain a parsing result, wherein the broadcast message carries information about the device to be located stored in the cabinet matched with the iBeacon broadcast device; generating a first data packet when it is determined that the broadcast message is a target broadcast message according to the analysis result, wherein the target broadcast message carries information of a target device to be located, and the target device to be located is a device to be located that the mobile terminal needs to locate; Sending the first data packet to a Bluetooth beacon device that matches the target device to be located; Receive and parse the second data packet returned by the Bluetooth beacon device to obtain information about the computer room and cabinet where the target device to be located is located, and compare the information about the computer room and cabinet where the target device to be located is located with the information about the computer room and cabinet corresponding to the target device to be located stored on the mobile terminal. If the comparison is consistent, obtain the location information of the target device to be located based on the second data packet and the first data packet.
8. The device positioning method according to claim 7, characterized in that: The first data packet is generated according to the location information of the mobile terminal.
9. The device positioning method according to claim 7, characterized in that: The obtaining the location information of the target device to be located according to the second data packet and the first data packet includes: determining a relative distance between the target device to be located and the mobile terminal according to a sending time of the first data packet, a receiving time of the second data packet, and a signal strength value of the target broadcast message; The location information of the target device to be located is obtained according to the location information of the mobile terminal in the first data packet and the relative distance.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the device positioning method according to any one of claims 7 to 9 is implemented.
Citation Information
Patent Citations
Indoor asset management method, device and system
CN110611876A
Asset management method and system
WO2022052811A1