Unified management method and system for heterogeneous Internet of Things equipment in passive optical network
By introducing a device virtualization layer into the home gateway unit, a standardized virtual device object and mapping library are created, solving the management problem of heterogeneous devices in passive optical networks. This enables localized, low-latency, and highly reliable device interconnection, breaking down ecosystem barriers, providing a unified management experience, and reducing development complexity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WUHAN YANGTZE OPTICAL TECH
- Filing Date
- 2025-12-31
- Publication Date
- 2026-05-05
AI Technical Summary
In existing technologies, smart home devices suffer from severe ecosystem barriers, poor interoperability, fragmented user experience, over-reliance on cloud services, and high complexity in development and integration due to inconsistent communication protocols. In particular, the management and control of heterogeneous devices in passive optical networks are difficult.
A device virtualization layer is introduced into the home gateway unit to achieve unified management of heterogeneous devices by creating standardized virtual device objects and a virtual-physical mapping library. This method involves creating a standardized virtual device object for each heterogeneous physical device, achieving seamless conversion of uplink and downlink data through protocol adapters, and automating linkage through a local scenario rule engine, thus completely abstracting the protocol differences of physical devices.
It enables seamless automated linkage across brands and protocols, providing a localized, low-latency, and highly reliable device interconnection experience, reducing development and integration costs, and ensuring user privacy and real-time performance.
Smart Images

