Communication method and device of intelligent building control system, electronic equipment and storage medium
By obtaining the network topology and dynamically evaluating the communication links in the smart building control system, the optimal path is selected to transmit data, which solves the problems of low communication efficiency and poor stability in the BACnet protocol and achieves efficient and stable data transmission.
Patent Information
- Application Number
- CN202511052023.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-29
- Publication Date
- 2025-10-03
AI Technical Summary
The existing BACnet protocol has problems of low communication efficiency and poor stability in smart building control systems, which cannot be effectively solved.
By obtaining the network topology of the equipment in the smart building control system, dynamically evaluating the paths of multiple communication links, selecting the optimal communication link for data transmission, and making dynamic adjustments when the link status changes, it can adapt to complex network environments.
It improves the system's data transmission efficiency and response speed, ensures communication stability and fault tolerance, adapts to different communication needs, and supports differentiated task processing.
Smart Images

Figure CN120750840A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication method, device, electronic equipment and storage medium for a smart building control system. Background Art
[0002] The Building Automation Control Network (BACnet) is a network protocol for building automation control and is widely used in smart building control systems, which typically include heating, ventilation, and air conditioning (HVAC), lighting control, and security monitoring equipment. BACnet enables communication and control between different devices, but due to insufficient consideration of communication efficiency and stability at its inception, it has led to numerous problems in practical applications.
[0003] Currently, BACnet communication primarily relies on traditional network transmission methods, such as Ethernet and serial communication. While existing technologies offer some simple optimization measures, such as increasing bandwidth and optimizing network topology, these methods cannot fundamentally address the issues of low communication efficiency and poor stability. Summary of the Invention
[0004] In view of this, embodiments of the present application provide a communication method, device, electronic device and storage medium for a smart building control system to solve the problem of poor communication quality between devices in the smart building control system in the prior art.
[0005] A first aspect of an embodiment of the present application provides a communication method for a smart building control system, the method comprising: obtaining a network topology structure of a network in which a first device and a second device are located in the smart building control system, and determining a communication link between the first device and the second device based on the network topology structure; in the case where there are multiple communication links between the first device and the second device, performing a path evaluation on each communication link based on the communication requirements between the first device and the second device; and determining a target communication link from the multiple communication links based on the path evaluation result corresponding to each communication link, so that the first device and the second device communicate through the target communication link.
[0006] According to a second aspect of an embodiment of the present application, a communication device for a smart building control system is provided, which includes: an acquisition module for acquiring a network topology structure of a network in which a first device and a second device are located in the smart building control system, and determining a communication link between the first device and the second device based on the network topology structure; an evaluation module for performing a path evaluation on each communication link according to the communication requirements between the first device and the second device when there are multiple communication links between the first device and the second device; and a determination module for determining a target communication link from the multiple communication links based on the path evaluation result corresponding to each communication link, so that the first device and the second device communicate through the target communication link.
[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0008] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the above method are implemented.
[0009] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the method in the embodiments of the present application obtains the network topology of the network where the first device and the second device are located in the smart building control system, and determines the communication link between the first device and the second device based on the network topology; when there are multiple communication links between the first device and the second device, a path evaluation is performed on each communication link based on the communication requirements between the first device and the second device; based on the path evaluation results corresponding to each communication link, a target communication link is determined from the multiple communication links, so that the first device and the second device communicate through the target communication link. The present application dynamically obtains multiple communication links between the first device and the second device, and performs a path evaluation on each communication link based on the communication requirements, and selects the target communication link for communication, thereby effectively avoiding network congestion and communication delay caused by fixed links, and improving the overall data transmission efficiency and response speed of the system. In an actual network environment, the status of the communication link may fluctuate with factors such as changes in network load and node failures. The present application can dynamically adjust the communication path by sensing the network topology and link status in real time, so that the system has good path adaptability and can adapt to changes in communication requirements in a complex network environment. The network topology usually has a redundant design, so that there are multiple communication links between the first device and the second device. On this basis, the present application provides a link selection mechanism based on path evaluation, which can switch to other available links in time when the performance of a link degrades or fails, thereby ensuring that the system communication is not interrupted and improving the stability and fault tolerance of the system. The present application uses "communication requirements" as an important basis for path evaluation, and can select the optimal communication link according to different task types (such as status reporting, control instructions, batch data transmission, etc.), support task differentiation processing, and improve the rationality of resource scheduling and the execution efficiency of communication tasks. The communication method of the present application is adapted to the BACnet protocol and a variety of network topologies, and is suitable for deployment in large buildings, multi-floor systems or smart building control scenarios with redundant connections, which is conducive to the scalability deployment and subsequent maintenance management of the system. This solves the problem of poor communication quality between devices in smart building control systems in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0011] Figure 1 This is a flow chart of a communication method for a smart building control system provided in an embodiment of the present application;
[0012] Figure 2 This is a schematic diagram of the structure of a communication device for a smart building control system provided in an embodiment of the present application;
[0013] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0014] In the following description, specific details such as specific device structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known devices, apparatuses, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0015] The following describes in detail a communication method and device for a smart building control system according to an embodiment of the present application with reference to the accompanying drawings.
[0016] Figure 1 This is a communication method for a smart building control system provided by an embodiment of the present application. Figure 1 As shown, the method includes:
[0017] S101. Obtain a network topology structure of a network where a first device and a second device are located in a smart building control system, and obtain a communication link between the first device and the second device;
[0018] S102: When multiple communication links exist between the first device and the second device, perform path evaluation on each communication link according to communication requirements between the first device and the second device;
[0019] S103: Determine a target communication link from the plurality of communication links according to a path evaluation result corresponding to each communication link, so that the first device and the second device communicate through the target communication link.
[0020] It can be understood that the communication method of the smart building control system provided in this application can dynamically select the optimal link according to communication needs when there are multiple communication links, thereby improving the overall communication efficiency and response speed of the system.
[0021] In this embodiment, a communication method for a smart building control system is provided, which can dynamically select the optimal communication link according to communication needs when there are multiple communication links, thereby improving the overall communication efficiency and response speed of the system.
[0022] Specifically, a smart building control system can include multiple functional subsystems, such as a heating, ventilation, and air conditioning system, a lighting control system, and a security monitoring system. Each subsystem can include at least one device, and each device communicates via the Building Automation Control Network (BACnet) data communication protocol. The first device and the second device are different devices in the smart building control system and may be located in the same subsystem or different subsystems.
[0023] The communication method for the smart building control system of this embodiment can be executed by a controller, server, or any other device with network communication capabilities within the smart building control system. For example, the processing steps of the communication method can be executed on a BACnet controller via software instructions, or unified path management can be performed by a centralized server. For better explanation, the communication method for the smart building control system provided in this application is executed by a controller within the smart building control system as an example.
[0024] In the actual deployment of smart building control systems, the internal building network structure typically adopts a multi-layer, multi-node design. Devices can be interconnected through Ethernet, serial communication links, repeaters, switches, and other methods. Therefore, there is often more than one communication link between the first and second devices. Each communication link may pass through different intermediate nodes, physical links, or network segments, resulting in differences in transmission delay, bandwidth utilization, load conditions, and reliability.
[0025] Network topology refers to the connections and organization between devices in a network, including both physical and logical structures. Common network topologies include star, bus, ring, and hybrid topologies. In real-world projects, to improve network scalability, maintainability, and fault tolerance, redundant paths or multipath mechanisms are often incorporated into system design, allowing for multiple communication links between any two devices.
[0026] Specifically, the present application can obtain the connection relationship, node status and link structure of each device in the smart building control system in real time through the network scanning module, thereby constructing a complete network topology. Further, based on the network topology, all available communication links between the first device and the second device can be identified.
[0027] If multiple communication links exist between the first device and the second device, a path evaluation is performed on each communication link based on the communication requirements between the first device and the second device. Communication requirements may include real-time requirements, data throughput requirements, command types (such as control instructions or status reports), etc. Based on the current communication requirements, the system evaluates the key performance indicators of each communication link (such as link latency, bandwidth utilization, link stability, etc.) and generates corresponding path evaluation results.
[0028] Based on the path evaluation results corresponding to each communication link, a target communication link is determined from the multiple communication links, so that the first device and the second device can communicate via the target communication link. This selection may prioritize the link with the lowest transmission delay and the highest stability. In actual operation, the target communication link may also be dynamically adjusted based on subsequent changes in link status to achieve adaptive optimization of the communication link.
[0029] Through this implementation, in the smart building control system, even in the presence of complex network structures and the coexistence of multiple paths, efficient and stable device communication can be achieved, thereby improving the response speed and operational reliability of the entire system.
[0030] According to the solution provided in the embodiment of the present application, the network topology of the network where the first device and the second device are located in the smart building control system is obtained, and the communication link between the first device and the second device is determined based on the network topology; in the case where there are multiple communication links between the first device and the second device, a path evaluation is performed on each communication link based on the communication requirements between the first device and the second device; based on the path evaluation results corresponding to each communication link, a target communication link is determined from the multiple communication links, so that the first device and the second device communicate through the target communication link. The present application dynamically obtains multiple communication links between the first device and the second device, and performs a path evaluation on each communication link based on the communication requirements, and selects the target communication link for communication, thereby effectively avoiding network congestion and communication delays caused by fixed links, and improving the overall data transmission efficiency and response speed of the system. In an actual network environment, the status of the communication link may fluctuate with factors such as changes in network load and node failures. The present application can dynamically adjust the communication path by sensing the network topology and link status in real time, so that the system has good path adaptability and can adapt to changes in communication requirements in a complex network environment. The network topology usually has a redundant design, so that there are multiple communication links between the first device and the second device. On this basis, the present application provides a link selection mechanism based on path evaluation, which can switch to other available links in time when the performance of a link degrades or fails, thereby ensuring that the system communication is not interrupted and improving the stability and fault tolerance of the system. The present application uses "communication requirements" as an important basis for path evaluation, and can select the optimal communication link according to different task types (such as status reporting, control instructions, batch data transmission, etc.), support task differentiation processing, and improve the rationality of resource scheduling and the execution efficiency of communication tasks. The communication method of the present application is adapted to the BACnet protocol and a variety of network topologies, and is suitable for deployment in large buildings, multi-floor systems or smart building control scenarios with redundant connections, which is conducive to the scalability deployment and subsequent maintenance management of the system. This solves the problem of poor communication quality between devices in smart building control systems in the prior art.
[0031] In some examples, a path evaluation is performed on each communication link based on the communication requirements between the first device and the second device, including: calculating the transmission delay and reliability of each communication link based on the communication requirements between the first device and the second device and the link status of each communication link; and determining the path evaluation result corresponding to each communication link based on the transmission delay and reliability of each communication link.
[0032] The status of each link between the first device and the second device may include the following indicators: transmission delay: can be measured by periodically sending detection packets or recording the round-trip time (RTT) between devices; link reliability: can be calculated by counting indicators such as the packet loss rate, number of error retransmissions, and link jitter within a historical time window; optionally, a comprehensive evaluation can also be performed in combination with other factors such as link bandwidth occupancy and node load.
[0033] The communication requirements may include, but are not limited to, the real-time requirements of the communication task, the amount of data, the command type (such as a control instruction or status report), etc. This application may determine different evaluation weights based on the attributes of the current communication task between the first device and the second device. For example, for high-real-time tasks, the importance of transmission delay is higher; for batch data transmission tasks, the importance of reliability and bandwidth utilization is higher.
[0034] This application can calculate a path evaluation result for each communication link based on the communication requirements and the transmission delay and reliability of each communication link. For example, a comprehensive scoring model can be defined:
[0035] Evaluation score = α × (1 / transmission delay score) + β × reliability score, where α and β are weight parameters that are dynamically adjusted based on communication needs.
[0036] Finally, the path evaluation results of each communication link are used to determine the subsequent target communication link to ensure that the selected link has the best performance in the current communication scenario.
[0037] In some examples, relevant personnel can also obtain other indicators besides transmission delay and reliability based on the link status, such as bandwidth occupancy and node load, and jointly determine the path evaluation results based on the above indicators, which will not be repeated here.
[0038] In some examples, the path evaluation result includes an evaluation score; based on the path evaluation result corresponding to each communication link, a target communication link is determined from multiple communication links, including: comparing the evaluation scores corresponding to each communication link, and selecting the communication link corresponding to the highest evaluation score as the target communication link.
[0039] Specifically, when performing path evaluation for each communication link in step 2, the present application generates a path evaluation result for each communication link based on the communication requirements between the first device and the second device and the link status of the communication link (such as transmission delay, reliability, etc.). The path evaluation result includes an evaluation score for quantifying the quality of the link.
[0040] For example, the evaluation score can be calculated using the following formula: Evaluation score = α × reliability score + β × (1 / transmission delay), where α and β are weight coefficients dynamically adjusted according to communication needs, used to balance communication stability and real-time requirements.
[0041] After calculating the evaluation scores of all communication links, the present application compares the evaluation scores corresponding to all communication links and determines the communication link with the highest evaluation score as the target communication link between the current first device and the second device for data transmission of the current task.
[0042] In some optional embodiments, when there are multiple communication links with the same highest evaluation score, the present application may also introduce additional dimensions such as priority rules, historical load distribution or path hop count to further refine the selection logic to avoid frequent switching or unstable behavior.
[0043] Through this score comparison mechanism, this application can measure the performance of the communication link with a unified quantitative standard, select the optimal path based on actual communication needs, ensure the rationality, transparency and real-time performance of the link selection, and effectively improve the communication decision-making efficiency and execution quality of this smart building control application.
[0044] In some examples, after determining a target communication link from multiple communication links based on the path evaluation results corresponding to each communication link, so that the first device and the second device communicate through the target communication link, the method also includes: obtaining a target compression algorithm and a target encryption algorithm; sending the target compression algorithm and the target encryption algorithm to the first device and the second device, so that the first device and the second device compress the transmission data based on the target compression algorithm, and encrypt the compressed transmission data based on the target encryption algorithm.
[0045] Specifically, after determining the target communication link from multiple communication links based on the path evaluation results, in order to further improve the data transmission efficiency and security, the communication method of the smart building control system of the present application also includes the following steps: the controller obtains the target compression algorithm and the target encryption algorithm. The target compression algorithm includes but is not limited to data compression algorithms based on LZ77, Huffman coding or other suitable for Internet of Things communications. The target encryption algorithm may include a symmetric encryption algorithm (such as AES, DES) or an asymmetric encryption algorithm (such as RSA, ECC), etc.
[0046] The controller then sends the target compression algorithm and target encryption algorithm to the first device and the second device, respectively. This allows the first and second devices to first compress the transmitted data according to the target compression algorithm to obtain compressed transmitted data, and then encrypt the compressed transmitted data according to the target encryption algorithm. This process ensures data security while reducing the bandwidth resources required for data transmission, further improving the communication efficiency and robustness between the first and second devices in complex network topology environments.
[0047] In some examples, after determining a target communication link from multiple communication links based on the path evaluation results corresponding to each communication link, so that the first device and the second device communicate through the target communication link, the method also includes: determining a redundant communication link, and when a failure occurs in the target communication link, switching the communication link between the first device and the second device to a redundant communication link; determining a data verification algorithm, and sending the data verification algorithm to the first device and the second device, so that the first device and the second device perform integrity verification on the transmitted data based on the data verification algorithm.
[0048] Specifically, at least one redundant path is first introduced based on the target communication link. The redundant path can be obtained through pre-configuration or dynamic topology identification and is interchangeable with the primary path (the target communication link). When a failure is detected on the target communication link (e.g., link disconnection, transmission timeout, or error rate exceeding the limit), communication is automatically switched to the redundant communication link to ensure uninterrupted communication, thereby improving the system's fault tolerance and operational continuity.
[0049] Secondly, to ensure the integrity of data transmission, this application uses a cyclic redundancy check (CRC) algorithm to verify the transmitted data. Specifically, at the sending end, the first device can generate a check code for the compressed / encrypted data based on a preset CRC algorithm and append it to the data packet; at the receiving end, the second device recalculates the check code after receiving the data packet and compares it with the appended check code. If the check results are inconsistent, the data is determined to be incorrect.
[0050] If a data error is detected, a retransmission mechanism is automatically triggered, causing the sender to resend the packet until the data is successfully received or the maximum number of retransmissions is reached. This mechanism effectively prevents data loss or corruption caused by link disturbances or short-term failures, further improving the robustness and security of the system communication process.
[0051] In some examples, after determining a target communication link from multiple communication links based on the path evaluation results corresponding to each communication link so that the first device and the second device communicate through the target communication link, the method also includes: monitoring the communication quality between the first device and the second device, the communication quality including: at least one of data transmission rate, communication delay, packet loss rate or bit error rate; dynamically adjusting communication parameters based on the communication quality, the communication parameters including at least one of transmission rate, retransmission mechanism, and caching strategy to improve communication stability and system responsiveness.
[0052] Specifically, communication quality can include, but is not limited to, key indicators such as data transmission rate, communication delay, packet loss rate, and bit error rate. By collecting real-time network status information from the communication link and combining it with the changing trends of communication quality, a dynamic assessment of the communication process can be performed.
[0053] Based on this evaluation, communication parameters are adaptively adjusted. These parameters include, but are not limited to, transmission rate, retransmission mechanism (such as number of retransmissions, timeout threshold), and caching strategy. For example, if increased communication delay or packet loss rate is detected, the transmission rate can be reduced and the number of retransmissions increased to ensure data transmission integrity. Conversely, this can improve transmission efficiency and reduce redundant communication resource usage.
[0054] Through the above scheme, this implementation method can dynamically optimize communication behavior according to the actual network status, enhance the adaptability of the smart building control system in complex or sudden network environments, and improve the reliability and robustness of the communication process.
[0055] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0056] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0057] Based on the same concept, this application also provides a communication device for a smart building control system, such as Figure 2 As shown, the communication device of the intelligent building control system includes:
[0058] An acquisition module 201 is configured to acquire a network topology structure of a network where a first device and a second device are located in a smart building control system, and determine a communication link between the first device and the second device based on the network topology structure;
[0059] An evaluation module 202 is configured to, when there are multiple communication links between the first device and the second device, perform a path evaluation on each communication link according to the communication requirements between the first device and the second device;
[0060] The determination module 203 is configured to determine a target communication link from the plurality of communication links according to the path evaluation result corresponding to each communication link, so that the first device and the second device communicate through the target communication link.
[0061] In some examples, the evaluation module 202 is further used to calculate the transmission delay and reliability of each communication link based on the link status of each communication link; and determine the path evaluation result corresponding to each communication link according to the communication requirements and the transmission delay and reliability of each communication link.
[0062] In some examples, the path evaluation result includes an evaluation score; the determination module 203 is further configured to compare the evaluation scores corresponding to each communication link, and select the communication link corresponding to the highest evaluation score as the target communication link.
[0063] In some examples, the determination module 203 is also used to obtain a target compression algorithm and a target encryption algorithm; send the target compression algorithm and the target encryption algorithm to the first device and the second device, so that the first device and the second device compress the transmission data based on the target compression algorithm, and encrypt the compressed transmission data based on the target encryption algorithm.
[0064] In some examples, the determination module 203 is also used to determine a redundant communication link, and when a target communication link fails, switch the communication link between the first device and the second device to a redundant communication link; determine a data verification algorithm, and send the data verification algorithm to the first device and the second device, so that the first device and the second device perform integrity verification on the transmitted data based on the data verification algorithm.
[0065] In some examples, the determination module 203 is also used to monitor the communication quality between the first device and the second device, where the communication quality includes: at least one of data transmission rate, communication delay, packet loss rate, or bit error rate; and dynamically adjust communication parameters based on the communication quality, where the communication parameters include at least one of transmission rate, retransmission mechanism, and caching strategy.
[0066] According to the solution provided by the embodiment of the present application, the communication device of the smart building control system obtains the network topology of the network where the first device and the second device are located in the smart building control system, and determines the communication link between the first device and the second device according to the network topology; in the case where there are multiple communication links between the first device and the second device, a path evaluation is performed on each communication link according to the communication requirements between the first device and the second device; based on the path evaluation results corresponding to each communication link, a target communication link is determined from the multiple communication links, so that the first device and the second device communicate through the target communication link. The present application dynamically obtains multiple communication links between the first device and the second device, and performs a path evaluation on each communication link based on the communication requirements, and selects the target communication link for communication, thereby effectively avoiding network congestion and communication delay caused by fixed links, and improving the overall data transmission efficiency and response speed of the system. In an actual network environment, the status of the communication link may fluctuate with factors such as changes in network load and node failures. The present application can dynamically adjust the communication path by sensing the network topology and link status in real time, so that the system has good path adaptability and can adapt to changes in communication requirements in a complex network environment. The network topology usually has a redundant design, so that there are multiple communication links between the first device and the second device. On this basis, the present application provides a link selection mechanism based on path evaluation, which can switch to other available links in time when the performance of a link degrades or fails, thereby ensuring that the system communication is not interrupted and improving the stability and fault tolerance of the system. The present application uses "communication requirements" as an important basis for path evaluation, and can select the optimal communication link according to different task types (such as status reporting, control instructions, batch data transmission, etc.), support task differentiation processing, and improve the rationality of resource scheduling and the execution efficiency of communication tasks. The communication method of the present application is adapted to the BACnet protocol and a variety of network topologies, and is suitable for deployment in large buildings, multi-floor systems or smart building control scenarios with redundant connections, which is conducive to the scalability deployment and subsequent maintenance management of the system. This solves the problem of poor communication quality between devices in smart building control systems in the prior art.
[0067] Figure 3 Schematic diagram of the electronic device 3 provided in the embodiment of the present application. Figure 3 As shown, the electronic device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable by the processor 301. When the processor 301 executes the computer program 303, the steps of the above-mentioned method embodiments are implemented. Alternatively, when the processor 301 executes the computer program 303, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0068] The electronic device 3 may be a desktop computer, a notebook, a PDA, a cloud server or other electronic device. The electronic device 3 may include but is not limited to a processor 301 and a memory 302. Those skilled in the art will understand that Figure 3 This is merely an example of the electronic device 3 and does not limit the electronic device 3 . The electronic device 3 may include more or fewer components than shown in the figure, or different components.
[0069] The processor 301 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0070] The memory 302 can be an internal storage unit of the electronic device 3, such as a hard disk or memory of the electronic device 3. The memory 302 can also be an external storage device of the electronic device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash memory card, etc. equipped on the electronic device 3. The memory 302 can also include both an internal storage unit of the electronic device 3 and an external storage device. The memory 302 is used to store computer programs and other programs and data required by the electronic device.
[0071] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0072] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to regional requirements and patent practice requirements. For example, in some regions, according to regional requirements and patent practice, the computer-readable medium does not include electric carrier signal and telecommunication signal.
[0073] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A communication method for a smart building control system, characterized in that: The method comprises: Obtaining a network topology structure of a network where a first device and a second device are located in a smart building control system, and determining a communication link between the first device and the second device according to the network topology structure; In a case where there are multiple communication links between the first device and the second device, performing path evaluation on each communication link according to communication requirements between the first device and the second device; According to the path evaluation result corresponding to each of the communication links, a target communication link is determined from the plurality of communication links, so that the first device and the second device communicate through the target communication link.
2. The method according to claim 1, characterized in that Performing a path evaluation on each of the communication links according to a communication requirement between the first device and the second device includes: Calculating the transmission delay and reliability of each of the communication links based on the link status of each of the communication links; The path evaluation result corresponding to each communication link is determined according to the communication demand and the transmission delay and reliability of each communication link.
3. The method according to claim 2, characterized in that The path evaluation result includes an evaluation score; and determining a target communication link from the plurality of communication links according to the path evaluation result corresponding to each communication link, comprising: The evaluation scores corresponding to each of the communication links are compared, and the communication link corresponding to the highest evaluation score is used as the target communication link.
4. The method according to claim 1, wherein After determining a target communication link from the plurality of communication links according to the path evaluation result corresponding to each of the communication links, so that the first device and the second device communicate through the target communication link, the method further includes: Get the target compression algorithm and target encryption algorithm; The target compression algorithm and the target encryption algorithm are sent to the first device and the second device, so that the first device and the second device compress the transmission data based on the target compression algorithm and encrypt the compressed transmission data based on the target encryption algorithm.
5. The method according to claim 1, wherein After determining a target communication link from the plurality of communication links according to the path evaluation result corresponding to each of the communication links, so that the first device and the second device communicate through the target communication link, the method further includes: determining a redundant communication link, and when a failure occurs in the target communication link, switching the communication link between the first device and the second device to the redundant communication link; A data verification algorithm is determined, and the data verification algorithm is sent to the first device and the second device, so that the first device and the second device perform integrity verification on the transmitted data based on the data verification algorithm.
6. The method according to claim 1, wherein After determining a target communication link from the plurality of communication links according to the path evaluation result corresponding to each of the communication links, so that the first device and the second device communicate through the target communication link, the method further includes: monitoring the communication quality between the first device and the second device, wherein the communication quality includes at least one of a data transmission rate, a communication delay, a packet loss rate, or a bit error rate; Dynamically adjust communication parameters according to the communication quality, wherein the communication parameters include at least one of a transmission rate, a retransmission mechanism, and a cache strategy.
7. A communication device for a smart building control system, characterized in that: The device comprises: An acquisition module, configured to acquire a network topology structure of a network where a first device and a second device are located in the smart building control system, and determine a communication link between the first device and the second device according to the network topology structure; an evaluation module, configured to, when there are multiple communication links between the first device and the second device, perform a path evaluation on each of the communication links according to a communication requirement between the first device and the second device; A determination module is used to determine a target communication link from the multiple communication links according to the path evaluation result corresponding to each communication link, so that the first device and the second device communicate through the target communication link.
8. The device according to claim 7, characterized in that The evaluation module is also used to calculate the transmission delay and reliability of each communication link based on the link status of each communication link; and determine the path evaluation result corresponding to each communication link according to the communication requirements and the transmission delay and reliability of each communication link.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Power grid measurement and control protection ring network communication method and related equipment
CN121462481A