Equipment management method and device, electronic equipment and storage medium
By configuring the Bluetooth anchor array in the management area, determining the location information of the terminal equipment based on the Bluetooth anchor array, and automatically allocating rooms with the floor plan, the problem of low manual allocation efficiency and error-prone in batch equipment distribution network is solved, and high-precision room allocation is achieved.
Patent Information
- Application Number
- CN202510741878.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-06-05
AI Technical Summary
When distributing batch equipment networks, the prior art requires users to manually set up the room to which the equipment belongs, resulting in low distribution efficiency and error-proneness.
A Bluetooth anchor array is configured in each room in the management area, and the location information of the terminal device is determined through the Bluetooth anchor array, and the room information is automatically allocated in combination with the floor plan of the management area.
It realizes high-precision positioning of terminal equipment and automatically allocates room information without manual settings by users, improving room allocation efficiency and accuracy.
Smart Images

Figure CN120263633A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of smart home, and particularly relates to a device management method, device, electronic device and storage medium. Background Art
[0002] With the development of information technology, the types and quantities of smart devices are increasing, such as smart network cameras, smart TV boxes, smart speakers, etc. Due to structural and cost limitations, these smart devices often do not have a user interaction interface. After the smart devices are networked, an application program is required to manage and control these smart devices. After the smart devices are networked, rooms need to be allocated to enable functions such as remote control, scene setting and control.
[0003] Currently, when performing batch device networking, users need to manually set the rooms to which the devices belong, resulting in low allocation efficiency and easy errors. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a device management method, device, electronic device and storage medium, which can solve the problems of low efficiency and easy errors in manual room allocation during batch device networking in related technologies.
[0005] In a first aspect, the embodiments of this application provide a device management method, which is applied to a server, and the method includes: Configure a Bluetooth anchor array in each room of the management area; Determine the location information of the terminal device based on the Bluetooth anchor array; Determine the room information corresponding to the terminal device according to the location information and the floor plan corresponding to the management area.
[0006] Optionally, the determining the location information of the terminal device based on the Bluetooth anchor array includes: Receive the first information sent by each Bluetooth anchor in the Bluetooth anchor array; the first information is used to reflect the location information of the Bluetooth anchor relative to the terminal device; Determine the location information of the terminal device according to the first information.
[0007] Optionally, the first information includes the signal strength, angle of arrival and time difference of arrival of the signal transmitted between the Bluetooth anchor and the terminal device, and the first position coordinates of the terminal device; The determining the location information of the terminal device according to the first information includes: For each Bluetooth anchor in the Bluetooth anchor array, determine the dynamic weight corresponding to the Bluetooth anchor according to the signal strength, the angle of arrival and the time difference of arrival; Determine the second position coordinate of the terminal device according to the first position coordinates corresponding to each Bluetooth anchor point and the dynamic weight.
[0008] Optionally, the determining the dynamic weight corresponding to the Bluetooth anchor point according to the signal strength, the angle of arrival, and the time difference of arrival includes: Determine a first weight and a first weight coefficient corresponding to the signal strength, a second weight and a second weight coefficient corresponding to the angle of arrival, and a third weight and a third weight coefficient corresponding to the time difference of arrival; Perform a weighted summation operation according to the first weight, the first weight coefficient, the second weight, the second weight coefficient, the third weight, and the third weight coefficient to obtain the dynamic weight.
[0009] Optionally, the method further includes: Adjust at least one of the first weight coefficient, the second weight coefficient, and the third weight coefficient according to the environmental information where the terminal device is located.
[0010] Optionally, the method further includes: Determine the device identifier and the total number of devices of the terminal devices that are batch network-configured in the management area; Determine the time slice corresponding to each terminal device according to the total number of devices and the network configuration period; Generate second information according to the time slice and the device identifier; Send the second information to the terminal device so that the terminal device performs network connection within its respective corresponding time slice.
[0011] In a second aspect, an embodiment of the present application provides a device management device, which is applied to a server, and the device includes: A configuration module, configured to configure a Bluetooth anchor point array in each room of the management area; A position determination module, configured to determine the position information of the terminal device based on the Bluetooth anchor point array; A room allocation module, configured to determine the room information corresponding to the terminal device according to the position information and the floor plan corresponding to the management area.
[0012] Optionally, the position determination module includes: A receiving sub-module, configured to receive first information sent by each Bluetooth anchor point in the Bluetooth anchor point array; the first information is used to reflect the position information of the Bluetooth anchor point relative to the terminal device; A determination sub-module, configured to determine the position information of the terminal device according to the first information.
[0013] Optionally, the first information includes the signal strength, angle of arrival, and time difference of arrival of the signal transmitted between the Bluetooth anchor and the terminal device, as well as the first position coordinates of the terminal device; The determining sub-module includes: A first determining unit, configured to determine a dynamic weight corresponding to each Bluetooth anchor in the Bluetooth anchor array according to the signal strength, the angle of arrival, and the time difference of arrival; A second determining unit, configured to determine the second position coordinates of the terminal device according to the first position coordinates and the dynamic weights corresponding to the respective Bluetooth anchors.
[0014] Optionally, the first determining unit is specifically configured to: Determine a first weight and a first weight coefficient corresponding to the signal strength, a second weight and a second weight coefficient corresponding to the angle of arrival, and a third weight and a third weight coefficient corresponding to the time difference of arrival; Perform a weighted summation operation according to the first weight, the first weight coefficient, the second weight, the second weight coefficient, the third weight, and the third weight coefficient to obtain the dynamic weight.
[0015] Optionally, the first determining unit is further configured to: Adjust at least one of the first weight coefficient, the second weight coefficient, and the third weight coefficient according to the environmental information where the terminal device is located.
[0016] Optionally, the device further includes: A device determining module, configured to determine the device identifier and the total number of devices of the terminal devices for mass network configuration in the management area; A time slicing module, configured to determine a time slice corresponding to each terminal device according to the total number of devices and the network configuration period; An information generating module, configured to generate second information according to the time slice and the device identifier; A sending module, configured to send the second information to the terminal device so that the terminal device performs network connection within its respective corresponding time slice.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface complete communication with each other through the communication bus; the memory is used to store executable instructions, and the executable instructions cause the processor to execute the device management method as described in any one of the above.
[0018] Fourthly, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the device management method described in any one of the above is implemented.
[0019] In the device management method provided by the embodiment of the present invention, by configuring a Bluetooth anchor array in the management area and determining the location information of the terminal device based on the Bluetooth anchor array, the server can automatically determine the room information corresponding to the terminal device according to the location information of the terminal device and the floor plan corresponding to the management area. Compared with the related art that when performing batch device networking, the user needs to manually set the room to which the device belongs, the embodiment of the present invention can achieve high-precision positioning of the terminal device through the Bluetooth anchor array, and automatically allocate room information to the terminal device based on the determined location information without manual setting by the user, improving the room allocation efficiency and accuracy. Description of the Drawings
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0021] Figure 1 is a flowchart of the steps of a device management method provided by an embodiment of the present application; Figure 2 is a schematic structural diagram of a device management system provided by an embodiment of the present application; Figure 3 is a schematic interaction diagram among a terminal device, a Bluetooth anchor, and a server provided by an embodiment of the present application; Figure 4 is a block diagram of the structure of a device management device provided by an embodiment of the present application; Figure 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments
[0022] Next, the technical solutions in the embodiments of the present application will be clearly described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application belong to the scope of protection of the present application.
[0023] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0024] Method embodiment The following combines the drawings and details the device management method provided by the embodiments of this application through specific embodiments and their application scenarios.
[0025] Refer to Figure 1 , which shows the step flowchart of a device management method provided by the embodiments of this application. As Figure 1 shown, the method specifically includes the following steps: 101. Configure a Bluetooth anchor array in each room of the management area; 102. Determine the location information of the terminal device based on the Bluetooth anchor array; 103. Determine the room information corresponding to the terminal device according to the location information and the floor plan corresponding to the management area.
[0026] The device management method provided by the embodiments of the present invention is applied to a server. Refer to Figure 2 , which shows the schematic architecture diagram of a device management system provided by the embodiments of the present invention. As Figure 2 shown, the device management system includes a terminal device 110, a server 120, and a Bluetooth anchor array. Among them, the Bluetooth anchor array includes Bluetooth anchors 31, 32, 33, 34, and 35. It can be understood that Figure 2 only shows the Bluetooth anchors included in the Bluetooth anchor array as an example. A Bluetooth anchor array includes at least two Bluetooth anchors. In practical applications, the number of Bluetooth anchors can be determined according to the size of the management area. For example, 3 Bluetooth anchors, 5 Bluetooth anchors, 6 Bluetooth anchors, etc. The embodiments of the present invention do not specifically limit the number of Bluetooth anchors in the Bluetooth anchor array.
[0027] The server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, and may also provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, cloud communications, network services, middleware services, Content Delivery Network (CDN), as well as big data and artificial intelligence platforms. In an alternative embodiment, the server 120 may be the background server of the application for device management in the terminal device 110.
[0028] The terminal device is a smart device, specifically, it may be: smart speaker, smart TV, smart camera, smart air conditioner, smart refrigerator, smart washing machine, smart toilet, smart humidifier, floor cleaning robot, smart air purifier, electric curtain, smart light, smart sensor (such as thermometer, barometer, infrared sensor, hygrometer, etc.), smart door lock, and so on.
[0029] The device management method provided by the embodiments of the present invention can, after the terminal device is networked, determine the location information of the terminal device based on the Bluetooth anchor array configured in the management area, and allocate room information to the terminal device according to the location information of the terminal device and the floor plan corresponding to the management area, so as to group and manage the terminal device, thereby realizing more refined control and scenario linkage.
[0030] It should be noted that the management area in the embodiments of the present invention may be a podium management partition, a standard floor management partition, a basement floor management partition or an elevator management partition. The podium management partition is: a management partition constructed by radio frequency units set in a floor with a large floor area, few space partitions and an open space at a low floor of a building (i.e., the podium, such as the first floor lobby). The standard floor management partition is: a management partition constructed by radio frequency units set in a floor above the podium, where the space intervals are relatively regular and are usually used for residential, office or hotel rooms. The basement floor management partition is: a management partition constructed by radio frequency units set in a floor below the ground, such as a basement or an underground garage. The elevator management partition is: a management partition constructed by radio frequency units set in the building elevator.
[0031] In the embodiments of the present invention, the management area can be divided into at least one room or sub-region according to the spatial characteristics and house types of the management area. At least two Bluetooth anchors are deployed inside each room to form a Bluetooth anchor array. Then, a three-dimensional space coordinate system is established within each room or sub-region, and the position coordinates of each Bluetooth anchor are determined. Exemplarily, a three-dimensional space coordinate system can be established with the geometric center of the room or sub-region as the origin, the axis parallel to the window as the X-axis, the axis perpendicular to the wall as the Y-axis, and the axis perpendicular to the ground as the Z-axis. According to the position of each Bluetooth anchor relative to the origin, the position coordinates of the Bluetooth anchor are determined.
[0032] It can be understood that the Bluetooth anchors in the embodiments of the present invention are intelligent devices that support Bluetooth technology and have relatively fixed positions. For example, smart TVs, smart refrigerators, smart washing machines, smart toilets, smart humidifiers, smart sensors, and so on.
[0033] After the terminal device is connected to the network (network configuration), the position information of the terminal device is determined based on the Bluetooth anchor array. Exemplarily, the terminal device sends a broadcast signal carrying a timestamp, and the Bluetooth anchor detects the signal strength (RSSI), time of flight (ToF), etc., calculates the distance to the terminal device locally, and determines the relative position of the terminal device relative to the Bluetooth anchor. Each Bluetooth anchor in the Bluetooth anchor array sends the locally determined position information of the terminal device relative to the Bluetooth anchor to the server, and the server further performs high-precision positioning processing based on the position information sent by each Bluetooth anchor to determine the final position information of the terminal device.
[0034] As an example, assume that the management area is an indoor warehouse of 10m×10m×3m (X∈[0,10], Y∈[0,10], Z∈[0,3]), and 4 Bluetooth anchors A, B, C, and D are deployed, and their respective position coordinates are: A(0,0,3), B(10,0,3), C(10,10,3), D(0,10,3), and the terminal device is an AGV cart.
[0035] The AGV cart periodically (1Hz) sends a Bluetooth broadcast packet carrying a timestamp (such as T = 10:00:00.000), and the packet contains: device ID, such as AGV-001; broadcast timestamp for ToF calculation; other metadata, such as device type, battery level, etc.
[0036] After each Bluetooth anchor receives the broadcast signal, it calculates the position of the terminal relative to itself through the following steps: 1. Measure RSSI and ToF and calculate the distance di。 Taking anchor A as an example: The received signal strength RSSI of the anchor point A is -60 dBm. Substituting it into the RSSI ranging model, the calculated RSSI measurement value is:
[0037] The timestamp of the broadcast signal of the terminal device is T1 = 10:00:00.000, and the timestamp of the anchor point A receiving the broadcast signal is T2 = 10:00:00.034 μs (signal flight time ). Substituting it into the time-of-flight ToF ranging formula (speed of light ), the calculated distance value is:
[0038] Considering the multipath error, the above distance value can be corrected to 5.0 m.
[0039] Fusing the RSSI and ToF results, such as taking the average or using algorithms such as Kalman filtering for fusion, to obtain the final distance between the terminal device and the anchor point A . Assuming that the method of taking the average is used for fusion, we get = .
[0040] Furthermore, the anchor point A measures the angle of arrival (AoA) of the signal through an antenna array (such as 4 antennas) and obtains: Horizontal incident angle , that is, the angle between the terminal and the X-axis in the XY plane of the anchor point A is 45°; vertical incident angle , that is, the angle between the terminal and the vertical direction of the anchor point A, that is, the angle with the Z-axis is 60°.
[0041] According to the angle and distance, calculate the local coordinates of the terminal device relative to the anchor point A (with the anchor point A as the origin):
[0042] The global coordinates of the anchor point A are A(0, 0, 3). Therefore, the preliminary position of the terminal device relative to the global coordinate system is:
[0043] For other anchor points, the global preliminary position of the terminal device is also calculated synchronously according to the above steps. Assume that the measurement results of other anchor points (B, C, D) are as shown in Table 1:
[0044] Each anchor point sends the measurement results to the server. Exemplarily, the information sent by the anchor point to the server can carry: anchor point ID (A / B / C / D), terminal device ID, and the global preliminary position of the terminal device relative to this anchor point , it can also carry other auxiliary information, such as measurement error (e.g., di standard deviation), angle error, dynamic weight , and so on.
[0045] Based on the preliminary positions sent by each anchor point, the server considers the reliability of each anchor point (dynamic weight ), and finally calculates the global position P(x, y, z) of the terminal device.
[0046] Exemplarily, the dynamic weight is used to reflect the reliability of the anchor point data, and is usually inversely proportional to the error. Assume: The measurement error of anchor point A is large, , and the ranging errors of anchor points B, C, and D are small, . The coordinate calculation is performed by means of weighted fusion, and the specific calculation formula is as follows: , , (1) Taking the x coordinate as an example: Anchor point A: , m, , = ≈0.0236; Anchor point B: , m, , = ≈0.1323; Anchor point C: , m, , = ≈0.1281; Anchor point D: , m, , = ≈0.0579.
[0047] The sum of the numerators is: 0.0236 + 0.1323 + 0.1281 + 0.0579 ≈ 0.3419 The sum of the denominators is: + + + ≈0.0654 Finally, x = 0.3419 / 0.0654 ≈ 5.3m is obtained.
[0048] Similarly, calculate y and z according to the above steps, and finally obtain the position P (5.1, 4.9, 1.1) of the terminal device.
[0049] Based on the calculated position P of the terminal device and the floor plan of the management area, the server can determine the room information where the terminal device is located, and then bind the device tag of the terminal device to the room tag (such as room ID) to realize room allocation of the terminal device, so as to realize group management and refined control of the terminal devices.
[0050] For example, you can remotely control terminal devices by room. For example, on your way home from get off work, you can use the device management application to enter the "bedroom" group, turn on the air conditioner and adjust the temperature in advance. Or, when you are on a business trip, you can check the camera screen of the "children's room" to confirm the activities of the children. By assigning rooms to terminal devices, you can avoid the mixing of multiple devices. Users can quickly locate the target device by room, improving operation efficiency.
[0051] Alternatively, you can achieve automatic scene management based on the logical linkage of space. For example, the linkage of "bedroom" devices based on human body sensing trigger: the human body sensor at the bedroom door detects movement and automatically turns on the bedroom night light. Or, the linkage of "living room" devices based on time trigger: at 6 am, the living room curtains are automatically opened, and so on.
[0052] Alternatively, it is also possible to implement device management and control in complex scenarios based on the room information and control modes assigned to the terminal devices. For example, in the away mode, all lights and appliances in the "living room + bedroom + kitchen" can be turned off with one click, and the "entrance" camera security mode can be activated at the same time. Or, in the movie mode, after receiving the voice command "I want to watch a movie", the living room lights are dimmed, the TV is turned on, the air conditioner is switched to mute, and so on.
[0053] The device management method provided by the embodiment of the present invention configures a Bluetooth anchor array in the management area, determines the location information of the terminal device based on the Bluetooth anchor array, and the server can automatically determine the room information corresponding to the terminal device based on the location information of the terminal device and the floor plan corresponding to the management area. Compared with the related art that requires users to manually set the room to which the device belongs when performing batch device network configuration, the embodiment of the present invention can achieve high-precision positioning of the terminal device through the Bluetooth anchor array, automatically allocate room information to the terminal device based on the determined location information, without the need for manual setting by the user, thereby improving the efficiency and accuracy of room allocation.
[0054] Optionally, the step of determining the location information of the terminal device based on the Bluetooth anchor point array in step 102 includes: Step S11: Receive the first information sent by each Bluetooth anchor in the Bluetooth anchor array; the first information is used to reflect the position information of the Bluetooth anchor relative to the terminal device. Step S12: Determine the position information of the terminal device according to the first information.
[0055] Refer to Figure 3 , which shows the interaction schematic diagram among the terminal device, Bluetooth anchors, and the server in the embodiment of the present invention. As Figure 3 shown, after the terminal device is connected to the network, it sends a broadcast signal carrying a timestamp. After each Bluetooth anchor in the Bluetooth anchor array receives the broadcast signal sent by the terminal device, it performs signal detection to determine the first information. For example, the Bluetooth anchor detects the received signal strength indication (RSSI), time of flight (ToF), etc., calculates the distance from itself to the terminal device locally, and determines the relative position of the terminal device relative to the Bluetooth anchor, and then sends the first information to the server. The first information may carry the anchor ID, the terminal device ID, and the global preliminary position of the terminal device relative to this anchor , and may also carry other auxiliary information, such as measurement error (such as di standard deviation), angle error, dynamic weight , and so on.
[0056] After the server receives the first information, it determines the position information of the terminal device according to the first information sent by each Bluetooth anchor, such as the preliminary position coordinates of the terminal device, and determines the room information corresponding to the terminal device according to the position information of the terminal device and the floor plan of the management area. Finally, the server may send the corresponding room label, such as the room ID, to the terminal device according to the determined room information to notify the terminal device of its room allocation result. After receiving the room ID, the terminal device may send a confirmation message to the server to inform the server that it has received the room allocation result.
[0057] In the subsequent device management process, the server can perform grouped management and control on multiple terminal devices according to the room allocation result.
[0058] The embodiment of the present invention determines the position information of the terminal device in combination with the first information sent by each Bluetooth anchor in the Bluetooth anchor array, which can fully integrate multi-source data, improve the accuracy of the positioning result, and is beneficial to further improving the accuracy of room allocation.
[0059] Optionally, the first information includes the signal strength, angle of arrival, and time difference of arrival of the signal transmitted between the Bluetooth anchor and the terminal device, and the first position coordinates of the terminal device.
[0060] The step of determining the position information of the terminal device according to the first information in step S12 includes: Step S21: For each Bluetooth anchor in the Bluetooth anchor array, determine the dynamic weight corresponding to the Bluetooth anchor according to the signal strength, the angle of arrival, and the time difference of arrival. Step S22: Determine the second position coordinate of the terminal device according to the first position coordinates corresponding to the respective Bluetooth anchors and the dynamic weight.
[0061] In the embodiment of the present invention, a distributed signal processing architecture can be adopted. The Bluetooth anchor first locally calculates the preliminary position of the terminal device relative to the global coordinate system, that is, the first position coordinate, to disperse the calculation load of the server. The server only needs to perform multi-source data fusion based on the first information sent by the Bluetooth anchor without performing a large number of complex operations, thereby improving the data processing efficiency.
[0062] Specifically, after each Bluetooth anchor receives the broadcast signal, it can first calculate the first distance between itself (the Bluetooth anchor) and the terminal device based on the received signal strength indication (RSSI) and the time of flight (ToF). di。
[0063] Furthermore, the Bluetooth anchor can measure the angle of arrival (AoA) of the signal based on an antenna array (such as 4 antennas), and calculate the local coordinates of the terminal device relative to the Bluetooth anchor (with the Bluetooth anchor as the origin) according to the angle of arrival and the first distance. Then, according to the position coordinates (global coordinates) of the Bluetooth anchor and the local coordinates of the terminal device, the preliminary position of the terminal device relative to the global coordinate system, that is, the first position coordinate, is determined.
[0064] Each Bluetooth anchor in the Bluetooth anchor array sends the calculated first position coordinate to the server, and also sends the signal strength RSSI, the angle of arrival AoA, and the time difference of arrival TDOA to the server to assist the server in performing high-precision positioning calculations.
[0065] The server determines the dynamic weight corresponding to the Bluetooth anchor by comprehensively considering the reliability of the data provided by the Bluetooth anchor according to the signal strength RSSI, the angle of arrival AoA, and the time difference of arrival TDOA. . It can be understood that the dynamic weight is used to reflect the data reliability of the Bluetooth anchor and is usually inversely proportional to the error. Exemplarily, if a certain anchor has a high signal strength and a small ranging error, then is larger; if the signal is interfered (such as the Bluetooth anchor is blocked), then is smaller.
[0066] The server fuses the first position coordinates calculated by each Bluetooth anchor based on the dynamic weight to obtain the final second position coordinate of the terminal device. The specific fusion method can refer to the processing process shown in the foregoing formula (1).
[0067] In the embodiments of the present invention, the dynamic weight corresponding to each Bluetooth anchor is determined by comprehensively considering the signal strength, the angle of arrival, and the time difference of arrival. By fusing the positioning information of the Bluetooth anchor array based on the dynamic weight, the influence of anchor data with large errors on the final positioning result can be suppressed, achieving a high-precision estimation of the global position of the terminal device, improving the positioning accuracy, and facilitating further improvement of the accuracy of the room allocation result for the terminal device.
[0068] Optionally, step S21 of determining the dynamic weight corresponding to the Bluetooth anchor according to the signal strength, the angle of arrival, and the time difference of arrival includes: Sub-step S211: Determine the first weight and the first weight coefficient corresponding to the signal strength, the second weight and the second weight coefficient corresponding to the angle of arrival, and the third weight and the third weight coefficient corresponding to the time difference of arrival; Sub-step S212: Perform a weighted summation operation according to the first weight, the first weight coefficient, the second weight, the second weight coefficient, the third weight, and the third weight coefficient to obtain the dynamic weight.
[0069] As an example, the dynamic weight in the embodiments of the present invention can be expressed as: (2) Wherein, is the first weight coefficient corresponding to the signal strength, is the first weight corresponding to the signal strength RSSI; is the second weight coefficient corresponding to the angle of arrival AoA, is the second weight corresponding to the angle of arrival AoA; is the third weight coefficient corresponding to the time difference of arrival TDOA, is the third weight corresponding to the time difference of arrival TDOA.
[0070] By performing a weighted summation on the first weight, the second weight, and the third weight according to the above formula (2), the dynamic weight in the embodiments of the present invention can be obtained. .
[0071] Optionally, the method further includes: Adjust at least one of the first weight coefficient, the second weight coefficient, and the third weight coefficient according to the environmental information where the terminal device is located.
[0072] It can be understood that RSSI is greatly affected by environmental attenuation, but the calculation is simple; AoA requires an antenna array, with high precision but affected by multipath; TDOA requires time synchronization, with high precision but complex equipment. In the embodiments of the present invention, when calculating the dynamic weight, these factors need to be considered comprehensively. Specifically, in the embodiments of the present invention, the weight coefficient can be adjusted according to the real-time environment where the terminal device is located. For example, increase the weight of AoA in a stable signal environment and increase the weight of TDOA in a complex multipath environment.
[0073] By dynamically adjusting the weight coefficient based on environmental information in the embodiments of the present invention, the calculation result can be adapted to the environment where the terminal device is located, minimizing the impact of the environment on the positioning result as much as possible, which is beneficial to improving the positioning accuracy.
[0074] Optionally, the method further includes: Step S31: Determine the device identifier and the total number of devices of the terminal devices for mass network configuration in the management area; Step S32: Determine the time slice corresponding to each terminal device according to the total number of devices and the network configuration period; Step S33: Generate second information according to the time slice and the device identifier; Step S34: Send the second information to the terminal device so that the terminal device can perform network connection within its corresponding time slice.
[0075] In the embodiments of the present invention, dynamic time division multiplexing can also be used to perform network configuration and room allocation for terminal devices. Specifically, according to the total number of terminal devices that need to be mass network-configured in the management area and the preset network configuration time, the time slice corresponding to each terminal device can be determined, and second information can be generated according to the device identifier and time slice of the terminal device, and the second information is sent to the terminal device to inform the terminal device to perform network connection within the corresponding time slice.
[0076] When multiple terminal devices send network connection requests to the server simultaneously, a specific time slice is allocated to each terminal device. Within this time slice, the terminal device can send its network configuration information, such as device identifier, configuration parameters, etc. In this way, the conflict caused by multiple terminal devices sending data simultaneously is avoided, and the success rate and efficiency of network configuration are improved.
[0077] Furthermore, in the embodiments of the present invention, the size and allocation order of the time slice of each terminal device can be flexibly adjusted according to the actual transmission requirements of the terminal device. For example, if a certain terminal device has a lot of data to transmit, more time slices can be allocated to this terminal device; and if a certain device has no data transmission temporarily, the time slice of this terminal device can be temporarily allocated to other devices with requirements.
[0078] In summary, for the device management method provided by the embodiments of the present invention, by configuring a Bluetooth anchor array in the management area and determining the location information of the terminal device based on the Bluetooth anchor array, the server can automatically determine the room information corresponding to the terminal device according to the location information of the terminal device and the floor plan corresponding to the management area. Compared with the related art where users need to manually set the room to which the device belongs during batch device network configuration, the embodiments of the present invention can achieve high-precision positioning of the terminal device through the Bluetooth anchor array, automatically assign room information to the terminal device based on the determined location information, without manual setting by the user, improving the room allocation efficiency and accuracy.
[0079] Device embodiments As Figure 4 shown Figure 4 The block diagram of a device management device provided by the embodiments of the present application is shown. The device is applied to a server and includes: A configuration module 401, configured to configure a Bluetooth anchor array in each room of the management area; A location determination module 402, configured to determine the location information of the terminal device based on the Bluetooth anchor array; A room allocation module 403, configured to determine the room information corresponding to the terminal device according to the location information and the floor plan corresponding to the management area.
[0080] Optionally, the location determination module includes: A receiving sub-module, configured to receive first information sent by each Bluetooth anchor in the Bluetooth anchor array; the first information is used to reflect the location information of the Bluetooth anchor relative to the terminal device; A determination sub-module, configured to determine the location information of the terminal device according to the first information.
[0081] Optionally, the first information includes the signal strength, angle of arrival, and time difference of arrival of the signal transmitted between the Bluetooth anchor and the terminal device, and the first position coordinates of the terminal device; The determination sub-module includes: A first determination unit, configured to determine the dynamic weight corresponding to each Bluetooth anchor in the Bluetooth anchor array according to the signal strength, the angle of arrival, and the time difference of arrival; A second determination unit, configured to determine the second position coordinates of the terminal device according to the first position coordinates corresponding to each Bluetooth anchor and the dynamic weight.
[0082] Optionally, the first determination unit is specifically configured to: Determine a first weight and a first weight coefficient corresponding to the signal strength, a second weight and a second weight coefficient corresponding to the angle of arrival, and a third weight and a third weight coefficient corresponding to the time difference of arrival; Perform a weighted summation operation according to the first weight, the first weight coefficient, the second weight, the second weight coefficient, the third weight, and the third weight coefficient to obtain the dynamic weight.
[0083] Optionally, the first determination unit is further configured to: Adjust at least one of the first weight coefficient, the second weight coefficient, and the third weight coefficient according to the environmental information of the terminal device.
[0084] Optionally, the apparatus further includes: A device determination module, configured to determine the device identifier and the total number of devices of the terminal devices for batch network configuration in the management area; A time slicing module, configured to determine a time slice corresponding to each terminal device according to the total number of devices and the network configuration period; An information generation module, configured to generate second information according to the time slice and the device identifier; A sending module, configured to send the second information to the terminal device, so that the terminal device performs network connection within its corresponding time slice.
[0085] In summary, the device management apparatus provided by the embodiments of the present invention configures a Bluetooth anchor array in the management area, and determines the location information of the terminal device based on the Bluetooth anchor array. The server can automatically determine the room information corresponding to the terminal device according to the location information of the terminal device and the floor plan corresponding to the management area. Compared with the related art where users need to manually set the rooms to which the devices belong during batch device network configuration, the embodiments of the present invention can achieve high-precision positioning of terminal devices through the Bluetooth anchor array, and automatically allocate room information to the terminal devices based on the determined location information without manual setting by users, improving the room allocation efficiency and accuracy.
[0086] For the apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the related parts, reference may be made to the partial description of the method embodiments.
[0087] Each embodiment in this specification is described in a progressive manner. The key points of each embodiment are the differences from other embodiments. The same and similar parts among the embodiments may be referred to each other.
[0088] The device management apparatus in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a GPU BOX, a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0089] The device management apparatus in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, a Linux, a Windows operating system, etc., or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0090] The device management apparatus provided in the embodiments of the present application can implement Figure 1 each process implemented by the method embodiments. To avoid repetition, it will not be described in detail here.
[0091] Optionally, as Figure 5 shown, the embodiments of the present application further provide an electronic device 1100, including a processor 1101 and a memory 1102. A program or instruction that can run on the processor 1101 is stored on the memory 1102. When the program or instruction is executed by the processor 1101, it implements each step of the above-mentioned device management method embodiments and can achieve the same technical effects. To avoid repetition, it will not be described in detail here.
[0092] In an embodiment of the present application, the memory 1102 can be used to store software programs and various data. The memory 1102 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1102 may include a volatile memory or a non-volatile memory, or the memory 1102 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 1102 in the embodiment of the present application includes but is not limited to these and any other suitable types of memories.
[0093] The processor 1101 may include one or more processing units; optionally, the processor 1101 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1101 either.
[0094] An embodiment of the present application further provides an electronic device, which includes a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface complete communication with each other through the communication bus; the memory is used to store executable instructions, and the executable instructions cause the processor to execute each process of the device management method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0095] An embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the device management method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0096] Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk, or an optical disc, etc.
[0097] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the device management method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0098] It should be understood that the chip involved in the embodiment of the present application may also be referred to as a system-on-chip, a system chip, a chip system, or a system-on-chip, etc.
[0099] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement each process of the device management method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0100] It should be noted that in this article, the terms "including", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device including a series of elements not only includes those elements but also other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including such element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0101] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the related art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0102] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of the present application and without departing from the spirit of the present application and the scope protected by the claims, can still make many forms, all of which fall within the protection scope of the present application.
Claims
1. A device management method, characterized in that, Applied to a server, the method includes: Configuring a Bluetooth anchor array in each room of the management area; Determining the location information of the terminal device based on the first information sent by each Bluetooth anchor in the Bluetooth anchor array; Determining the room information corresponding to the terminal device according to the location information and the floor plan corresponding to the management area; Wherein, the first information includes the signal strength, angle of arrival, and time difference of arrival of the signal transmitted between the Bluetooth anchor and the terminal device, and the first position coordinates of the terminal device.
2. The method according to claim 1, wherein The determining the location information of the terminal device based on the first information sent by each Bluetooth anchor in the Bluetooth anchor array includes: Receiving the first information sent by each Bluetooth anchor in the Bluetooth anchor array; the first information is used to reflect the location information of the Bluetooth anchor relative to the terminal device; Determining the location information of the terminal device according to the first information.
3. The method according to claim 1, wherein The determining the location information of the terminal device based on the first information sent by each Bluetooth anchor in the Bluetooth anchor array includes: For each Bluetooth anchor in the Bluetooth anchor array, determining the dynamic weight corresponding to the Bluetooth anchor according to the signal strength, the angle of arrival, and the time difference of arrival; Determining the second position coordinates of the terminal device according to the first position coordinates and the dynamic weights corresponding to the respective Bluetooth anchors.
4. The method according to claim 3, wherein The determining the dynamic weight corresponding to the Bluetooth anchor according to the signal strength, the angle of arrival, and the time difference of arrival includes: Determining a first weight and a first weight coefficient corresponding to the signal strength, a second weight and a second weight coefficient corresponding to the angle of arrival, and a third weight and a third weight coefficient corresponding to the time difference of arrival; Performing a weighted summation operation according to the first weight, the first weight coefficient, the second weight, the second weight coefficient, the third weight, and the third weight coefficient to obtain the dynamic weight.
5. The method according to claim 4, wherein The method further includes: Adjusting at least one of the first weight coefficient, the second weight coefficient, and the third weight coefficient according to the environmental information where the terminal device is located.
6. The method according to claim 1, wherein The method further includes: Determining the device identifier and the total number of devices of the terminal devices for batch network configuration in the management area; Determining the time slice corresponding to each terminal device according to the total number of devices and the network configuration period; Generating second information according to the time slice and the device identifier; Sending the second information to the terminal device so that the terminal device performs network connection within its respective corresponding time slice.
7. A device management apparatus, characterized in that, Applied to a server, the device includes: A configuration module for configuring a Bluetooth anchor array in each room of the management area; A location determination module for determining the location information of the terminal device based on the first information sent by each Bluetooth anchor in the Bluetooth anchor array; A room allocation module for determining the room information corresponding to the terminal device according to the location information and the floor plan corresponding to the management area; Wherein, the first information includes the signal strength, angle of arrival, and time difference of arrival of the signal transmitted between the Bluetooth anchor and the terminal device, and the first position coordinates of the terminal device.
8. The device according to claim 7, characterized in that, The position determination module includes: A receiving sub-module, configured to receive first information sent by each Bluetooth anchor in the Bluetooth anchor array; the first information is used to reflect the position information of the Bluetooth anchor relative to the terminal device; A determining sub-module, configured to determine the position information of the terminal device according to the first information.
9. The device according to claim 7, characterized in that, The position determination module includes: A first determination unit, configured to determine a dynamic weight corresponding to each Bluetooth anchor in the Bluetooth anchor array according to the signal strength, the angle of arrival, and the time difference of arrival; A second determination unit, configured to determine a second position coordinate of the terminal device according to the first position coordinates corresponding to the respective Bluetooth anchors and the dynamic weights.
10. The device according to claim 9, characterized in that, The first determination unit is specifically configured to: Determine a first weight and a first weight coefficient corresponding to the signal strength, a second weight and a second weight coefficient corresponding to the angle of arrival, and a third weight and a third weight coefficient corresponding to the time difference of arrival; Perform a weighted summation operation according to the first weight, the first weight coefficient, the second weight, the second weight coefficient, the third weight, and the third weight coefficient to obtain the dynamic weight.
11. An electronic device, characterized in that, The electronic device includes a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete communication with each other through the communication bus; The memory is used to store executable instructions, and the executable instructions cause the processor to execute the device management method according to any one of claims 1 to 6.
12. A readable storage medium, characterized in that, A program or instructions are stored on the readable storage medium, and when the program or instructions are executed by the processor, the device management method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Indoor positioning method, device and server
CN106535097A
Wireless Mesh ad hoc network method and device, electronic equipment and storage medium
CN113766473A
Household appliance control method and device, equipment and storage medium
CN115327939A
IoT device network distribution method and related device
CN118118283A
Equipment positioning method and device, electronic equipment and storage medium
CN119420799A
Cited By
Equipment network distribution method and device, electronic equipment and storage medium
CN120811807A
Automobile key positioning method and device based on UWB double anchor points, electronic equipment and storage medium
CN120935762A