A smart community-oriented cross-brand device compatibility adaptation method

By constructing a semantic model and dynamic mapping relationship for community space, the problem of configuration complexity caused by differences in device behavior during cross-brand device adaptation is solved, achieving seamless adaptation and flexible adjustment of devices and space functions.

CN122160269APending Publication Date: 2026-06-05SCHIELE INTELLIGENCE BUILDING SYST SHANGHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SCHIELE INTELLIGENCE BUILDING SYST SHANGHAI
Filing Date
2026-03-20
Publication Date
2026-06-05

Smart Images

  • Figure CN122160269A_ABST
    Figure CN122160269A_ABST
Patent Text Reader

Abstract

The application provides a cross-brand device compatibility adaptation method for a smart community, constructs a community space semantic model, binds a physical device to a space node in the community space semantic model through a space anchor point mechanism, issues a corresponding standard space instruction set to the physical device according to the space node, acquires a response result, constructs a dynamic mapping relationship through the response result, and performs compatibility adaptation according to the dynamic mapping relationship; the community space semantic model is constructed, the physical device is bound to the space node, the device capability is detected through the standard space instruction set, the dynamic mapping relationship is constructed, and the compatibility adaptation of cross-brand devices is realized, so that the problems of logical fragmentation and scene fragmentation in the traditional adaptation method are solved, and the adaptation flexibility is improved through a space negotiation mode; the dynamic mapping relationship is maintained and updated, so that the devices are still in a normal adaptation relationship after device failure, replacement or space function adjustment, and cross-brand device compatibility is realized through this method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing, and more specifically, to a method for cross-brand device compatibility adaptation for smart communities. Background Technology

[0002] Existing cross-brand device adaptation methods, such as protocol conversion, SDK integration, and dynamic script injection, all belong to device-centric adaptation logic. The system needs to write adaptation logic separately for each device and each device model. Devices of the same brand and model need to execute different linkage logic when deployed in different spatial locations in the community. However, traditional adaptation solutions only use the device ID as the core and cannot distinguish the behavioral differences of the same type of device in different spaces. Moreover, the traditional adaptation layer only recognizes the device ID and does not understand the spatial relationship of the device. The configuration is complex and lacks flexibility, which cannot adapt to the dynamic operation needs of smart communities.

[0003] Therefore, this invention proposes an adaptation method based on spatial semantic mapping, which enables cross-brand device compatibility and adaptation. Summary of the Invention

[0004] In view of the aforementioned problems, and in conjunction with the first aspect of the present invention, embodiments of the present invention provide a method for cross-brand device compatibility adaptation for smart communities, the method comprising: Construct a community spatial semantic model, which is represented as a digital twin topology structure corresponding to the physical space of the smart community; Based on the spatial anchoring mechanism, physical devices are bound to spatial nodes in the community spatial semantic model; Based on the spatial nodes, the corresponding standard spatial command set is sent to the physical devices to obtain the response results; A dynamic mapping relationship is constructed based on the response results, and compatibility adaptation is performed based on the dynamic mapping relationship.

[0005] As a further aspect of the present invention, a community space semantic model is constructed, including: A spatial hierarchy is constructed based on a graph structure, and the spatial hierarchy maps to the physical space of the smart community. Assign a corresponding space type to each spatial level node, and set a space capability label for each spatial node that is bound to the space type; A community spatial semantic model is constructed based on the digital twin topology, which includes spatial type, spatial hierarchy and spatial capability labels.

[0006] As a further aspect of the present invention, binding physical devices to spatial nodes in a community spatial semantic model based on a spatial anchoring mechanism includes: A community digital twin map is generated based on the community spatial semantic model, and spatial nodes corresponding to the actual installation locations of physical devices are selected on the community digital twin map to initially bind the physical devices to the spatial nodes. After the initial binding is completed, the spatial anchoring process is automatically started. Based on the spatial capability tag of the spatial node, the physical device is deeply bound to the spatial node. The spatial node is represented as the basic unit in the topology of the community spatial semantic model.

