Heating and ventilation equipment self-discovery method, equipment and system based on Homebus

By using Homebus bus and self-discovery methods in HVAC equipment, the problems of complex manual configuration of PLC networking and difficulty in detecting conflicts in traditional buses are solved, and equipment self-discovery and self-correction of conflicts are realized, and networking efficiency and maintainability are improved.

CN119854268APending Publication Date: 2025-04-18QINGDAO FEIYI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510032392.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the existing HVAC industry, PLC networking requires a lot of manual configuration, which is prone to errors and difficult to maintain, and device address allocation based on traditional buses cannot automatically detect address conflicts.

Method used

The HVAC self-discovery method based on the Homebus bus is adopted to realize device self-discovery and conflict detection by defining link layer protocols, setting anti-collision strategies, and executing conflict self-correction strategies.

Benefits of technology

It reduces the workload and error-proneness of manual networking, improves the efficiency of HVAC controller networking, realizes sensorless access and self-correction of equipment, and overcomes the problem of address conflicts that cannot be automatically detected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854268A_ABST
    Figure CN119854268A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a Homebus-based heating and ventilation equipment self-discovery method, equipment and system, and the method comprises the steps: adopting Homebus-based communication among heating and ventilation equipment, defining a link layer protocol, and respectively stipulating equipment MAC addresses for master equipment and slave equipment; performing broadcast mode definition on the master device, specifying a specific device address as a broadcast address, and replying all instructions sent to the broadcast address by the slave device; after the slave device receives the broadcast instruction, an anti-collision strategy is set for response according to the bus communication rate, the response instruction length and the device MAC address; the instruction response carries an equipment unique identification code for the main equipment to carry out equipment conflict detection; when the master device finds that a plurality of devices with the same device MAC address and different unique identification codes exist, executing a conflict self-correction strategy; according to the invention, equipment self-discovery is realized based on Homebus bus networking, and the configuration complexity is greatly reduced, so that the workload and error-prone property of manual networking are reduced, and the networking efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a HVAC equipment self-discovery method, equipment and system based on a Homebus bus. Background Art

[0002] At present, the HVAC industry mostly uses PLC for star network topology. Star network topology requires each actuator, sensor, etc. to be directly wired to the PLC, and the point table is established and maintained in the PLC. This method requires a lot of manual configuration processes (physical communication links, point table configuration, etc.). The physical communication link based on PLC networking is often highly dependent on line markings, requiring manual identification and verification, which is labor-intensive and prone to errors (for example, the communication line does not correspond to the control device, the point table does not correspond to the device, etc.), making it difficult to maintain in the later stage.

[0003] Even if the existing traditional bus devices (such as Modbus protocol-based bus) are used to form a network, the device address needs to be specified during the process, and the allocation strategy often uses manual allocation. Address conflicts cannot be automatically detected, causing problems in bus communication. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device and system for HVAC equipment self-discovery based on Homebus bus, so as to solve the problems existing in the prior art that manual configuration based on PLC networking is labor-intensive, error-prone, difficult to maintain, and address conflict detection cannot be realized based on the existing traditional bus. In order to achieve the above purpose, the present invention solves the problem through the following technical solutions:

[0005] In a first aspect, the present invention provides a method for self-discovery of HVAC equipment based on Homebus, comprising the following steps:

[0006] Homebus communication is used between HVAC devices, link layer protocol is defined, and MAC addresses are specified for master and slave devices respectively; broadcast mode is defined for the master device, and a specific device address is designated as the broadcast address. All commands sent to the broadcast address will be responded to by the slave device;

[0007] After receiving the broadcast command from the device, the anti-collision strategy is set to respond according to the bus communication rate, response command length and device MAC address;

[0008] The command response carries the unique device identification code for the master device to perform device conflict detection;

[0009] When the master device finds that there are multiple devices with the same device MAC address and different unique identification codes, it executes the conflict self-correction strategy.

[0010] As a further technical solution, the anti-collision strategy is based on the anti-collision algorithm, and the anti-collision algorithm adopted is:

[0011] Tdelay={instruction length / (bus communication rate*α)}+device MAC address*β,

[0012] Among them, α and β are setting parameters.

