Device management method and electronic device
By automatically matching the location fingerprint of the device with the installation position using wireless ranging information, the problem of automated configuration when the device is replaced or misplaced is solved, achieving high-precision and low-cost device management, and improving the system's self-recovery capability and operation and maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ESPRESSIF SYST SHANGHAI
- Filing Date
- 2026-04-08
- Publication Date
- 2026-07-07
AI Technical Summary
In smart homes and industrial IoT, when devices are replaced or misplaced, existing technologies require manual reconfiguration of network and permission information, and rely on additional positioning hardware or rely on signal strength to achieve automatic consistency determination and configuration recovery at the installation location level.
By acquiring wireless ranging information between the target device and multiple reference devices as a location fingerprint, the device automatically matches the location fingerprint with the preset installation location. When the preset configuration inheritance conditions are met, the device automatically associates the configuration information and utilizes its own wireless communication capabilities to achieve automated matching and configuration inheritance between the device and the installation location.
Without requiring additional hardware or manual intervention, it achieves high-precision automatic matching of equipment and installation positions, reducing operation and maintenance costs and improving the system's self-recovery capability and configuration recovery accuracy.
Smart Images

Figure CN122349084A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) technology, and more particularly to a device management method and an electronic device. Background Technology
[0002] In smart home and industrial IoT deployments with multiple fixed installation locations (such as lighting fixtures, sensors, and workstations), inconsistencies often arise between the logical control objects in the system and the actual physical installation locations when equipment malfunctions and is replaced, or when installation locations are incorrectly installed or swapped. Traditional solutions typically rely on manual reconfiguration of network information, permission information, and control parameters, which is cumbersome and prone to errors. Existing automated solutions either require additional positioning hardware (such as UWB or Bluetooth beacons), increasing costs, or are susceptible to multipath and obstruction interference due to environmental characteristics such as signal strength (e.g., RSSI), making it difficult to achieve automatic consistency determination and configuration restoration at the installation location level without increasing hardware costs. Summary of the Invention
[0003] This invention provides a device management method and an electronic device to solve the problem in the prior art that manual reconfiguration is required when the device is replaced or misaligned, and that additional positioning hardware is needed.
[0004] According to one aspect of the present invention, a device management method is provided, the method comprising: In response to a location matching trigger event, the target device's location fingerprint to be matched is obtained; the location fingerprint to be matched includes wireless ranging information between the target device and multiple reference devices; The location fingerprint to be matched is matched with the location fingerprints of multiple preset installation positions to determine the target installation position corresponding to the target device; wherein, the location fingerprint is used to identify the location of the corresponding preset installation position in physical space; When the preset configuration inheritance conditions are met, the configuration information associated with the target mounting position is associated with the target device.
[0005] According to another aspect of the present invention, a device management method is provided, the method comprising: In response to a location verification trigger event, the target device's location fingerprint to be matched is obtained; the target device's location fingerprint includes wireless ranging information between the target device and multiple reference devices. The location fingerprint to be matched is matched with the location fingerprint pre-stored by the target device to determine whether the target device is still in the original installation position; wherein, the location fingerprint is used to identify the location of the corresponding preset installation position in the physical space, and the pre-stored location fingerprint is the location fingerprint corresponding to the target device at the original installation position.
[0006] According to another aspect of the present invention, a device management apparatus is provided, the apparatus comprising: The first fingerprint acquisition module is used to acquire the location fingerprint of the target device to be matched in response to a location matching trigger event; the location fingerprint to be matched includes wireless ranging information between the target device and multiple reference devices; The first fingerprint matching module is used to match the location fingerprint to be matched with the location fingerprints of multiple preset installation positions to determine the target installation position corresponding to the target device; wherein, the location fingerprint is used to identify the position of the corresponding preset installation position in physical space; The first configuration association module is used to associate the configuration information associated with the target installation position with the target device when the preset configuration inheritance conditions are met.
[0007] According to another aspect of the present invention, a device management apparatus is provided, the apparatus comprising: The second fingerprint acquisition module is used to acquire the target device's location fingerprint to be matched in response to a location verification trigger event; the target device's location fingerprint includes wireless ranging information between the target device and multiple reference devices; The second fingerprint matching module is used to match the location fingerprint to be matched with the location fingerprint pre-stored in the target device to determine whether the target device is still in the original installation position; wherein, the location fingerprint is used to identify the location of the corresponding preset installation position in the physical space, and the pre-stored location fingerprint is the location fingerprint corresponding to the target device at the original installation position.
[0008] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the device management method according to any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the device management method according to any embodiment of the present invention.
[0010] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the device management method described in any embodiment of the present invention.
[0011] The technical solution of this invention obtains a target device's location fingerprint in response to a location matching trigger event. This location fingerprint includes wireless ranging information between the target device and multiple reference devices. The location fingerprint is then matched with the location fingerprints of multiple preset installation positions to determine the target installation position corresponding to the target device. The location fingerprint identifies the physical location of the corresponding preset installation position. When preset configuration inheritance conditions are met, the configuration information associated with the target installation position is associated with the target device. This technical solution obtains the wireless ranging information between the target device and reference devices as a location fingerprint and matches it with the location fingerprints of preset installation positions to automatically determine the target installation position. Furthermore, it automatically associates configuration information when configuration inheritance conditions are met. This achieves automated matching and configuration inheritance between the device and the installation position without additional hardware or manual intervention, reducing maintenance costs and improving matching accuracy and system self-recovery capabilities.
[0012] Furthermore, this embodiment of the invention also establishes a location verification trigger mechanism to quickly and automatically verify whether the target device is in its original installation position during device operation, eliminating the need for manual inspection and thus promptly detecting anomalies such as device relocation, misinstallation, or swapping. Further, when it is detected that two devices have swapped installation positions and meet preset configuration inheritance conditions, the corresponding installation position configuration information can be automatically swapped or restored based on the verification result. This avoids repetitive configuration of network parameters, control relationships, and permission information, shortening fault handling and device replacement time, and improving system operation and maintenance efficiency, configuration recovery accuracy, and overall stability.
[0013] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a flowchart of a device management method provided according to Embodiment 1 of the present invention; Figure 2 This is a flowchart of a device management method provided according to Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of an equipment management device according to Embodiment 3 of the present invention; Figure 4 This is a schematic diagram of the structure of an equipment management device according to Embodiment 4 of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device that implements the device management method of this invention. Detailed Implementation
[0016] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0017] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0018] Example 1 Figure 1 This is a flowchart of a device management method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where a new device is connected and triggers device replacement, automatically determining its target installation location and inheriting corresponding configuration information. This method can be executed by a device management device, which can be implemented in hardware and / or software, and can be configured in an electronic device. Figure 1 As shown in the figure, the device management method provided in this embodiment includes the following steps: S110. In response to the location matching trigger event, obtain the location fingerprint of the target device to be matched; the location fingerprint to be matched includes wireless ranging information between the target device and multiple reference devices.
[0019] In this context, the location matching trigger event can refer to a trigger signal or condition that initiates the location matching process. For example, this event can include at least a new device joining the network and an existing offline device in the network. The target device can refer to the smart device to be matched, and can include at least a newly joined device. The location fingerprint to be matched can refer to feature data used to match a preset installation location fingerprint and characterize the physical location of the device. It can consist of wireless ranging information between the target device and multiple reference devices. The reference devices can refer to smart devices deployed in the network with fixed locations, which can be used as reference points for ranging. The location fingerprint of the target device is constructed by measuring distances with the target device. The wireless ranging information can refer to data reflecting the spatial distance between two devices, obtained based on wireless signals. For example, it can be a distance value calculated from the signal round-trip time, or a measurement value reflecting the relative positional relationship, such as the angle of arrival or signal strength. This embodiment does not impose specific limitations on this.
[0020] In this embodiment of the invention, when the control center responsible for device management receives or detects a location matching trigger event, it can obtain the target device associated with the event. For example, if it is a new device joining the network event, the new device is identified as the target device. Then, several devices can be selected from the networked devices as reference devices, and a wireless ranging process is performed between the target device and each reference device to obtain the wireless ranging information between the target device and each reference device. This wireless ranging information is then used as the fingerprint of the location to be matched. The reference devices can be all networked devices, or a subset of devices selected based on conditions such as signal quality and physical proximity. This embodiment does not impose specific limitations on this.
[0021] S120. Match the location fingerprint to be matched with the location fingerprints of multiple preset installation positions to determine the target installation position corresponding to the target device; wherein, the location fingerprint is used to identify the position of the corresponding preset installation position in the physical space.
[0022] In this context, a preset installation location refers to a predefined device installation point with a fixed physical location in the deployment scenario. Each installation location has a unique location attribute in the physical space, such as a lighting location, a sensor location, or a workstation. A target installation location refers to the physical installation location to which a target device should belong, as determined by the location fingerprint matching process. For example, it could be a preset installation location that is closest to the location fingerprint to be matched of the target device.
[0023] In this embodiment of the invention, the control center can acquire multiple pre-stored location fingerprints of preset installation positions, where each preset installation position corresponds to one location fingerprint. Next, the location fingerprint of the target device to be matched is compared with the location fingerprint of each preset installation position, and the similarity or difference between the two is calculated. Finally, based on the location fingerprint comparison results, the installation position that best matches the target device is selected from the multiple preset installation positions and determined as the target installation position. The essence of location fingerprinting is to identify the physical location of the installation position through the relative distance relationship between the device and multiple reference devices, thereby ensuring that the matching result accurately reflects the actual physical installation position.
[0024] S130. When the preset configuration inheritance conditions are met, the configuration information associated with the target mounting position is associated with the target device.
[0025] The preset configuration inheritance conditions can refer to pre-defined conditions used to determine whether to perform configuration association operations. These conditions may include, but are not limited to, the original device associated with the target installation location being offline or receiving a user confirmation command. Configuration information can refer to the set of device parameters associated with the installation location. This may include, but is not limited to, network configuration parameters (such as SSID, password, and IP address), access permission information, device control parameters, scene linkage rules, device grouping, and orchestration information.
[0026] In this embodiment of the invention, after determining the target installation position that matches the target device, the control center can determine whether the current target installation position meets the preset configuration inheritance conditions, such as whether the original device associated with the target installation position is offline or whether it has received a user confirmation instruction, so as to avoid incorrectly modifying the configuration under inappropriate circumstances (such as the original device still being online); when it is determined that the preset configuration inheritance conditions are met, the configuration information associated with the target installation position can be associated with the target device, so that the target device has device attributes or control logic that match the target installation position.
[0027] The technical solution provided by this invention automatically acquires wireless ranging information between the target device and multiple reference devices in response to a location matching trigger event to construct a fingerprint of the location to be matched, and matches it with the location fingerprint of a preset installation location to determine the target installation location. Then, when the preset configuration inheritance conditions are met, the configuration information is automatically associated with the target device, realizing automated consistency determination and configuration recovery between the device and the physical installation location. The entire process does not require manual input or specification of the installation location, nor does it require the deployment of additional positioning hardware. It can achieve extremely high matching accuracy by only utilizing the device's own wireless communication capabilities, effectively reducing maintenance costs and human error. Furthermore, it ensures the consistency between control logic and physical location when the device is replaced or misaligned, improving the system's self-recovery capability and business continuity.
[0028] Furthermore, based on the above embodiments of the invention, the location matching trigger event may include: when a new device joins the network, the number of offline devices in the network is not zero. This indicates that there is at least one vacant installation slot in the current network, and the newly joined target device is likely to be used to replace an offline device. At this time, the control center will trigger the subsequent location matching process.
[0029] Furthermore, based on the above embodiments of the invention, obtaining the fingerprint of the target device's location to be matched includes: The wireless ranging information between the target device and each reference device is obtained through the Wi-Fi FTM protocol, and the wireless ranging information is used as the fingerprint of the target device's location to be matched.
[0030] Among them, the Wi-Fi FTM protocol can refer to the Fine Time Measurement (FTM) protocol defined in the IEEE 802.11 standard. This protocol calculates distance by measuring the round-trip time of a signal between two devices, and can achieve nanosecond-level timestamp accuracy and sub-meter-level ranging accuracy.
[0031] In this embodiment of the invention, FTM ranging technology based on the Wi-Fi FTM protocol can be used to obtain wireless ranging information between the target device and each reference device, i.e., the physical distance between the two devices, and then the measured wireless ranging information can be used as the fingerprint of the target device to be matched.
[0032] Furthermore, based on the above embodiments of the invention, obtaining wireless ranging information includes: For each reference device, perform the following ranging procedure: Based on the Wi-Fi FTM protocol, multiple first-direction distance sampling values are obtained with the target device as the initiator and the reference device as the responder, as well as multiple second-direction distance sampling values with the reference device as the initiator and the target device as the responder. Outlier removal is performed on multiple first-direction distance sample values and multiple second-direction distance sample values to obtain the corresponding first distance and second distance; The average of the first distance and the second distance is taken as the symmetrical distance between the target device and the corresponding reference device; After the target device completes the ranging process with all reference devices, all the obtained symmetrical distances are combined into a ranging vector, and the ranging vector is used as wireless ranging information.
[0033] In this context, the initiator refers to the device that actively initiates a ranging request during the FTM ranging process, responsible for sending FTM request frames and receiving response frames. The responder refers to the device that passively responds to the ranging request during the FTM ranging process, responsible for replying with FTM frames and recording timestamps.
[0034] The first direction distance sample value can refer to the distance measurement result obtained by measuring distance with the target device as the initiating end and the reference device as the responding end. Correspondingly, the second direction distance sample value can refer to the distance measurement result obtained by measuring distance with the reference device as the initiating end and the target device as the responding end.
[0035] In this embodiment of the invention, the process of acquiring wireless ranging information based on the Wi-Fi FTM protocol specifically includes: S1. For each reference device, the control center pairs it with the target device to form a ranging object, and executes the following two-way ranging procedure: S1.1 The control center schedules the target device as the initiator and the reference device as the responder, performing multiple ranging measurements based on the Wi-Fi FTM protocol to obtain multiple first-direction distance sample values. In each ranging measurement, both devices record four timestamps: t1 when the responder sends the FTM frame, t2 when the initiator receives the frame, t3 when the initiator replies with an acknowledgment frame, and t4 when the responder receives the acknowledgment frame. Then, based on the round-trip time formula RTT=(t4-t1)-(t3-t2) and the speed of light c, a distance sample value is calculated.
[0036] S1.2 Similarly, the control center schedules the reference device as the initiator and the target device as the responder, and performs multiple ranging measurements based on the Wi-Fi FTM protocol to obtain multiple second-direction distance sampling values.
[0037] S1.3 Statistical processing is performed on multiple first-direction distance sampling values and multiple second-direction distance sampling values respectively to remove abnormal deviation values caused by multipath interference, occlusion or instantaneous noise, etc. Then, the median or average value of the remaining sampling values is taken to obtain stable first distance and stable second distance.
[0038] S1.4. The average of the stable first distance and the stable second distance is taken as the symmetrical distance between the target device and the reference device. This symmetrical distance eliminates unidirectional measurement errors caused by factors such as device clock offset and channel asymmetry.
[0039] S2. Repeat the above steps until the target device completes the ranging process with all reference devices. Then, combine all the symmetrical distances into a ranging vector according to the fixed order of the reference devices. This vector is the wireless ranging information of the target device, also known as the location fingerprint.
[0040] This invention effectively eliminates system errors caused by inter-device clock skew and channel asymmetry by introducing bidirectional ranging and symmetry processing, achieving sub-meter ranging accuracy. Through multiple sampling and outlier removal, environmental interference such as multipath effects and transient occlusion is suppressed, enhancing the stability and repeatability of the ranging results. The resulting ranging vector characterizes the relative position of the device in physical space, providing a reliable data foundation for subsequent location fingerprint matching. Simultaneously, it fully utilizes the device's built-in Wi-Fi FTM function, eliminating the need for additional positioning hardware and achieving high-precision, low-cost location information acquisition.
[0041] Furthermore, based on the above embodiments of the invention, the fingerprint of the location to be matched is matched with the location fingerprints of multiple preset installation positions to determine the target installation position corresponding to the target device, including: Determine the feature distance between the fingerprint of the location to be matched and the location fingerprint of each preset installation position; Preset installation positions whose feature distance is less than a preset distance threshold are identified as candidate installation positions; When a candidate installation position meets the preset matching conditions, the candidate installation position is determined as the target installation position.
[0042] The feature distance can be a quantitative value used to measure the degree of difference between the fingerprint to be matched and the physical fingerprint. The smaller the value, the closer the physical locations corresponding to the two fingerprints are. For example, the feature distance includes at least the Euclidean distance between the two physical fingerprints. The preset matching conditions can be pre-set judgment conditions used to determine the target mounting position from the candidate mounting positions. For example, the conditions may include, but are not limited to: directly determining when there is only one candidate mounting position, selecting the one with the smallest feature distance when there are multiple candidates, and requiring user confirmation.
[0043] In this embodiment of the invention, the specific process of determining the target installation location through location fingerprint matching includes: (1) For each preset mounting position, calculate the feature distance between the target device's location fingerprint to be matched and the location fingerprint of the preset mounting position. The feature distance can be the Euclidean distance between the two location fingerprints, and the smaller the distance, the closer the physical locations corresponding to the two fingerprints are.
[0044] (2) Compare each calculated feature distance with a preset distance threshold. If the feature distance corresponding to a preset installation position is less than the threshold, then the preset installation position is determined as a candidate installation position. This step uses threshold filtering to eliminate installation positions that differ significantly from the target device position, thus narrowing the matching range.
[0045] (3) Among the selected candidate installation positions, further determine whether they meet the preset matching conditions. If the conditions are met, then determine the candidate installation position as the target installation position corresponding to the target device.
[0046] In one embodiment, if the distance of each feature calculated above is greater than a preset distance threshold, the location fingerprint matching is directly determined to be unsuccessful, and the subsequent process is terminated, waiting for human intervention to specify an installation location for the target device or to redeploy it.
[0047] Furthermore, based on the above embodiments of the invention, when a candidate mounting position meets a preset matching condition, the candidate mounting position is determined as the target mounting position, including: When the number of candidate mounting positions is 1, the candidate mounting position is directly determined as the target mounting position; When the number of candidate mounting positions is greater than 1, the candidate mounting position with the smallest feature distance is determined as the target mounting position.
[0048] In this embodiment of the invention, when the number of candidate installation positions determined after preliminary screening by feature distance is 1, the system can directly determine this unique candidate installation position as the target installation position of the target device, indicating that the current location of the target device highly matches the physical location of this installation position. When the number of candidate installation positions is greater than 1, the system can select the one with the smallest feature distance from multiple candidate installation positions as the target installation position of the target device to maximize the accuracy of position matching.
[0049] Furthermore, based on the above embodiments, the preset configuration inheritance conditions may include: the original device associated with the target installation location is offline. This indicates that the smart device originally installed at the target installation location has lost normal communication with the control center due to reasons such as device malfunction, physical removal, network signal interruption, network configuration changes, or system maintenance, thus failing to respond to control commands or provide online services. In this case, the installation location is vacant, allowing the new device to inherit the original device's configuration information through fingerprint matching for seamless replacement.
[0050] Furthermore, based on the above embodiments of the invention, when the preset configuration inheritance conditions are met, the configuration information associated with the target mounting position is associated with the target device, including: The original device's configuration information is sent to the target device, and the device-installation bit mapping is updated.
[0051] The device-mount mapping relationship refers to the binding mapping relationship between physical devices and logical mount points, which is used by the system to accurately locate the corresponding device when control commands are issued, or to update the binding status when the position changes. In some embodiments, the configuration information of the original device is the configuration information associated with the target mount point.
[0052] In this embodiment of the invention, when the control center detects that the original device associated with the target installation position is offline, it will determine that the target device meets the preset configuration inheritance conditions, and then send the configuration information associated with the original device (such as network configuration parameters, permission information, control parameters, etc.) to the target device, and update the corresponding device-installation position mapping relationship to bind the target installation position to the target device, so that the target device can take over all the control logic of the original device.
[0053] Furthermore, after completing the configuration association, the control center can generate a matching result confirmation message and send it to the user interface for display. This confirmation message may include, but is not limited to: the binding relationship between the target device and the target installation location, the type and result of the executed configuration association operation, and the updated device-installation location mapping. Users can view the matching results through the user interface and confirm or manually adjust them. For example, if a user believes the matching result is incorrect, they can manually modify the binding relationship between the target device and the installation location, or cancel the current configuration association operation. After successful matching, the new device automatically takes over the functions of the original device, without requiring manual reconfiguration of network information, permission information, and control parameters, achieving automated and seamless device replacement.
[0054] Furthermore, based on the above embodiments of the invention, when the system is first deployed or the device is running normally, it is necessary to establish a physical location fingerprint record for each device. The specific process is as follows: (1) Device initialization: All smart devices are connected to the control center via WiFi network and configured in FTM Responder mode, which can respond to FTM ranging requests from other devices.
[0055] (2) Device fingerprint generation: The control center coordinates all devices to perform bidirectional FTM ranging between each other. The specific ranging process can be referred to the above embodiment, and will not be repeated here. For each device i, its physical location fingerprint F_i is composed of the ranging vectors between it and all other N devices in the system: F_i=[d[i][1],d[i][2],...,d[i][N]], where d[i][j] represents the ranging distance (i.e., symmetrical distance) between device i and device j. This ranging vector F_i characterizes the relative positional relationship of device i in the system and constitutes the physical location fingerprint of the device.
[0056] (3) Fingerprint record storage: The control center associates and stores the fingerprint F_i of each device with the corresponding device identifier (such as MAC address, device ID) and configuration information (including network configuration, permission information, control parameters, etc.), forming a mapping record of "device identifier - location fingerprint - configuration information". This record serves as the base fingerprint database for subsequent device replacement or location verification.
[0057] Through the above-described physical fingerprint construction process, the system constructs a high-precision physical location fingerprint database using the device's built-in Wi-Fi FTM function without relying on any additional positioning hardware, providing reliable basic data for subsequent automatic device matching and configuration inheritance.
[0058] Example 2 Figure 2 This is a flowchart of a device management method provided in Embodiment 2 of the present invention. This embodiment is applicable to situations involving location verification of devices on the network. The method can be executed by a device management device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 2 As shown in the figure, the device management method provided in this embodiment includes the following steps: S210, In response to the location verification trigger event, obtain the location fingerprint of the target device to be matched; the location fingerprint to be matched includes wireless ranging information between the target device and multiple reference devices.
[0059] Among them, the location verification trigger event can refer to the trigger signal or condition that initiates the location verification process of the network device, such as including but not limited to: the arrival of the periodic verification time, device restart, network reconnection, verification command manually triggered by the user, detection of network topology change, etc.
[0060] In this embodiment of the invention, when the control center responsible for device management receives or detects a location verification trigger event, it can obtain the target device associated with the event. For example, if a verification command initiated by a user for device A is detected, device A is identified as the target device. Then, several devices can be selected from the networked devices as reference devices, and a wireless ranging process is performed between the target device and each reference device to obtain wireless ranging information between the target device and each reference device. This wireless ranging information is then used as a location fingerprint to be matched. The reference devices can be all networked devices or a subset of devices selected based on conditions such as signal quality and physical proximity; this embodiment does not impose specific limitations on this.
[0061] S220. Match the location fingerprint to be matched with the location fingerprint pre-stored in the target device to determine whether the target device is still in the original installation position; wherein, the location fingerprint is used to identify the position of the corresponding preset installation position in the physical space, and the pre-stored location fingerprint is the location fingerprint corresponding to the target device at the original installation position.
[0062] In this embodiment of the invention, the control center can acquire the pre-stored location fingerprint of the target device, and then compare the newly acquired location fingerprint to be matched with the location fingerprint to calculate the similarity or difference between the two. If the similarity between the two is greater than a preset threshold, it is determined that the target device is still in the original installation position; otherwise, it is determined that the target device has left the original installation position, which may be due to misalignment of the installation position or movement of the device.
[0063] The technical solution provided by this invention, in response to a location verification trigger event, obtains the wireless ranging information between the target device and the reference device as a location fingerprint to be matched, and matches it with the pre-stored original installation location fingerprint. This automatically determines whether the target device is still in its original installation location, without the need for additional positioning hardware or manual on-site verification. It achieves automated monitoring and verification of the location status of networked devices, effectively reduces inspection costs, facilitates timely detection of installation location misalignment anomalies, and provides a reliable basis for subsequent configuration self-recovery.
[0064] Furthermore, based on the above embodiments of the invention, the method further includes: When it is detected that the target device matches the original mounting position of a certain reference device, and the reference device matches the original mounting position of the target device, the configuration information associated with the original mounting position of the target device is swapped with the configuration information associated with the original mounting position of the reference device.
[0065] In this embodiment of the invention, when it is determined that the target device is not in its original installation position, the control center will further verify other network devices. If a reference device is detected, and the location fingerprint of the target device matches the installation position corresponding to the reference device, while the location fingerprint of the reference device matches the original installation position corresponding to the target device, then it is determined that the target device and the reference device are respectively in each other's installation positions, forming a cross-mapping relationship. Next, the control center can exchange the configuration information of the installation positions corresponding to the target device and the reference device, that is, swap the configuration information associated with the original installation position of the target device and the configuration information associated with the original installation position of the reference device.
[0066] Furthermore, based on the above embodiments of the invention, the configuration information associated with the original mounting position of the target device and the configuration information associated with the original mounting position of the reference device are interchanged, including: The configuration information associated with the original mounting position of the reference device is sent to the target device, and the configuration information associated with the original mounting position of the target device is sent to the reference device, and the device-mounting position mapping relationship is updated.
[0067] In this embodiment of the invention, when a cross-mapping relationship is detected between the target device and the reference device, the control center can exchange the configuration information of the corresponding mounting positions of the target device and the reference device. Specifically, the configuration information associated with the original mounting position of the target device can be swapped with the configuration information associated with the current mounting position of the reference device, and the device-mounting position mapping relationship can be updated to ensure that the logical control object and the physical mounting position are consistent again.
[0068] This invention can automatically identify cross-mapping relationships through location fingerprint matching and automatically exchange configuration information between the two, thereby realigning the logical control object with the actual physical installation location. The entire process requires no manual intervention, avoiding the tedious operations and potential errors of manual searching and reconfiguration in traditional solutions. This significantly improves the automation level and reliability of IoT device operation and maintenance, and reduces business risks.
[0069] Furthermore, after completing the configuration exchange, the control center can generate location verification result confirmation information and send it to the user interface for display. This confirmation information may include, but is not limited to: the matching status of the target device and the original installation location, the detection results of the cross-mapping relationship, the execution status of the configuration exchange, and the updated device-installation location mapping relationship. Users can view the verification results through the user interface and confirm or manually adjust them. For example, if the system detects a single device misalignment (no cross-mapping is formed), an alarm message will be generated, requiring manual correction by the user; if the system automatically completes the configuration exchange, the user can confirm the result or manually roll back. Through the above matching result confirmation steps, users can monitor the status of device location verification and configuration repair in real time, ensuring reliable restoration of consistency between logical control and physical installation locations.
[0070] Example 3 Figure 3 This is a schematic diagram of the structure of an equipment management device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: The first fingerprint acquisition module 31 is used to acquire the location fingerprint of the target device to be matched in response to a location matching trigger event; the location fingerprint to be matched includes wireless ranging information between the target device and multiple reference devices; The first fingerprint matching module 32 is used to match the location fingerprint to be matched with the location fingerprints of multiple preset installation positions to determine the target installation position corresponding to the target device; wherein, the location fingerprint is used to identify the position of the corresponding preset installation position in the physical space; The first configuration association module 33 is used to associate the configuration information associated with the target installation position with the target device when the preset configuration inheritance conditions are met.
[0071] Furthermore, based on the above embodiments of the invention, the location matching triggering event includes: When a new device joins the network, the number of offline devices in the network is not zero.
[0072] Furthermore, based on the above embodiments, the first fingerprint acquisition module 31 includes: The fingerprint acquisition unit is used to acquire wireless ranging information between the target device and each reference device via the Wi-Fi FTM protocol, and to use the wireless ranging information as the fingerprint of the target device's location to be matched.
[0073] Furthermore, based on the above embodiments of the invention, the fingerprint acquisition unit is specifically used for: For each reference device, perform the following ranging procedure: Based on the Wi-Fi FTM protocol, multiple first-direction distance sampling values are obtained with the target device as the initiator and the reference device as the responder, as well as multiple second-direction distance sampling values with the reference device as the initiator and the target device as the responder. Outlier removal is performed on multiple first-direction distance sample values and multiple second-direction distance sample values to obtain the corresponding first distance and second distance; The average of the first distance and the second distance is taken as the symmetrical distance between the target device and the corresponding reference device; After the target device completes the ranging process with all reference devices, all the obtained symmetrical distances are combined into a ranging vector, and the ranging vector is used as wireless ranging information.
[0074] Furthermore, based on the above embodiments of the invention, the first fingerprint matching module 32 includes: The distance determination unit is used to determine the feature distance between the fingerprint of the location to be matched and the location fingerprint of each preset mounting position; The candidate installation position determination unit is used to determine the preset installation positions whose feature distance is less than a preset distance threshold as candidate installation positions; The target mounting position determination unit is used to determine the candidate mounting position as the target mounting position when the candidate mounting position meets the preset matching conditions.
[0075] Furthermore, based on the above embodiments of the invention, the target mounting position determining unit is specifically used for: When the number of candidate mounting positions is 1, the candidate mounting position is directly determined as the target mounting position; When the number of candidate mounting positions is greater than 1, the candidate mounting position with the smallest feature distance is determined as the target mounting position.
[0076] Furthermore, based on the above embodiments of the invention, the preset configuration inheritance conditions include: The original device associated with the target installation location is offline.
[0077] Furthermore, based on the above embodiments of the invention, the first configuration association module 33 includes: The first configuration distribution unit is used to distribute the configuration information of the original device to the target device and update the device-installation bit mapping relationship.
[0078] The device management apparatus provided in the embodiments of the present invention can execute the device management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0079] Example 4 Figure 4 This is a schematic diagram of the structure of an equipment management device provided in Embodiment 4 of the present invention. Figure 4 As shown, the device includes: The second fingerprint acquisition module 41 is used to acquire the location fingerprint of the target device to be matched in response to the location verification trigger event; the location fingerprint to be matched includes wireless ranging information between the target device and multiple reference devices; The second fingerprint matching module 42 is used to match the location fingerprint to be matched with the location fingerprint pre-stored by the target device to determine whether the target device is still in the original installation position; wherein, the location fingerprint is used to identify the position of the corresponding preset installation position in the physical space, and the pre-stored location fingerprint is the location fingerprint corresponding to the target device at the original installation position.
[0080] Furthermore, based on the above embodiments of the invention, the device further includes a configuration exchange module, used to: when it is detected that the target device matches the original mounting position corresponding to a certain reference device, and the reference device matches the original mounting position corresponding to the target device, exchange the configuration information associated with the original mounting position corresponding to the target device with the configuration information associated with the original mounting position corresponding to the reference device.
[0081] Furthermore, based on the above embodiments of the invention, the configuration of the switching module includes: The second configuration distribution unit is used to distribute the configuration information associated with the original mounting position of the reference device to the target device, distribute the configuration information associated with the original mounting position of the target device to the reference device, and update the device-mounting position mapping relationship.
[0082] The device management apparatus provided in the embodiments of the present invention can execute the device management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0083] Example 5 Figure 5A schematic diagram of an electronic device 50 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0084] like Figure 5 As shown, the electronic device 50 includes at least one processor 51 and a memory, such as a read-only memory (ROM) 52 and a random access memory (RAM) 53, communicatively connected to the at least one processor 51. The memory stores computer programs executable by the at least one processor. The processor 51 can perform various appropriate actions and processes based on the computer program stored in the ROM 52 or loaded from storage unit 58 into the RAM 53. The RAM 53 can also store various programs and data required for the operation of the electronic device 50. The processor 51, ROM 52, and RAM 53 are interconnected via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0085] Multiple components in electronic device 50 are connected to I / O interface 55, including: input unit 56, such as keyboard, mouse, etc.; output unit 57, such as various types of monitors, speakers, etc.; storage unit 58, such as disk, optical disk, etc.; and communication unit 59, such as network card, modem, wireless transceiver, etc. Communication unit 59 allows electronic device 50 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0086] Processor 51 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 51 performs the various methods and processes described above, such as device management methods.
[0087] In some embodiments, the device management method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 50 via ROM 52 and / or communication unit 59. When the computer program is loaded into RAM 53 and executed by processor 51, one or more steps of the device management method described above may be performed. Alternatively, in other embodiments, processor 51 may be configured to perform the device management method by any other suitable means (e.g., by means of firmware).
[0088] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0089] In some embodiments, the device management method may be implemented as a computer program, which is implicitly included in a computer program product. When executed by a processor, the computer program implements the device management method of the present invention. The computer program product can be understood as a software product that primarily implements its solution through a computer program. The computer program used to implement the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer program causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer program may be executed entirely on a machine, partially on a machine, partially on a remote machine as a standalone software package, or entirely on a remote machine or server.
[0090] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0092] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0093] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0094] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0095] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for managing equipment, characterized in that, The method includes: In response to a location matching trigger event, the target device's location fingerprint to be matched is obtained; the target device's location fingerprint includes wireless ranging information between the target device and multiple reference devices; The fingerprint of the location to be matched is matched with the location fingerprints of multiple preset installation locations to determine the target installation location corresponding to the target device; wherein, the location fingerprint is used to identify the location of the corresponding preset installation location in physical space; When the preset configuration inheritance conditions are met, the configuration information associated with the target mounting position is associated with the target device.
2. The method according to claim 1, characterized in that, The location matching trigger event includes: When a new device joins the network, the number of offline devices in the network is not zero.
3. The method according to claim 1, characterized in that, The step of obtaining the fingerprint of the target device's location to be matched includes: The wireless ranging information between the target device and each of the reference devices is obtained through the Wi-Fi FTM protocol, and the wireless ranging information is used as the target device's location fingerprint to be matched.
4. The method according to claim 3, characterized in that, Obtaining the wireless ranging information includes: For each of the aforementioned reference devices, the following ranging procedure is performed: Based on the Wi-Fi FTM protocol, multiple first-direction distance sampling values are obtained with the target device as the initiator and the reference device as the responder, and multiple second-direction distance sampling values are obtained with the reference device as the initiator and the target device as the responder. Outlier removal is performed on multiple first-direction distance sample values and multiple second-direction distance sample values to obtain the corresponding first distance and second distance; The average of the first distance and the second distance is taken as the symmetrical distance between the target device and the corresponding reference device; After the target device completes the ranging process with all the reference devices, all the obtained symmetrical distances are combined into a ranging vector, and the ranging vector is used as the wireless ranging information.
5. The method according to claim 1, characterized in that, The step of matching the fingerprint of the location to be matched with the location fingerprints of multiple preset installation locations to determine the target installation location corresponding to the target device includes: Determine the feature distance between the fingerprint of the location to be matched and the location fingerprint of each of the preset installation positions; The preset installation positions whose feature distance is less than a preset distance threshold are determined as candidate installation positions; When the candidate installation position meets the preset matching conditions, the candidate installation position is determined as the target installation position.
6. The method according to claim 5, characterized in that, The step of determining the candidate installation position as the target installation position when the candidate installation position meets the preset matching conditions includes: When the number of candidate installation positions is 1, the candidate installation position is directly determined as the target installation position; When the number of candidate mounting positions is greater than 1, the candidate mounting position with the smallest feature distance is determined as the target mounting position.
7. The method according to claim 1, characterized in that, The preset configuration inheritance conditions include: The original device associated with the target mounting location is offline.
8. The method according to claim 7, characterized in that, When the preset configuration inheritance conditions are met, associating the configuration information associated with the target mounting position with the target device includes: The configuration information of the original device is sent to the target device, and the device-installation bit mapping relationship is updated.
9. A method for managing equipment, characterized in that, The method includes: In response to a location verification trigger event, the target device's location fingerprint to be matched is obtained; the target device's location fingerprint includes wireless ranging information between the target device and multiple reference devices. The location fingerprint to be matched is matched with the location fingerprint pre-stored by the target device to determine whether the target device is still in the original installation position; wherein, the location fingerprint is used to identify the location of the corresponding preset installation position in the physical space, and the pre-stored location fingerprint is the location fingerprint of the target device at the original installation position.
10. The method according to claim 9, characterized in that, Also includes: When it is detected that the target device matches the original mounting position corresponding to a certain reference device, and the reference device matches the original mounting position corresponding to the target device, the configuration information associated with the original mounting position corresponding to the target device is swapped with the configuration information associated with the original mounting position corresponding to the reference device.
11. The method according to claim 10, wherein exchanging the configuration information associated with the original mounting position of the target device and the configuration information associated with the original mounting position of the reference device comprises: The configuration information associated with the original mounting position of the reference device is sent to the target device, and the configuration information associated with the original mounting position of the target device is sent to the reference device, and the device-mounting position mapping relationship is updated.
12. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the device management method according to any one of claims 1-8 or 9-11.