[0007] As a further aspect of the present invention, a corresponding standard space instruction set is issued to a physical device based on a space node, and a response result is obtained, including: A standard spatial instruction set is constructed based on spatial capability tags. The standard spatial instruction set corresponds one-to-one with the spatial capability tags, including but not limited to instructions for obtaining video streams, opening access permissions, and obtaining smoke status. It sends a standard space command set to physical devices, receives response data from physical devices, and obtains response results.

[0008] As a further aspect of the present invention, a dynamic mapping relationship is constructed based on the response results, and compatibility adaptation is performed based on the dynamic mapping relationship, including: The response of the physical device is judged based on the response result of the physical device to the standard space instruction set; If the physical device can respond normally to the standard space command, the system will automatically identify the function type of the corresponding physical device and establish a dynamic mapping relationship between the physical device’s private capabilities and the standard space capabilities. Among them, the physical device private capability refers to the functions and corresponding private instructions possessed by the physical device itself, and the spatial standard capability refers to the standard functional capabilities possessed by the spatial node based on the spatial capability label definition; If the physical device cannot respond to the standard space command, it will automatically enter the space negotiation mode to establish a dynamic mapping relationship between the physical device’s private capabilities and the standard space capabilities. Based on dynamic mapping relationships, compatibility adaptation is performed between the private capabilities of physical devices and the standard capabilities of the system space.

[0009] As a further aspect of the present invention, the spatial negotiation mode includes: Construct an adaptation mapping library and calculate semantic and functional similarity between the private capabilities of physical devices and the standard capabilities of spatial devices based on cosine similarity; A similarity threshold is set, and a comprehensive similarity judgment is made by combining semantic similarity and functional similarity. The judgment result is obtained, and the dynamic mapping relationship between the private capabilities of physical devices and the standard capabilities of space is obtained based on the judgment result.

[0010] As a further aspect of the present invention, the method further includes: Real-time monitoring of the operating status of physical equipment and the updates to the community spatial semantic model, including adjustments to the spatial type of spatial nodes and the addition or deletion of spatial capability tags; If a physical device is detected to be faulty or replaced, the standard spatial instruction set for the corresponding spatial node will be automatically reissued to the physical device to build and update the dynamic mapping relationship. If an update to the community space semantic model is detected, all physical devices bound to that space node will be automatically traversed, and the updated standard space instruction set will be reissued to synchronously update the dynamic mapping relationship of all physical devices. Attached Figure Description

[0011] Figure 1 This is a flowchart illustrating the steps of a cross-brand device compatibility adaptation method for smart communities according to the present invention. Detailed Implementation

[0012] The present invention will be further described in detail below through specific embodiments. The following embodiments are merely descriptive and not limiting, and should not be used to limit the scope of protection of the present invention.

[0013] like Figure 1 As shown, a method for cross-brand device compatibility adaptation for smart communities includes the following steps: Step S1: Construct a community space semantic model, which is represented as a digital twin topology structure corresponding to the physical space of the smart community.

[0014] In this embodiment, step S1 includes: A spatial hierarchy is constructed based on a graph structure, which maps to the physical space of the smart community.

[0015] Specifically, the construction of the spatial hierarchy requires comprehensive coverage of all physical areas within the community, clearly defining the boundaries and relationships of each area to ensure accurate mapping between the spatial hierarchy and physical space, laying the foundation for subsequent device binding and spatial linkage. Each node in the diagrammatic structure corresponds to a specific physical area, and the lines connecting the nodes represent the relationships between areas, such as accessibility and adjacency.

[0016] In some possible embodiments, for XX Community, a graphical spatial hierarchy is constructed based on its actual physical layout. The core nodes include XX Community, Building 1, Building 2, Building 3, underground parking garage, children's play area, and community gate. Each node is connected by graphical lines. The underground parking garage is connected to the three residential buildings and the community gate, and the children's play area is connected to Building 2 and Building 3. Each node accurately corresponds to the actual physical area within the community, realizing a 1:1 mapping between the spatial hierarchy and the physical space of XX Community.

[0017] Assign a corresponding space type to each spatial level node, and set a space capability label for each spatial node that is bound to the space type.