[0013] As a further technical solution, when performing device conflict detection, if the device unique identification code is different in the discovered slave devices, but the device MAC address is not unique, then the slave device MAC address is illegal, and the slave device itself is legal, and a conflict correction strategy is executed at this time.

[0014] As a further technical solution, if the device MAC address and the device unique identification code are different in the discovered slave devices, the slave device is a legitimate device.

[0015] As a further technical solution, if the device MAC address and the device unique identification code are the same, it is a duplicate report and should be filtered.

[0016] As a further technical solution, the conflict self-correction strategy steps are:

[0017] S401 traverses the discovery results, searches for unused device MAC addresses, and creates a list of unused device MAC addresses;

[0018] S402 traverses the device list stored in the master device and filters the unused device MAC address list in S401 again;

[0019] S403 takes a group of devices with the same address for processing. If the address is not in the address table after processing in S402, any device is selected to use the address, and the addresses in S402 are allocated to other devices in turn; if the address is in the address in S402, the group of devices are allocated the addresses in S402 in turn; the allocated address is removed from the unused address list.

[0020] S404 repeats step S403 until all the same-address device groups are processed.

[0021] In a second aspect, the present invention provides an electronic device, the electronic device comprising:

[0022] A communication interface, used to communicate with other electronic devices;

[0023] a memory for storing computer program instructions;

[0024] A processor is used to execute the computer program instructions to support the electronic device to implement the method as described in the first aspect.

[0025] In a third aspect, the present invention provides a communication system, wherein the communication system is used to implement the method described in the first aspect; the communication system comprises: the electronic device described in the second aspect.

[0026] In a fourth aspect, the present invention provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processing circuit, implement the method described in the first aspect.

[0027] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method as described in the first aspect.

[0028] The beneficial effects of the present invention are as follows:

[0029] (1) The HVAC equipment of the present invention can realize self-discovery of the equipment based on the Homebus bus networking. The equipment will be discovered after being connected, and there is no need to query the communication address and equipment type of the equipment on site. This greatly reduces the complexity of configuration, thereby reducing the workload and error-proneness of manual networking, and can significantly improve the efficiency of HVAC controller networking, while also reducing the difficulty of subsequent maintenance.

[0030] (2) The method of the present invention performs conflict detection during the device self-discovery process, can automatically perform networking diagnosis on networking devices, can detect inconsistency problems caused by manual configuration of various devices, reduce the difficulty of detection, and improve maintainability. In addition, a device conflict self-correction strategy is provided to resolve conflicts, which can achieve non-sensing access to devices. The self-correction strategy reduces the difficulty and workload of networking, achieves compatible access to devices without manual intervention, and overcomes the problem that address conflicts in existing traditional buses cannot be automatically detected and corrected.

[0031] (3) The present invention sets a broadcast anti-collision strategy based on an anti-collision algorithm according to the bus communication rate, response instruction length and device MAC address, which can ensure that the devices receiving the broadcast instruction do not send response data at the same time, avoid collision, blocking and retransmission problems caused by bus broadcast, improve the efficiency of bus broadcast, reduce device discovery time and enhance bus self-diagnosis capability. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their description are used to explain the present invention and do not constitute a limitation of the present invention. It should also be understood that these drawings are shown for simplicity and clarity and are not necessarily drawn to scale. The present invention will now be described and explained with additional features and details through the use of the accompanying drawings, in which:

[0033] Figure 1 The flowchart of the HVAC equipment self-discovery method based on the Homebus bus in an embodiment of the present invention is shown;

[0034] Figure 2 A schematic diagram of the Homebus network topology structure in an embodiment of the present invention is shown;

[0035] Figure 3 A schematic diagram of a device discovery interaction process in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0036] The technical solutions in typical embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0037] Example 1

[0038] like Figure 1 As shown, this embodiment provides a HVAC equipment self-discovery method based on the Homebus bus, comprising the following steps:

[0039] S101, HVAC equipment uses Homebus (HBS) bus communication, including between master and slave devices, and between slave devices, such as Figure 2 As shown. Define the link layer protocol, which includes the link layer MAC address of the device. Specify the device MAC address for the master and slave devices respectively. Although the MAC address is not unique, it only needs to be different in each field because it is a field bus. Define the broadcast mode for the master device (i.e., the HVAC controller device), specify a specific device address as the broadcast address, and the slave device will reply to all commands sent to the broadcast address.