Figure CN121985238A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of optical network communication and Internet of Things (IoT) technology, and in particular to a unified management method and system for heterogeneous IoT devices in a passive optical network. Background Technology
[0002] In modern communication networks, Fiber to the Home (FTTH) based on Passive Optical Network (PON) technology has become the mainstream solution for providing high-speed broadband access. On the user side of the PON network, the Home Gateway Unit (HGU) serves as the core device, integrating multiple functions such as Optical Network Terminal (ONT), router, and wireless access point (Wi-Fi), and is the gateway and central hub of the entire home network.
[0003] Meanwhile, with the rapid development of IoT technology, the smart home field is showing significant characteristics of device diversification and communication protocol diversity. Currently, mainstream smart devices widely adopt various short-range wireless communication protocols such as Wi-Fi, Zigbee, and Bluetooth Mesh. However, these protocols are incompatible with each other at the physical layer, link layer, and application layer, each forming its own independent technological ecosystem.
[0004] Against this backdrop, the HGU, as the central hub of the home network, faces new challenges: how to effectively manage and integrate these smart devices with different protocols and diverse brands. Existing technologies, in attempting to solve the problem of interconnectivity between heterogeneous devices, mainly suffer from the following issues and shortcomings: Ecosystem barriers and poor interoperability: Devices from different brands and using different protocols typically require their own dedicated gateways, mobile applications (Apps), or cloud platforms for management and control. For example, a Zigbee sensor cannot directly control a Wi-Fi light fixture unless they belong to the same closed ecosystem. This severely limits users' ability to freely choose and combine devices, leading to the phenomenon of "ecosystem silos."
[0005] Fragmented user experience: Users need to install multiple apps on their phones to manage devices from different protocols or brands. When enabling cross-device interaction, the setup process is complex, often requiring reliance on specific cloud platforms or complex configurations, making it impossible to achieve truly localized, real-time, and reliable seamless interaction.
[0006] High development and integration costs: Application developers and device manufacturers need to adapt and develop separately for each protocol and even for each major brand ecosystem. This work is repetitive and inefficient, hindering the speed of product and application innovation.
[0007] To address the aforementioned issues, the industry has proposed two main technical approaches, but both approaches have significant shortcomings: The first approach is multi-mode gateway hardware aggregation. This approach simply integrates multiple communication chips (such as Wi-Fi, Zigbee, and Bluetooth chips) into a single gateway device. However, this method only achieves physical-level signal access; the networks of different protocols remain logically isolated. Upper-layer applications or users still need to explicitly distinguish and invoke different protocol interfaces when performing control, failing to fundamentally solve the interoperability problem at the logical layer.
[0008] The second approach relies on cloud platform integration. This approach first connects devices with different protocols to their respective manufacturers' cloud platforms, then a higher-level third-party cloud platform (such as a smart speaker platform) integrates these dispersed cloud services through API interfaces, enabling command forwarding and data exchange. The drawbacks of this approach are obvious: First, all control commands must travel long distances via the external network and multiple cloud servers, resulting in high response latency and a poor user experience; second, its functionality heavily depends on internet connectivity, and if the home broadband connection is lost or the cloud server malfunctions, all cross-device automation scenarios will completely fail, reducing the smart home to a "human-made home"; finally, the status and usage data of user's home devices are continuously uploaded to multiple cloud platforms, posing a risk of data privacy leaks. Summary of the Invention
[0009] This invention provides a unified management method and system for heterogeneous IoT devices in a passive optical network, which solves the problems of serious ecological barriers, poor interoperability, fragmented user experience, excessive reliance on cloud services, and high development and integration complexity of smart home devices caused by inconsistent communication protocols in the prior art, and achieves localized, low-latency, and highly reliable interconnection of heterogeneous devices.
[0010] This invention provides a unified management method for heterogeneous IoT devices in a passive optical network, applied to a home gateway unit. The method includes: For each heterogeneous physical device using a different communication protocol that is connected to the home gateway unit, a corresponding standardized virtual device object is created and maintained. The virtual device object is used to uniformly represent the status and function of the heterogeneous physical device for upper-layer applications. Receive a general control command for the virtual device object, adapt and convert the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object, and send the native communication protocol instruction to the heterogeneous physical device; The system receives native communication protocol data reported from the heterogeneous physical device, parses the native communication protocol data, and updates the status attributes of the corresponding virtual device object.
[0011] The method for unified management of heterogeneous Internet of Things (IoT) devices in a passive optical network provided by the present invention further includes: A virtual-physical mapping library is established and maintained within the home gateway unit. The virtual-physical mapping library is used to record and persist the binding relationship between each virtual device object and its corresponding heterogeneous physical device. The binding relationship includes at least the communication protocol type and network identification information used by the heterogeneous physical devices.
[0012] According to the unified management method for heterogeneous IoT devices in a passive optical network provided by the present invention, the step of creating and maintaining a corresponding standardized virtual device object specifically includes: Discover heterogeneous physical devices requesting access and complete the secure network configuration process with them; After successful network distribution, obtain the device description information of the heterogeneous physical devices; Based on the device description information, a corresponding standard device model is matched or generated from a preset device model library; Based on the standard device model, a virtual device object with a unique virtual identifier is instantiated and generated.
[0013] According to the unified management method for heterogeneous Internet of Things (IoT) devices in a passive optical network provided by the present invention, the data structure of the virtual device object includes at least: A globally unique virtual device identifier, a device type identifier, a set of status attributes representing the real-time status of the device, and a set of standardized control command interfaces that can be invoked by upper-layer applications.
[0014] According to the unified management method for heterogeneous Internet of Things (IoT) devices in a passive optical network provided by the present invention, the general control command includes the globally unique virtual device identifier; Correspondingly, receiving general control commands for the virtual device object specifically includes: The target virtual device object is specified based on the globally unique virtual device identifier contained in the general control command.
[0015] According to the unified management method for heterogeneous IoT devices in a passive optical network provided by the present invention, the step of adapting and converting the general control command into native communication protocol instructions supported by the heterogeneous physical device corresponding to the virtual device object, and sending the native communication protocol instructions to the heterogeneous physical device, specifically includes: Based on the target virtual device object specified in the general control command, query the virtual-physical mapping library to determine its corresponding target heterogeneous physical device and its communication protocol and network address; Invoke the protocol adapter corresponding to the communication protocol; The protocol adapter converts the general control commands into native instruction frames that conform to the communication protocol format, and sends the native instruction frames to the network address through the corresponding physical communication module in the home gateway unit.
[0016] The method for unified management of heterogeneous Internet of Things (IoT) devices in a passive optical network provided by the present invention further includes: A scene rule engine is deployed and run locally on the home gateway unit; The scene rule engine monitors changes in the state attributes of one or more of the virtual device objects; When the monitored state attribute change meets the predefined triggering conditions, the scene rule engine automatically sends the corresponding general control command to one or more target virtual device objects according to the predefined execution rules, so as to drive physical devices with different protocols to complete the coordinated linkage locally in the home gateway unit.
[0017] This invention also provides a unified management system for heterogeneous IoT devices in a passive optical network, applied to a home gateway unit, the system comprising: The object creation module is used to create and maintain a standardized virtual device object for each heterogeneous physical device that uses different communication protocols and is connected to the home gateway unit. The virtual device object is used to uniformly represent the status and function of the heterogeneous physical device for the upper layer application. The instruction conversion module is used to receive general control commands for the virtual device object, adapt and convert the general control commands into native communication protocol commands supported by the heterogeneous physical device corresponding to the virtual device object, and send the native communication protocol commands to the heterogeneous physical device. The parsing and updating module is used to receive native communication protocol data reported from the heterogeneous physical device, parse the native communication protocol data, and update the status attributes of the corresponding virtual device object.
[0018] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a unified management method for heterogeneous Internet of Things devices in a passive optical network as described above.
[0019] The present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the unified management method for heterogeneous Internet of Things devices in a passive optical network as described above.
[0020] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements a unified management method for heterogeneous Internet of Things devices in a passive optical network as described above.
[0021] This invention provides a unified management method and system for heterogeneous IoT devices in a passive optical network (PON). By creating standardized virtual device objects in the user-side core device, the home gateway unit, within the PON, all physical devices of different protocols and brands are logically unified into homogeneous digital objects, achieving true interconnectivity. Users can manage and control all devices through a single upper-layer application without switching between multiple apps. Device manufacturers and application developers only need to develop using a unified virtual device interface, greatly improving development efficiency and promoting openness and innovation throughout the smart home ecosystem. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating the unified management method for heterogeneous IoT devices in a passive optical network provided by the present invention.
[0024] Figure 2 This is one of the structural diagrams of the unified management system for heterogeneous Internet of Things devices in a passive optical network provided by the present invention.
[0025] Figure 3 This is the second schematic diagram of the structure of the unified management system for heterogeneous Internet of Things devices in the passive optical network provided by the present invention.
[0026] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0028] The present invention will now be described in detail with reference to the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments. In the description of the present invention, unless otherwise stated, "at least one" includes one or more. "Multiple" refers to two or more. For example, at least one of A, B, and C includes: A existing alone, B existing alone, A and B existing simultaneously, A and C existing simultaneously, B and C existing simultaneously, and A, B, and C existing simultaneously. In the present invention, " / " means "or". For example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0029] The present invention will now be described in detail with reference to specific embodiments. In some specific embodiments of the present invention, such as... Figure 1 As shown, this solution provides a unified management method for heterogeneous IoT devices in a passive optical network, applied to a home gateway unit. The method includes: Step 100: For each heterogeneous physical device using a different communication protocol that is connected to the home gateway unit, create and maintain a corresponding standardized virtual device object. The virtual device object is used to uniformly represent the status and function of the heterogeneous physical device for the upper layer application. Step 200: Receive a general control command for the virtual device object, adapt and convert the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object, and send the native communication protocol instruction to the heterogeneous physical device; Step 300: Receive native communication protocol data reported from the heterogeneous physical device, parse the native communication protocol data, and update the status attribute of the corresponding virtual device object.
[0030] It should be noted that existing technologies attempting to solve the problem of unified management of heterogeneous smart home devices mainly fall into two categories, but both have fundamental flaws. The multi-mode gateway hardware aggregation solution only integrates multiple communication chips at the physical level; different protocol networks remain logically independent, and upper-layer applications still need to distinguish protocols, failing to achieve truly unified and convenient control and management. The cloud-based integration solution requires all cross-device commands and data to be relayed between multiple cloud platforms via the internet. This inevitably leads to high response latency, heavy reliance on network connectivity, and privacy risks, failing to meet users' growing demands for real-time performance, reliability, and security.
[0031] Therefore, this invention creatively proposes a unified management method deployed locally on a Passive Optical Network (HGU) home gateway. The core of this method lies in the thorough abstraction of the underlying heterogeneous physical world by introducing a device virtualization layer.
[0032] In order to achieve Figure 1 The method shown in this invention provides a preferred system architecture.
[0033] Please see Figure 2 This invention provides a unified management system for heterogeneous Internet of Things (IoT) devices in a passive optical network. The system mainly includes an electronic device serving as the control center, such as the home gateway unit HGU 100 in this embodiment, one or more managed heterogeneous physical devices 200 (such as a Wi-Fi light 210, a Zigbee sensor 220, a Zigbee bedroom light 230, a Bluetooth bedroom air conditioner 240, etc.), and a user terminal 300 for human-computer interaction (such as a smartphone app).
[0034] like Figure 2 A dedicated HGU device virtualization layer is set up in the home gateway unit HGU 100. This HGU device virtualization layer is located between the physical multimode communication module (supporting Wi-Fi, Zigbee, Bluetooth, etc.) and the upper-layer application, and is used to dynamically create and manage a corresponding, unified virtual device object for each successfully connected physical device.
[0035] The home gateway unit HGU 100 is the physical carrier and computing core for implementing the method of this invention. It is reconstructed from a traditional network access device into a smart home local control center with powerful edge computing capabilities. Its internal architecture includes: Physical Multimode Communication Module 110: This is the hardware foundation for the HGU to establish connections with external physical devices. It integrates radio frequency chips and physical layer circuits for various communication protocols, such as Wi-Fi chips and Zigbee coordinator chips, enabling it to communicate directly with devices using different protocols.
[0036] Device Virtualization Layer 120: This is the software middleware running on the HGU processor, and it is the soul of the entire invention. It sits between the physical hardware and upper-layer applications, responsible for implementing all core unified management logic. This layer consists of the following four closely cooperating functional modules: Protocol Adapter 121: For each supported communication protocol, the virtualization layer has a built-in corresponding protocol adapter, which is responsible for converting upper-layer general commands into native instructions and parsing lower-layer native data into standardized information.
[0037] Specifically, the HGU device virtualization layer includes a protocol adapter module. This module translates control commands sent from upper-layer applications to the virtual device object in real time and distributes them as specific IoT protocol instructions used by the target physical device. It also parses and updates the native state data reported by physical devices using different protocols into the corresponding state attributes of the virtual device object in real time and notifies the upper-layer application.
[0038] Virtual Device Object 122: Whenever a physical device successfully connects, the virtualization layer dynamically creates an independent, standardized virtual device object for it. The data structure of this object presents a consistent, protocol-independent interface to upper-layer applications, thereby completely hiding the complexity and differences of the underlying physical devices.
[0039] Specifically, the virtual device object 122 completely abstracts the functional interface of the physical device. Its data structure includes at least: a unique virtual ID independent of the protocol, a device hardware type, a set of status attributes representing the real-time state of the device, and a set of control commands that can be invoked by the upper layer. The native protocol characteristics of the physical device are completely encapsulated and hidden.
[0040] HGU automatically completes the matching and secure network configuration process for the specific protocol of the device, and ultimately triggers the creation of the virtual device object.
[0041] The unified management system for heterogeneous IoT devices in passive optical networks also includes a virtual-physical mapping library: connecting the virtual world and the physical world, it is a persistently stored data structure used to accurately record and maintain the binding relationship between each virtual device object and its corresponding physical device, and is the cornerstone for achieving accurate command routing and accurate state synchronization.
[0042] Specifically, the HGU device virtualization layer maintains a virtual-to-real mapping library, persistently recording the binding relationship between each virtual device object and its corresponding physical device (protocol type, MAC address, network address, etc.). It also manages the entire lifecycle of virtual objects, from creation and online status synchronization to destruction upon device removal.
[0043] In some possible embodiments of the present invention, the unified management method for heterogeneous Internet of Things devices in a passive optical network provided by the present invention further includes: A virtual-physical mapping library is established and maintained within the home gateway unit. The virtual-physical mapping library is used to record and persist the binding relationship between each virtual device object and its corresponding heterogeneous physical device. The binding relationship includes at least the communication protocol type and network identification information used by the heterogeneous physical devices.
[0044] Specifically, this method masks protocol differences by creating standardized virtual objects for each physical device; precisely manages the binding relationships between objects by building a virtual-physical mapping library; achieves seamless conversion of uplink and downlink data through protocol adapters; and enables automated linkage without cloud reliance through a local scenario rule engine. This fundamentally solves the problems of "ecosystem silos" and "protocol fragmentation." The unified management system for heterogeneous IoT devices in passive optical networks also includes a local scenario rule engine: this engine is logically orchestrated entirely based on the state and commands of virtual device objects, with all calculations and judgments completed locally on the HGU, achieving millisecond-level response, network outage availability, and privacy and security.
[0045] Specifically, the HGU device virtualization layer incorporates a scene rule engine. Users or the system define triggering conditions based on the state attributes of virtual device objects and customize execution actions based on the control commands of virtual device objects. The engine's listening, judgment, and triggering processes are all performed within the virtualization layer, without needing to be aware of the underlying physical protocol, thus achieving seamless automation across brands and protocols.
[0046] The system also includes upper-layer applications: these are the user interfaces for interacting with the system, such as mobile apps running on user terminal 300. Thanks to the unified API provided by the device virtualization layer 120, upper-layer applications do not need to concern themselves with the specific protocols of the devices to achieve unified management of all devices.
[0047] It is worth noting that this embodiment uses a home gateway unit HGU that supports both Wi-Fi and Zigbee protocols as an example for illustration, but the scope of protection of this invention is not limited to this, and it is also applicable to systems that integrate more communication protocols such as Bluetooth and Thread.
[0048] The following will combine Figure 2 The system architecture of this invention is illustrated in detail, taking a complete scenario of a Zigbee human body sensor linked to a Wi-Fi smart light as an example. This process fully demonstrates... Figure 1 The three core steps are given in the text.
[0049] Step 100: For each heterogeneous physical device using a different communication protocol that is connected to the home gateway unit, create and maintain a corresponding standardized virtual device object. The virtual device object is used to uniformly represent the status and function of the heterogeneous physical device for the upper layer application. This step is fundamental to building a unified virtual world and is also known as the device loading process.
[0050] In some possible embodiments of the present invention, the creation and maintenance of a corresponding, standardized virtual device object specifically includes: Discover heterogeneous physical devices requesting access and complete the secure network configuration process with them; After successful network distribution, obtain the device description information of the heterogeneous physical devices; Based on the device description information, a corresponding standard device model is matched or generated from a preset device model library; Based on the standard device model, a virtual device object with a unique virtual identifier is instantiated and generated.
[0051] In some possible embodiments of the present invention, the data structure of the virtual device object includes at least: A globally unique virtual device identifier, a device type identifier, a set of status attributes representing the real-time status of the device, and a set of standardized control command interfaces that can be invoked by upper-layer applications.
[0052] For example, when a new "Zigbee human sensor" is first connected: The user triggers the discovery process via the app. The device virtualization layer 120 instructs the Zigbee protocol adapter 121 to enter discovery mode and discover the sensor. Subsequently, the adapter and the sensor complete the protocol-specific secure network configuration process.
[0053] After successful network configuration, the Zigbee adapter reads the sensor's device description information (such as manufacturer ID, device type, etc.). The virtualization layer 120 matches this information with the built-in device model library to find the corresponding standard device model for the human body sensor.
[0054] Based on the matched model, the virtualization layer 120 instantiates a new virtual device object 122 and assigns it a globally unique virtual device identifier (e.g., "sensor_livingroom_001"). Simultaneously, a new binding record is created in the virtual-physical mapping library, associating the virtual ID with the sensor's physical address, Zigbee network short address, and protocol type "Zigbee," and storing this association persistently. Through the same process, a Wi-Fi smart light is also connected to the system, and a corresponding virtual device object with a unique virtual ID (e.g., "light_livingroom_001") is created.
[0055] Step 200: Receive a general control command for the virtual device object, adapt and convert the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object, and send the native communication protocol instruction to the heterogeneous physical device; In some possible embodiments of the present invention, the general control command includes the globally unique virtual device identifier; Correspondingly, receiving general control commands for the virtual device object specifically includes: The target virtual device object is specified based on the globally unique virtual device identifier contained in the general control command.
[0056] In some possible embodiments of the present invention, the step of adapting and converting the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object, and sending the native communication protocol instruction to the heterogeneous physical device, specifically includes: Based on the target virtual device object specified in the general control command, query the virtual-physical mapping library to determine its corresponding target heterogeneous physical device and its communication protocol and network address; Invoke the protocol adapter corresponding to the communication protocol; The protocol adapter converts the general control commands into native instruction frames that conform to the communication protocol format, and sends the native instruction frames to the network address through the corresponding physical communication module in the home gateway unit.
[0057] This step describes how the system translates upper-level intentions into physical actions. We will illustrate this through an automated scenario triggered by the rules engine: The Zigbee human sensor detects movement and reports the "person" event via the Zigbee protocol.
[0058] The event is parsed and updated in the state of the virtual object sensor_livingroom_001. The local scene rule engine detects this state change, matches it with the user-preset linkage rule, and then automatically generates a general control command for the virtual object light_livingroom_001 locally on the HGU.
[0059] The device virtualization layer 120 receives this general control command, such as the JSON format { "id": "light_livingroom_001", "cmd": "turnOn"}. The target virtual device object is precisely specified through the unique virtual identifier light_livingroom_001 contained in the command.
[0060] Furthermore, the virtualization layer queries the virtual-physical mapping library and learns that the ID is bound to the Wi-Fi protocol and the light's IP address. It then calls the Wi-Fi protocol adapter 121.
[0061] The Wi-Fi adapter converts the generic command `turnOn` into a native command frame (such as a specific HTTP POST request) specified by the target Wi-Fi light manufacturer's API. This native command frame is then sent to the IP address of the target Wi-Fi light 210 via the Wi-Fi chip in the physical multimode communication module 110, causing the light to illuminate.
[0062] Step 300: Receive native communication protocol data reported from the heterogeneous physical device, parse the native communication protocol data, and update the status attribute of the corresponding virtual device object.
[0063] This step describes how to synchronize changes in the physical world to the virtual world.
[0064] In some possible embodiments of the present invention, the method further includes: A scene rule engine is deployed and run locally on the home gateway unit; The scene rule engine monitors changes in the state attributes of one or more of the virtual device objects; When the monitored state attribute change meets the predefined triggering conditions, the scene rule engine automatically sends the corresponding general control command to one or more target virtual device objects according to the predefined execution rules, so as to drive physical devices with different protocols to complete the coordinated linkage locally in the home gateway unit.
[0065] For example, suppose a user sets a rule: "Automatically turn on the main living room light when someone is in the living room."
[0066] When the Zigbee human sensor 220 detects movement, it reports a native Zigbee protocol data packet through the physical multimode communication module 110.
[0067] The Zigbee protocol adapter 121 receives the message, parses it, and extracts the valid status information, such as changing "detection status" to "occupied".
[0068] The adapter uses the source physical address of the message (such as a Zigbee short address) to look up the virtual-physical mapping library 123 in reverse to find the corresponding virtual device identifier sensor_livingroom_001.
[0069] The device virtualization layer 120 updates the "detection status" attribute of the virtual object sensor_livingroom_001 to "occupied".
[0070] The virtualization layer 120 proactively pushes this state update to all subscribed upper-layer applications 130 through an event notification mechanism. The icons on the App interface can change accordingly, completing a closed loop of state synchronization from the physical world to the virtual world and then to the application interface.
[0071] The above-described configuration in this embodiment represents the most significant advantage of this invention compared to cloud-based solutions. The entire linkage chain, from perception to judgment to execution, is completed entirely within microseconds locally on the HGU, without any internet connection or cloud server involvement. Even with a home broadband outage, such automated scenarios continue to operate reliably, while all sensitive on-site data remains within the local network, greatly ensuring real-time performance, reliability, and user privacy.
[0072] As can be seen from the detailed description of the above specific embodiments, the present invention has the following significant advantages compared with the prior art: Completely breaks down ecosystem barriers: By abstracting devices with different protocols and brands into homogeneous virtual objects through a virtualization layer, true "plug and play" and unified management are achieved. Users can freely mix and match devices without being limited to a single ecosystem.
[0073] Achieve localized real-time linkage: The core control, status synchronization, and automation logic are all executed locally on the home gateway, eliminating the dependence on cloud services and achieving millisecond-level response and availability even when the network is offline. This fundamentally solves the problems of latency, single point of failure, and privacy leaks.
[0074] Provides a seamless user experience: Users can manage all devices through a unified interface, and setting up cross-protocol linkage scenarios is simple and intuitive, completely eliminating the tedious operation of switching between multiple apps.
[0075] Significantly reduces development and integration costs: It provides a unified and standardized integration interface for device manufacturers and application developers, eliminating the need for repetitive development for each protocol or ecosystem, allowing them to focus on product functionality and innovation, and accelerating industry development.
[0076] In another specific embodiment of the present invention, see also Figure 2 For example, a smart light connected to HGU Wi-Fi: First, triggered by pressing the DISC button on the HGU device, the HGU device virtualization layer command protocol adapter enters discovery mode. The protocol adapter summarizes the discovered device information (such as device type, manufacturer information, and device functions) to the HGU device virtualization layer. After deduplication and formatting, the HGU device virtualization layer instructs the protocol adapter to complete the protocol-specific secure network configuration process.
[0077] After a device successfully joins the network, the HGU device virtualization layer matches a template from the device model library based on the device's type and function. Then, the HGU device virtualization layer creates a virtual device object with a unique virtual ID and binds it to the physical device's network address, MAC address, protocol type, and other information, recording this information in the "virtual-real" mapping database. This new virtual device object is then visible to upper-layer applications via an API.
[0078] When a user sends the command "Turn on the bedroom main light" through the APP, the command is sent to the HGU device virtualization layer via API in the format (e.g., {"cmd": "Turn on", "id": "Bedroom1_Light1"}).
[0079] Furthermore, the HGU device virtualization layer searches the "virtual-reality" mapping database based on the virtual ID in the command, finds the corresponding physical device and its protocol type (such as Zigbee), and calls the corresponding protocol adapter. The Zigbee protocol adapter "translates" the command into Zigbee protocol network-specific instructions and sends them to the target device through the physical layer to turn on the light in bedroom 1.
[0080] When a device's status changes, it reports the change via the Zigbee protocol. The Zigbee protocol adapter receives the native message, parses out the status information (such as "on"), and updates the "on / off status" attribute of the virtual device object it is bound to.
[0081] The HGU device virtualization layer has a rule engine that continuously monitors the state changes of all virtual device objects. When someone passes by the Zigbee human body sensor and triggers it, the sensor transmits the "someone passed by" status to the HGU device virtualization layer protocol adapter via the Zigbee protocol, and then synchronizes it to the virtual object "living room_sensor1".
[0082] The HGU device virtualization layer rule engine detects that the condition "Someone is passing by" is met for the virtual object "Living Room_Sensor 1". It then sends an "On" command (e.g., {"cmd": "On", "id": "Living Room_Light 1"}) to the HGU device virtualization layer for the virtual object "Living Room_Light 1". Upon receiving the command, the HGU device virtualization layer converts it into a Wi-Fi protocol instruction according to step 4 and sends it out, ultimately turning on the living room Wi-Fi light.
[0083] Finally, the HGU device virtualization layer proactively pushes this state update event to all subscribed upper-layer applications via API, completing the state synchronization loop.
[0084] The entire process is completed under the coordination of the HGU device virtualization layer, achieving localized, real-time, and reliable linkage across protocols and brands without the need for cloud relay.
[0085] This invention introduces the HGU device virtualization layer to construct a unified virtual device model, realizing the deep integration of multi-protocol heterogeneous devices at the logic layer, completely breaking down ecosystem barriers, providing users with a unified and smooth interactive experience, and greatly reducing development and integration complexity. It is a key infrastructure for smart homes to move towards true openness and interconnection.
[0086] These key points together form a complete solution. This invention does not simply create a protocol conversion bridge, but rather creates an intermediate virtualization layer to completely abstract the heterogeneous physical world into a homogeneous, easily managed, and programmable digital world, thereby fundamentally solving the long-standing problems of "fragmentation" and "ecological isolation" in the Internet of Things field.
[0087] In some specific embodiments of the present invention, such as Figure 3 As shown, this solution provides a unified management system for heterogeneous IoT devices in a passive optical network, applied to a home gateway unit. The system includes: The object creation module 10 is used to create and maintain a standardized virtual device object for each heterogeneous physical device that uses different communication protocols and is connected to the home gateway unit. The virtual device object is used to uniformly represent the status and function of the heterogeneous physical device for the upper layer application. The instruction conversion module 20 is used to receive a general control command for the virtual device object, adapt and convert the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object, and send the native communication protocol instruction to the heterogeneous physical device. The parsing and updating module 30 is used to receive native communication protocol data reported from the heterogeneous physical device, and after parsing the native communication protocol data, update the status attribute of the corresponding virtual device object.
[0088] The unified management system for heterogeneous IoT devices in a passive optical network provided in this embodiment of the invention has a similar implementation principle and beneficial effects to the unified management method for heterogeneous IoT devices in a passive optical network shown in the above embodiments. For details, please refer to the implementation principle and beneficial effects of the unified management method for heterogeneous IoT devices in a passive optical network shown in the above embodiments. It will not be repeated here.
[0089] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communications interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a unified management method for heterogeneous IoT devices in a passive optical network. This method includes: creating and maintaining a standardized virtual device object for each heterogeneous physical device using different communication protocols connected to the home gateway unit; receiving general control commands for the virtual device objects, adapting and converting the general control commands into native communication protocol instructions supported by the heterogeneous physical devices corresponding to the virtual device objects, and sending the native communication protocol instructions to the heterogeneous physical devices; receiving native communication protocol data reported by the heterogeneous physical devices, parsing the native communication protocol data, and updating the status attributes of the corresponding virtual device objects.
[0090] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0091] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the unified management method for heterogeneous IoT devices in a passive optical network provided by the above methods. The method includes: creating and maintaining a standardized virtual device object for each heterogeneous physical device using different communication protocols that is connected to the home gateway unit. The virtual device object is used to uniformly represent the state and function of the heterogeneous physical device for upper-layer applications; receiving a general control command for the virtual device object, adapting and converting the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object, and sending the native communication protocol instruction to the heterogeneous physical device; receiving native communication protocol data reported by the heterogeneous physical device, parsing the native communication protocol data, and updating the state attribute of its corresponding virtual device object.
[0092] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a unified management method for heterogeneous IoT devices in a passive optical network provided by the methods described above. The method includes: creating and maintaining a standardized virtual device object corresponding to each heterogeneous physical device using different communication protocols connected to the home gateway unit; the virtual device object being used to uniformly represent the state and function of the heterogeneous physical device for upper-layer applications; receiving a general control command for the virtual device object; adapting and converting the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object; and sending the native communication protocol instruction to the heterogeneous physical device; receiving native communication protocol data reported by the heterogeneous physical device; parsing the native communication protocol data; and updating the state attribute of the corresponding virtual device object.
[0093] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0094] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for unified management of heterogeneous Internet of Things (IoT) devices in a passive optical network, characterized in that, Applied to a home gateway unit, the method includes: For each heterogeneous physical device using a different communication protocol that is connected to the home gateway unit, a corresponding standardized virtual device object is created and maintained. The virtual device object is used to uniformly represent the status and function of the heterogeneous physical device for upper-layer applications. Receive a general control command for the virtual device object, adapt and convert the general control command into a native communication protocol instruction supported by the heterogeneous physical device corresponding to the virtual device object, and send the native communication protocol instruction to the heterogeneous physical device; The system receives native communication protocol data reported from the heterogeneous physical device, parses the native communication protocol data, and updates the status attributes of the corresponding virtual device object.
2. The method for unified management of heterogeneous IoT devices in a passive optical network according to claim 1, characterized in that, The method further includes: A virtual-physical mapping library is established and maintained within the home gateway unit. The virtual-physical mapping library is used to record and persist the binding relationship between each virtual device object and its corresponding heterogeneous physical device. The binding relationship includes at least the communication protocol type and network identification information used by the heterogeneous physical devices.
3. The method for unified management of heterogeneous IoT devices in a passive optical network according to claim 1, characterized in that, The creation and maintenance of a corresponding standardized virtual device object specifically includes: Discover heterogeneous physical devices requesting access and complete the secure network configuration process with them; After successful network distribution, obtain the device description information of the heterogeneous physical devices; Based on the device description information, a corresponding standard device model is matched or generated from a preset device model library; Based on the standard device model, a virtual device object with a unique virtual identifier is instantiated and generated.
4. The method for unified management of heterogeneous Internet of Things (IoT) devices in a passive optical network according to any one of claims 1-3, characterized in that, The data structure of the virtual device object includes at least: A globally unique virtual device identifier, a device type identifier, a set of status attributes representing the real-time status of the device, and a set of standardized control command interfaces that can be invoked by upper-layer applications.
5. The method for unified management of heterogeneous IoT devices in a passive optical network according to claim 4, characterized in that, The general control command includes the globally unique virtual device identifier; Correspondingly, receiving general control commands for the virtual device object specifically includes: The target virtual device object is specified based on the globally unique virtual device identifier contained in the general control command.
6. The method for unified management of heterogeneous IoT devices in a passive optical network according to claim 2 or 5, characterized in that, The step of adapting and converting the general control commands into native communication protocol instructions supported by the heterogeneous physical device corresponding to the virtual device object, and sending the native communication protocol instructions to the heterogeneous physical device, specifically includes: Based on the target virtual device object specified in the general control command, query the virtual-physical mapping library to determine its corresponding target heterogeneous physical device and its communication protocol and network address; Invoke the protocol adapter corresponding to the communication protocol; The protocol adapter converts the general control commands into native instruction frames that conform to the communication protocol format, and sends the native instruction frames to the network address through the corresponding physical communication module in the home gateway unit.
7. The method for unified management of heterogeneous IoT devices in a passive optical network according to claim 1, characterized in that, The method further includes: A scene rule engine is deployed and run locally on the home gateway unit; The scene rule engine monitors changes in the state attributes of one or more of the virtual device objects; When the monitored state attribute change meets the predefined triggering conditions, the scene rule engine automatically sends the corresponding general control command to one or more target virtual device objects according to the predefined execution rules, so as to drive physical devices with different protocols to complete the coordinated linkage locally in the home gateway unit.
8. A unified management system for heterogeneous Internet of Things (IoT) devices in a passive optical network, characterized in that, The system, applied to a home gateway unit, includes: The object creation module is used to create and maintain a standardized virtual device object for each heterogeneous physical device that uses different communication protocols and is connected to the home gateway unit. The virtual device object is used to uniformly represent the status and function of the heterogeneous physical device for the upper layer application. The instruction conversion module is used to receive general control commands for the virtual device object, adapt and convert the general control commands into native communication protocol commands supported by the heterogeneous physical device corresponding to the virtual device object, and send the native communication protocol commands to the heterogeneous physical device. The parsing and updating module is used to receive native communication protocol data reported from the heterogeneous physical device, parse the native communication protocol data, and update the status attributes of the corresponding virtual device object.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the unified management method for heterogeneous Internet of Things devices in a passive optical network as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the unified management method for heterogeneous Internet of Things devices in a passive optical network as described in any one of claims 1 to 7.