[0018] Specifically, space types are categorized based on the physical area functions corresponding to space nodes, with each space node corresponding to a unique space type, ensuring a precise match between space type and area function. Space capability tags are preset based on the functional requirements of each space type and are bound one-to-one with the space type. The tag content clearly defines the core functional capabilities that the space node should possess, providing a basis for the subsequent construction of standard space instruction sets and equipment capability detection. Space capability tags can be added, deleted, or modified according to adjustments in space functions, exhibiting flexible adaptability.

[0019] In some possible embodiments, each node in the spatial hierarchy of the XX community is assigned a corresponding space type and a space capability label is set. The community gate space type is an entrance passage area, and the labels are access control, video surveillance, and intercom. The unit door of Building 1 space type is a unit entrance area, and the labels are access control, video surveillance, and night light control. The underground garage space type is a vehicle passage and security area, and the labels are smoke detection, lighting control, and vehicle recognition. The children's play area space type is a leisure activity area, and the labels are lighting control and noise detection. All labels are precisely bound to the functional requirements of the corresponding space type.

[0020] A community spatial semantic model is constructed based on the digital twin topology, which includes spatial type, spatial hierarchy and spatial capability labels.

[0021] Specifically, the community space semantic model can not only intuitively present the layout and relationship of the community's physical space, but also clarify the functional requirements of each space through spatial capability tags, which is the support for subsequent device binding, command issuance, and linkage control.

[0022] In some possible embodiments, the model clearly presents the graphical relationship between the entire XX community and its various sub-districts. Clicking on the underground parking garage node allows direct viewing of its space type as vehicle access and security area, and the bound space capability labels as smoke detection, lighting control, and vehicle recognition. Clicking on the unit door node of Building 1 allows viewing of its space type and corresponding capability labels, thus realizing the digital replication and functional labeling of the physical space of the XX community.

[0023] Step S2: Based on the spatial anchoring mechanism, bind the physical device to the spatial node in the community spatial semantic model.

[0024] In this embodiment, step S2 includes: A community digital twin map is generated based on the community spatial semantic model. Spatial nodes corresponding to the actual installation locations of physical devices are selected on the community digital twin map to initially bind the physical devices to the spatial nodes.

[0025] Specifically, the community digital twin map is a visual representation of the community spatial semantic model, corresponding one-to-one with the community spatial semantic model. It can intuitively display the location, relationship, and spatial capability labels of each spatial node. The initial binding process does not require manual configuration of device models and protocol parameters. You only need to access the digital twin map through a handheld configuration APP, select the corresponding spatial node according to the actual installation location of the physical device, and complete the initial association between the device and the spatial node. This reduces the operational difficulty of device deployment and thus improves deployment efficiency.

[0026] In some possible embodiments, based on the spatial semantic model of the XX community, a visualized digital twin map of the XX community is generated, with the location and name of each spatial node clearly marked on the map. When installing a C-brand access control system at the unit door of Building 1 in the XX community, the user can open the digital twin map through a handheld configuration APP, find the spatial node of the unit door of Building 1, and click to select it. There is no need to manually input the model and protocol parameters of the C-brand access control system to complete the initial binding between the C-brand access control system and the unit door node of Building 1. When installing an A-brand camera, the same method is used: click on the unit door node of Building 1 on the map to complete the initial binding between the camera and the node.

[0027] After the initial binding is completed, the spatial anchoring process is automatically started. Based on the spatial capability tag of the spatial node, the physical device is deeply bound to the spatial node. The spatial node is represented as the basic unit in the topology of the community spatial semantic model.

[0028] Specifically, initial binding only establishes the location association between the device and the spatial node, while deep binding establishes the association and matching between the device's capabilities and the spatial functional requirements. The spatial anchoring process is automatically initiated by the system without manual intervention. The system reads the spatial capability tags of the spatial node to clarify the functional capabilities required by the space, and then detects the actual capabilities of the initially bound device to determine whether the device can meet the spatial functional requirements, thus completing the deep association between the device and the spatial node and ensuring that the device can serve the spatial functional requirements. The spatial node serves as the basic unit of the topological structure of the community spatial semantic model.