[0040] When the master and slave devices communicate, they fill in their respective MAC addresses in the address part of the link layer protocol. The device will respond only when it receives a message that is consistent with the device's local address or the broadcast address.

[0041] The link layer MAC address of the device itself is not written into the device, and only 1 byte is used to reduce the communication volume. The device MAC address in this embodiment needs to be manually randomly assigned during field implementation, and conflict detection will be performed later. If the address conflicts, it will be reallocated.

[0042] HVAC equipment based on Homebus networking can achieve device self-discovery. The device will be discovered after it is connected, and there is no need to query the device's communication address and device type on site. This greatly reduces the complexity of configuration, thereby reducing the workload and error-proneness of manual networking, and can significantly improve the efficiency of HVAC controller networking, while also reducing subsequent maintenance difficulties.

[0043] S102: After receiving the broadcast command from the device, an anti-collision strategy is set to respond according to the bus communication rate, the response command length and the device MAC address, so as to avoid collision and congestion caused by sending responses at the same time.

[0044] The anti-collision strategy is based on the anti-collision algorithm, and the anti-collision algorithm used is:

[0045] Tdelay={instruction length / (bus communication rate*α)}+device MAC address*β,

[0046] Among them, α and β are setting parameters.

[0047] Tdelay is the delay time or command response time. According to the algorithm, different device MAC addresses have different broadcast command response times to achieve the purpose of staggered transmission and avoid communication conflicts caused by congestion.

[0048] In this embodiment, α is related to the bus configuration and is 10 by default; β is related to the on-site communication effect and is 1 by default. However, this does not mean that α and β cannot be adjusted, and external adjustment configuration can be performed as needed.

[0049] According to the bus communication rate, response instruction length and device MAC address, a broadcast anti-collision strategy based on the anti-collision algorithm is set to ensure that the devices receiving the broadcast instruction do not send response data at the same time, avoiding collision, blocking and retransmission problems caused by bus broadcast, improving the efficiency of bus broadcast, reducing device discovery time and improving bus self-diagnosis capabilities.

[0050] S103. The command response carries a unique device identification code for the master device to perform device conflict detection.

[0051] When performing device conflict detection, if the device unique identification code is different in the discovered slave devices, but the device MAC address is not unique, then the slave device MAC address is illegal, and the slave device itself is legal. At this time, the conflict correction strategy is executed.

[0052] If the device MAC address and the device unique identification code are different in the discovered slave devices, the slave device is a legitimate device.

[0053] If the device MAC address and the device unique identification code are the same, it is a duplicate report and should be filtered.

[0054] S104: When the master device finds that there are multiple devices with the same device MAC address and different unique identification codes, it executes the conflict self-correction strategy. Conflict self-correction strategy steps:

[0055] S401 traverses the discovery results, searches for unused device MAC addresses, and creates a list of unused device MAC addresses;

[0056] S402 traverses the device list stored in the master device and filters the unused device MAC address list in S401 again;

[0057] S403 takes a group of devices with the same address for processing. If the address is not in the address table after processing in S402, any device is selected to use the address, and the addresses in S402 are allocated to other devices in turn; if the address is in the address in S402, the group of devices are allocated the addresses in S402 in turn; the allocated address is removed from the unused address list.

[0058] S404 repeats step S403 until all the same-address device groups are processed.

[0059] The method of this embodiment performs conflict detection during the device self-discovery process, can automatically perform networking diagnosis on networking devices, can detect inconsistency problems caused by manual configuration of various devices, reduce the difficulty of detection, and improve maintainability. In addition, a device conflict self-correction strategy is provided to resolve conflicts, which can achieve non-sensing access to devices. The self-correction strategy reduces the difficulty and workload of networking, achieves compatible access to devices without manual intervention, and overcomes the problem that address conflicts in existing traditional buses cannot be automatically detected and corrected.

[0060] like Figure 3 As shown, the interactive process of device discovery is simulated:

[0061] S501, the master device sends a device discovery instruction;