[0029] In some possible embodiments, after the C-brand access control system at the unit door of Building 1 in XX Community completes its initial binding with the node, the system automatically initiates the spatial anchoring process, reads the spatial capability tags of the Building 1 unit door node, including access control, video surveillance, and night light control, and detects the actual capabilities of the C-brand access control system to confirm that it has access control capabilities and matches the tag requirements of the spatial node, thus completing the deep binding between the C-brand access control system and the node; similarly, after the A-brand video camera is initially bound to the node, the system detects that it has video surveillance capabilities and matches the spatial tag requirements, thus completing the deep binding, and both devices become the physical devices bound to the spatial node of Building 1 unit door.

[0030] Step S3: Send the corresponding standard space command set to the physical device based on the space node and obtain the response result.

[0031] In this embodiment, step S3 includes: A standard spatial instruction set is constructed based on spatial capability tags. The standard spatial instruction set corresponds one-to-one with the spatial capability tags, including but not limited to instructions for obtaining video streams, opening access permissions, and obtaining smoke status.

[0032] Detailed Expansion: The standard spatial instruction set is a pre-built set of instructions based on the spatial capability tags of each spatial node. Each spatial capability tag corresponds to one or a set of standard instructions. The instruction content is precisely matched with the spatial functional requirements and is used to detect whether physical devices possess the functional capabilities required by that spatial node. The standard spatial instruction set adopts a unified instruction format, independent of device brand and model, ensuring that devices from different brands can be detected by the system, providing a foundation for cross-brand adaptation.

[0033] In some possible embodiments, a standard spatial instruction set is constructed based on the spatial capability tags of each spatial node in the XX community. For video surveillance tags, instructions to acquire video streams are constructed; for access control tags, instructions to open and close access permissions are constructed; for smoke detection tags, instructions to acquire smoke status are constructed; and for lighting control tags, instructions to turn on and off lighting are constructed. Among them, the video surveillance tag of the unit door node of Building 1 corresponds to the instruction to acquire video streams, and the access control tag corresponds to the instruction to open access permissions, which precisely matches the functional requirements of the node.

[0034] It sends a standard space command set to physical devices, receives response data from physical devices, and obtains response results.

[0035] Detailed Expansion: The system extracts the spatial capability tag of the spatial node bound to the physical device, and then issues the corresponding standard spatial command set. The issuance process does not distinguish between device brands and models, using a unified command transmission method. After receiving the command, the physical device parses it according to its own private protocol. If it can recognize the command, it executes the corresponding operation and sends back response data; if it cannot recognize the command, it sends back abnormal response data. After receiving the feedback data, the system generates a response result to determine whether the physical device can respond normally to the standard spatial commands, providing a basis for the subsequent construction of dynamic mapping relationships.

[0036] In some possible embodiments, the system sends a standard command to the A-brand video camera bound to the unit door of Building 1 in XX Community to acquire the video stream. After parsing the command, the A-brand video camera performs the operation of acquiring the video stream and sends the video stream data back to the system. The system receives the data and generates a normal response result. A standard command to open access permission is sent to the C-brand access control system bound to the same node. After parsing the command, the C-brand access control system performs the door opening operation and sends back response data indicating successful operation, generating a normal response result. A command to acquire smoke status is sent to the B-brand smoke sensor bound to the underground parking garage. The B-brand smoke sensor sends back response data indicating no smoke, generating a normal response result.

[0037] Step S4: Construct a dynamic mapping relationship based on the response results, and perform compatibility adaptation based on the dynamic mapping relationship.

[0038] In this embodiment, step S4 includes: The response of the physical device is judged based on the response result of the physical device to the standard space instruction set.

[0039] Specifically, a normal response means that the physical device can successfully parse the standard space command, execute the corresponding operation, and return valid response data; a failure to respond means that the physical device cannot parse the standard space command, or cannot execute the corresponding operation after parsing, and returns abnormal response data, such as the command cannot be recognized or the operation fails; the result of the response judgment directly determines the way the subsequent dynamic mapping relationship is constructed.

[0040] In some possible embodiments, the system judges the response results of each bound device in the XX community, including the video stream data fed back by the A brand video camera at the unit door of Building 1 and the operation success data fed back by the C brand access control system, both of which are judged as normal responses; the smoke status data fed back by the B brand smoke sensor in the underground garage is judged as a normal response; assuming that a certain brand of smart light installed in the children's play area cannot parse the standard command to turn on the lighting and the feedback command cannot be recognized, it is judged as a failure to respond.

[0041] If the physical device can respond normally to the standard space command, the system will automatically identify the function type of the corresponding physical device and establish a dynamic mapping relationship between the physical device’s private capabilities and the standard space capabilities. The physical device private capabilities refer to the functions and corresponding private instructions possessed by the physical device itself, while the spatial standard capabilities refer to the standard functional capabilities possessed by spatial nodes based on spatial capability tags.

[0042] Specifically, when a physical device responds normally to standard spatial commands, the system automatically identifies the device's function type through the response data, such as video surveillance, access control, smoke detection, etc., and clarifies the device's private capabilities, that is, the functions that the device itself possesses and the corresponding private commands; spatial standard capabilities are defined based on the spatial capability tags of spatial nodes, which are the standard functional capabilities that the spatial node should possess; dynamic mapping relationship establishes the correspondence between the physical device's private commands and spatial standard commands, realizes the adaptation of the device's private capabilities and spatial standard capabilities, and provides a basis for subsequent system calls to the device.

[0043] In some possible embodiments, the A-brand video camera at the unit door of Building 1 in XX Community responds normally to the standard command to acquire video stream. The system identifies its function type as a video surveillance device, and its private capability is to acquire video stream and corresponding private command. The spatial standard capability of this node is video surveillance, and the corresponding standard command is to acquire video stream. The system establishes a dynamic mapping relationship between the private command and the acquired video stream. Similarly, the C-brand access control system responds normally to the standard command to open access permission. The system identifies its function type as an access control device, and its private command is / api / C / openDoor. The system establishes a dynamic mapping relationship between the private command and the standard command to open access permission.

[0044] If a physical device cannot respond to standard space commands, it will automatically enter a space negotiation mode to establish a dynamic mapping relationship between the physical device's private capabilities and standard space capabilities.

[0045] Specifically, when physical devices fail to respond to standard spatial commands, the system automatically triggers a spatial negotiation mode without manual intervention. The core of this mode is to use a specific algorithm to achieve compatibility and matching between the physical device's proprietary commands and standard spatial commands, thereby establishing a dynamic mapping relationship. The spatial negotiation mode addresses the differences in proprietary protocols among different brands of devices by matching semantics and functions, breaking down protocol barriers and ensuring that devices that cannot directly respond to standard commands can also adapt to standard spatial capabilities, achieving cross-brand compatibility.

[0046] In some possible implementations, if the branded smart lights installed in the children's play area of ​​XX community fail to respond to the standard command to turn on the lighting, the system automatically enters the spatial negotiation mode. The system first extracts the private capabilities of the smart light, the lighting function and the corresponding private command / api / xyz / turnOnLight, and then matches them with the standard command to turn on the lighting corresponding to the spatial standard capability lighting control of the node. Through the algorithm, it identifies that the two have the same functional semantics, and finally establishes a dynamic mapping relationship between / api / xyz / turnOnLight and the standard command to turn on the lighting, thus completing the adaptation of the branded smart light and the spatial node.

[0047] Based on dynamic mapping relationships, compatibility adaptation is performed between the private capabilities of physical devices and the standard capabilities of the system space.

[0048] Detailed Expansion: After the dynamic mapping relationship is established, the system uses this relationship to achieve compatibility and adaptation between the proprietary capabilities of physical devices and the system's spatial standard capabilities. When the system issues spatial standard commands, they are automatically converted into proprietary commands that the devices can recognize through the mapping relationship. After the devices execute the operation, they convert the response data into standard response data that the system can recognize through the mapping relationship. This adaptation method does not require modification of system logic or device parameters, achieving seamless compatibility between devices from different brands and the system, ensuring that the devices can normally serve the spatial functional requirements.