[0062] S502. After receiving the broadcast instruction, the slave device sends response data based on the anti-collision strategy, where slave device 1 is MAC1, SN111 (SN111 is only an example for convenience of illustration, in fact, the device unique identifier has 16 bytes, the same below); slave device 2 is MAC2, SN222; slave device 3 is MAC5, SN551; slave device 4 is MAC5, SN666; slave device 5 is MAC2, SN is 777.

[0063] S503: Wait for the device discovery instruction to be completed.

[0064] S504, the master device detects the MAC and SN of the slave device, and there are MAC address conflicts between slave device 2 and slave device 5, and between slave device 3 and slave device 4. There are no conflicts with other devices.

[0065] S505 , the master device executes the self-correction strategy, sets the address of slave device 4 to MAC3, and sets the address of slave device 5 to MAC4.

[0066] S506 , slave device 4 and slave device 5 confirm with new MAC addresses 3 and 4 respectively.

[0067] Example 2

[0068] This embodiment provides an electronic device, characterized in that the electronic device includes:

[0069] A communication interface, used to communicate with other electronic devices;

[0070] a memory for storing computer program instructions;

[0071] A processor is used to execute the computer program instructions to support the electronic device to implement the method as described in Example 1.

[0072] Example 3

[0073] This embodiment provides a communication system, which is used to implement the method described in Example 1; the communication system includes: the electronic device described in Example 2.

[0074] Example 4

[0075] This embodiment provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processing circuit, the method described in Embodiment 1 is implemented.

[0076] Example 5

[0077] This embodiment provides a computer program product including instructions. When the computer program product is run on a computer, the computer is caused to execute the method described in Embodiment 1.

[0078] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.

Claims

1. A HVAC equipment self-discovery method based on Homebus, characterized in that: The following steps are involved: Homebus communication is used between HVAC devices, link layer protocol is defined, and MAC addresses are specified for master and slave devices respectively; broadcast mode is defined for the master device, and a specific device address is designated as the broadcast address. All commands sent to the broadcast address will be responded to by the slave device; After receiving the broadcast command from the device, the anti-collision strategy is set to respond according to the bus communication rate, response command length and device MAC address; The command response carries the unique device identification code for the master device to perform device conflict detection; When the master device finds that there are multiple devices with the same device MAC address and different unique identification codes, it executes the conflict self-correction strategy.

2. A method for self-discovery of HVAC equipment based on Homebus as claimed in claim 1, characterized in that: The anti-collision strategy is based on the anti-collision algorithm, and the anti-collision algorithm used is: Tdelay={instruction length / (bus communication rate*α)}+device MAC address*β, Among them, α and β are setting parameters.

3. A method for self-discovery of HVAC equipment based on Homebus as claimed in claim 1, characterized in that: When performing device conflict detection, if the device unique identification code is different in the discovered slave devices, but the device MAC address is not unique, then the slave device MAC address is illegal, and the slave device itself is legal. At this time, the conflict correction strategy is executed.

4. A method for self-discovery of HVAC equipment based on Homebus as claimed in claim 3, characterized in that: If the device MAC address and the device unique identification code are different in the discovered slave devices, the slave device is a legitimate device.

5. A method for self-discovery of HVAC equipment based on Homebus as claimed in claim 3, characterized in that: If the device MAC address and the device unique identification code are the same, it is a duplicate report and should be filtered.

6. A method for self-discovery of HVAC equipment based on Homebus as claimed in claim 3, characterized in that: Conflict self-correction strategy steps: S401 traverses the discovery results, searches for unused device MAC addresses, and creates a list of unused device MAC addresses; S402 traverses the device list stored in the master device and filters the unused device MAC address list in S401 again; S403 takes a group of devices with the same address for processing. If the address is not in the address table after processing in S402, any device is selected to use the address, and the addresses in S402 are allocated to other devices in turn; if the address is in the address in S402, the group of devices are allocated the addresses in S402 in turn; the allocated address is removed from the unused address list. S404 repeats step S403 until all the same-address device groups are processed.

7. An electronic device, characterized in that: The electronic device comprises: A communication interface, used to communicate with other electronic devices; a memory for storing computer program instructions; A processor, configured to execute the computer program instructions to support the electronic device to implement the method as described in any one of claims 1-6.

8. A communication system, characterized in that: The communication system is used to implement the method as described in any one of claims 1-6; the communication system includes: the electronic device as described in claim 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processing circuit, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.