[0049] In some possible embodiments, when the XX community system issues a standard command to open access permission to the unit door of Building 1, it automatically converts the standard command into the private command / api / C / openDoor of the C brand access control system through a dynamic mapping relationship. After the C brand access control system performs the door opening operation, it converts the private response data of the successful operation into standard response data that the system can recognize through the mapping relationship. When issuing a standard command to turn on the lighting to the children's play area, it is converted into the private command / api / xyz / turnOnLight of the niche brand smart light through the mapping relationship, so as to realize the normal control of the device and complete the compatibility adaptation of cross-brand devices.

[0050] The spatial negotiation mode includes: An adaptation mapping library is constructed, and semantic and functional similarity calculations are performed on the private capabilities of physical devices and the standard capabilities of spatial devices based on cosine similarity.

[0051] Detailed Expansion: The adaptation mapping library is a pre-established spatial standard capability-standard instruction correspondence library in the system, storing the spatial standard capabilities and standard spatial instructions corresponding to all spatial capability tags, providing a comparison basis for similarity calculation; the cosine similarity calculation method is used to quantify the degree of matching between physical device private instructions and spatial standard instructions, and is divided into two parts: semantic similarity and functional similarity. Semantic similarity compares the functional description of the instruction, while functional similarity compares the execution effect, parameter range, etc. of the instruction. The dual calculation ensures the accuracy of the matching.

[0052] In some possible embodiments, the system constructs an adaptation mapping library for the XX community, storing standard commands for lighting control (turning on and off lights) and standard commands for video surveillance (acquiring video streams). For niche brand smart lights in children's play areas that cannot respond to commands, the system extracts their private command ` / api / xyz / turnOnLight`, parses its semantics as "turn on lighting" and its function as "control light activation," and compares it with the standard commands for turning on lighting in the adaptation mapping library based on cosine similarity, calculating semantic and functional similarity.

[0053] A similarity threshold is set, and a comprehensive similarity judgment is made by combining semantic similarity and functional similarity. The judgment result is obtained, and the dynamic mapping relationship between the private capabilities of physical devices and the standard capabilities of space is obtained based on the judgment result.

[0054] Specifically, the similarity threshold is a preset judgment standard of the system. In this embodiment, the value range is 0.7-0.9, which is used to determine whether the private instructions of the physical device match the standard instructions of the space. The comprehensive similarity judgment is obtained by weighted summation of semantic similarity and functional similarity, where the weight of semantic similarity is not less than 0.6. If the comprehensive similarity value is not lower than the threshold, it is judged as a match and a dynamic mapping relationship is established; if it is lower than the threshold, it is judged as a mismatch and an adaptation prompt is output.

[0055] In some possible embodiments, the system sets a comprehensive similarity threshold of 0.8 for XX cell, a semantic similarity weight of 0.6, and a functional similarity weight of 0.4. It calculates the semantic similarity of a brand of smart light's proprietary command and the standard command to turn on lighting, obtaining a semantic similarity of 0.9 and a functional similarity of 0.85. The comprehensive similarity value is 0.9 × 0.6 + 0.85 × 0.4 = 0.86, which is higher than the threshold of 0.8, thus determining a match. A dynamic mapping relationship is then established between / api / xyz / turnOnLight and the standard command to turn on lighting. If the comprehensive similarity between a device's proprietary command and the corresponding standard command is 0.75, which is lower than the threshold, a mismatch is determined, and the system outputs a message indicating that the device cannot adapt to the space's function.

[0056] The method further includes: The system monitors the operational status of physical devices and updates to the community spatial semantic model in real time. These updates include adjustments to the spatial type of spatial nodes and the addition or deletion of spatial capability tags.

[0057] Specifically, the system continuously acquires the operating status of physical devices through a real-time monitoring module, such as normal operation, fault, offline, replacement, firmware upgrade, etc. At the same time, it monitors the updates of the community spatial semantic model, including spatial node spatial type adjustments, such as changing a certain area from a leisure area to a security area, and the addition or deletion of spatial capability tags, such as adding a face recognition tag or deleting a broadcast intercom tag, to ensure timely detection of changes in devices or spaces and provide triggering conditions for the maintenance and updating of mapping relationships.

[0058] In some possible embodiments, the system monitors the operating status of all bound devices in XX community in real time, and at the same time monitors the changes in the community spatial semantic model; it detects that the B brand smoke sensor in the underground garage is malfunctioning and unable to feed data normally, and at the same time detects that a face recognition spatial capability label has been added to the spatial node of the unit door of Building 1. Both of the above situations trigger the maintenance and update process of the dynamic mapping relationship.

[0059] If a physical device is detected to be faulty or replaced, the standard spatial instruction set for the corresponding spatial node will be automatically reissued to the physical device to build and update the dynamic mapping relationship.

[0060] Specifically, when a physical device is detected to be faulty or replaced, the original dynamic mapping relationship will not be able to take effect normally. The system will automatically trigger an update process, resend the standard space instruction set of its bound space node to the device, re-evaluate the device's response status, build a new dynamic mapping relationship, and replace the original mapping relationship to ensure that the device can still be adapted to space functions normally after the device is faulty or replaced.

[0061] In some possible implementations, a B-brand smoke detector in the underground parking garage of XX residential complex malfunctions. Upon detecting this, the system automatically sends a standard command to the malfunctioning sensor to obtain the smoke status. Confirming that the sensor cannot respond normally, an update process is initiated. After staff replace the B-brand smoke detector with a D-brand smoke detector, the system resends the standard command to the D-brand smoke detector. The D-brand sensor responds normally, and the system identifies its private command / api / D / getSmoke, establishing a new dynamic mapping relationship between this command and the standard command to obtain the smoke status, replacing the original mapping relationship.

[0062] If an update to the community space semantic model is detected, all physical devices bound to that space node will be automatically traversed, and the updated standard space instruction set will be reissued to synchronously update the dynamic mapping relationship of all physical devices.

[0063] Detailed Expansion: When the community spatial semantic model is updated, such as by adding or deleting spatial capability tags, the spatial standard capabilities of the spatial node change, and the corresponding standard spatial instruction set is also updated. The original dynamic mapping relationship will no longer be able to adapt to the new spatial requirements. The system automatically traverses all physical devices bound to the spatial node, sends the updated standard spatial instruction set to each device, and reconstructs the dynamic mapping relationship to achieve synchronous updates of the mapping relationship of all devices, ensuring that the devices can adapt to the updated spatial functional requirements.

[0064] In some possible embodiments, a face recognition spatial capability label is added to the spatial node of the unit door of Building 1 in XX Community. The corresponding standard spatial instruction set adds the instruction to obtain face information. After the system detects the update of the spatial model, it automatically traverses all devices bound to the node and sends the standard instruction to obtain face information to the A brand camera. The camera responds normally, and the system establishes a mapping relationship between its private instruction and the standard instruction. The instruction is sent to the C brand access control system to confirm that it does not have face recognition capability. The system outputs an adaptation prompt and completes the synchronous update of the mapping relationship of all devices.

[0065] The usage and function are explained below: First, a community spatial semantic model is constructed. Then, a spatial anchoring mechanism is used to bind physical devices to spatial nodes in the community spatial semantic model. Next, the corresponding standard spatial instruction set is issued to the physical device according to the spatial node, and the response result is obtained. Finally, a dynamic mapping relationship is constructed based on the response result, and compatibility adaptation is performed based on the dynamic mapping relationship. This invention achieves cross-brand device compatibility adaptation by constructing a community spatial semantic model, binding physical devices to spatial nodes, probing device capabilities through a standard spatial instruction set, and constructing a dynamic mapping relationship. This solves the problems of fragmented logic and scenario separation in traditional adaptation methods. The spatial negotiation mode improves the flexibility of adaptation. The dynamic mapping relationship is maintained and updated to ensure that the adaptation relationship still works normally after device failure, replacement, or spatial function adjustment. This method achieves cross-brand device compatibility.

[0066] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. 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. Such 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, and should all be included within the protection scope of the present invention.

Claims

1. A method for cross-brand device compatibility adaptation for smart communities, characterized in that, It includes the following steps: Construct a community spatial semantic model, which is represented as a digital twin topology structure corresponding to the physical space of the smart community; Based on the spatial anchoring mechanism, physical devices are bound to spatial nodes in the community spatial semantic model; Based on the spatial nodes, the corresponding standard spatial command set is sent to the physical devices to obtain the response results; A dynamic mapping relationship is constructed based on the response results, and compatibility adaptation is performed based on the dynamic mapping relationship.

2. The method for cross-brand device compatibility adaptation for smart communities according to claim 1, characterized in that, Constructing a semantic model of community space, including: A spatial hierarchy is constructed based on a graph structure, and the spatial hierarchy maps to the physical space of the smart community. Assign a corresponding space type to each spatial level node, and set a space capability label for each spatial node that is bound to the space type; A community spatial semantic model is constructed based on the digital twin topology, which includes spatial type, spatial hierarchy and spatial capability labels.

3. The method for cross-brand device compatibility adaptation for smart communities according to claim 1, characterized in that, Based on the spatial anchoring mechanism, physical devices are bound to spatial nodes in the community spatial semantic model, including: A community digital twin map is generated based on the community spatial semantic model, and spatial nodes corresponding to the actual installation locations of physical devices are selected on the community digital twin map to initially bind the physical devices to the spatial nodes. After the initial binding is completed, the spatial anchoring process is automatically started. Based on the spatial capability tag of the spatial node, the physical device is deeply bound to the spatial node. The spatial node is represented as the basic unit in the topology of the community spatial semantic model.

4. The method for cross-brand device compatibility adaptation for smart communities according to claim 1, characterized in that, Based on the spatial nodes, corresponding standard spatial command sets are issued to physical devices, and response results are obtained, including: A standard spatial instruction set is constructed based on spatial capability tags. The standard spatial instruction set corresponds one-to-one with the spatial capability tags, including but not limited to instructions for obtaining video streams, opening access permissions, and obtaining smoke status. It sends a standard space command set to physical devices, receives response data from physical devices, and obtains response results.

5. A method for cross-brand device compatibility adaptation for smart communities according to claim 1, characterized in that, A dynamic mapping relationship is constructed based on the response results, and compatibility adaptation is performed based on the dynamic mapping relationship, including: The response of the physical device is judged based on the response result of the physical device to the standard space instruction set; If the physical device can respond normally to the standard space command, the system will automatically identify the function type of the corresponding physical device and establish a dynamic mapping relationship between the physical device’s private capabilities and the standard space capabilities. Among them, the physical device private capability refers to the functions and corresponding private instructions of the physical device itself, and the spatial standard capability refers to the standard functional capabilities of the spatial node based on the spatial capability label definition. If the physical device cannot respond to the standard space command, it will automatically enter the space negotiation mode to establish a dynamic mapping relationship between the physical device’s private capabilities and the standard space capabilities. Based on dynamic mapping relationships, compatibility adaptation is performed between the private capabilities of physical devices and the standard capabilities of the system space.

6. A method for cross-brand device compatibility adaptation for smart communities according to claim 5, characterized in that, Spatial negotiation modes include: Construct an adaptation mapping library and calculate semantic and functional similarity between the private capabilities of physical devices and the standard capabilities of spatial devices based on cosine similarity; A similarity threshold is set, and a comprehensive similarity judgment is made by combining semantic similarity and functional similarity. The judgment result is obtained, and the dynamic mapping relationship between the private capabilities of physical devices and the standard capabilities of space is obtained based on the judgment result.

7. A method for cross-brand device compatibility adaptation for smart communities according to claim 1, characterized in that, The method further includes: Real-time monitoring of the operating status of physical equipment and the updates to the community spatial semantic model, including adjustments to the spatial type of spatial nodes and the addition or deletion of spatial capability tags; If a physical device is detected to be faulty or replaced, the standard spatial instruction set for the corresponding spatial node will be automatically reissued to the physical device to build and update the dynamic mapping relationship. If an update to the community space semantic model is detected, all physical devices bound to that space node will be automatically traversed, and the updated standard space instruction set will be reissued to synchronously update the dynamic mapping relationship of all physical devices.