# US 2025/0097685 A1 · Methods and systems for discovering nodes and/or devices of a building control system using a sparkplug protocol

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0097685 A1
- Document ID: US20250097685A1
- Status: Published application
- Kind: A1
- Application number: 18/821,742
- Filed: 2024-08-30
- Published: 2025-03-20
- Earliest claimed: 2023-09-19
- Assignees: Honeywell International Inc.
- Applicants: Honeywell International Inc.
- Inventors: Chen Shanshan; Lifen Zhang; Shao Min Sun; Shida Wang; Will Qi; Yingying Zhu
- Web page: https://patentgrep.com/patent/US20250097685A1

## CPC

- H04W 8/005: {Discovery of network devices, e.g. terminals}
- G05B 15/02: electric
- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G05B 2219/2642: Domotique, domestic, home control, automation, smart house
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A discover method includes a collection phase and a subsequent discovery phase. The collection phase includes receiving an NBIRTH message for each node and receiving a DBIRTH message for each device. A group ID and a corresponding node ID are extracted and cached from each NBIRTH message and a group ID, a node ID and a device ID are extracted from each DBIRTH message. The discovery phase includes publishing a REBIRTH message for each node having a cached group ID and node ID. The REBIRTH message causes the corresponding node to publish an NBIRTH message for the corresponding node, as well as a DBIRTH message for each associated device. Nodes may be discovered based on the NBIRTH messages published during the discovery phase and devices may be discovered based on the DBIRTH messages published during the discovery phase.

## Claims

### Claim 1

A method for discovering one or more nodes and one or more devices associated with the one or more nodes of a building control system using a sparkplug protocol, the method comprising:
during a collection phase:
receiving an NBIRTH message for each of one or more nodes of the building control system;
receiving a DBIRTH message for each of one or more devices of the building control system;
extracting from the NBIRTH messages a group ID and a corresponding node ID for each of the one or more nodes;
extracting from the DBIRTH messages, a group ID, a node ID and a device ID for each of one or more devices;
caching the extracted group ID and node ID for each of the one or more nodes that are identified by the NBIRTH and DBIRTH messages;
during a discovery phase following the collection phase:
publishing a REBIRTH message for each of one or more of the nodes that have a cached group ID and node ID combination, the REBIRTH message causing the corresponding node to:
publish an NBIRTH message for the corresponding node;
publish a DBIRTH message for each of one or more devices that are associated with the corresponding node, if any;
discovering one or more nodes of the building control system based on the NBIRTH messages published during the discovery phase; and
discovering one or more devices of the building control system based on the DBIRTH messages published during the discovery phase.

### Claim 2 (depends on 1)

The method of claim 1, wherein during the discovery phase:
selecting a cached group ID; and
publishing a REBIRTH message for each of one or more of the nodes that have the selected cached group ID, but not one or more of the nodes that do not have the selected cached group ID.

### Claim 3 (depends on 2)

The method of claim 2, wherein the selected cached group ID is selected by a user via user interface.

### Claim 4 (depends on 3)

The method of claim 3, wherein the REBIRTH message is published in response to receiving a discovery request from the user.

### Claim 5 (depends on 1)

The method of claim 1, wherein during the discovery phase:
selecting a cached group ID;
selecting a cached node ID;
publishing a REBIRTH message to the particular node that corresponds to the selected cached group ID and the selected cached node ID, wherein the REBIRTH message causing the corresponding node to:
publish an NBIRTH message for the corresponding node; and
publish a DBIRTH message for each of one or more devices that are associated with the corresponding node, if any.

### Claim 6 (depends on 1)

The method of claim 1, wherein during the collection phase:
determining when a group ID and node ID combination has already been extracted, and when so determined, only caching the extracted group ID and node ID once for the particular node.

### Claim 7 (depends on 1)

The method of claim 1, wherein the NBIRTH and DBIRTH messages are received by an application program that is operatively coupled to each of the one or more nodes via an MQTT broker, and wherein the application program is placed in a collection mode by a user during the collection phase and in a discovery mode during the discovery phase.

### Claim 8 (depends on 7)

The method of claim 7, wherein each of the one or more nodes is configured to automatically publish a corresponding NBIRTH message when the corresponding node initially comes on-line with the MQTT broker.

### Claim 9 (depends on 1)

The method of claim 1, comprising:
after discovering the one or more nodes of the building control system based on the NBIRTH messages published during the discovery phase, generating and publishing an NDATA message for one or more of the discovered nodes; and
after discovering the one or more devices of the building control system based on the DBIRTH messages published during the discovery phase, generating and publishing an DDATA message for one or more of the discovered devices.

### Claim 10 (depends on 9)

The method of claim 9, comprising:
building out a data structure for each of the discovered nodes based at least in part on the NBIRTH messages and/or the NDATA messages published during the discovery phase.

### Claim 11 (depends on 9)

The method of claim 9, comprising:
building out a data structure for each of the discovered devices based at least in part on the DBIRTH messages and/or the DDATA messages published during the discovery phase.

### Claim 12

A non-transitory computer readable medium storing instructions that when executed by one or more processors cause the one or more processors to:
accept user input to enter a collection phase, and once in the collection phase:
receive an NBIRTH message for each of one or more nodes of a building control system;
receive a DBIRTH message for each of one or more devices of the building control system;
extract from the NBIRTH messages a group ID and a corresponding node ID for each of the one or more nodes;
extract from the DBIRTH messages, a group ID, a node ID and a device ID for each of one or more devices;
cache the extracted group ID and node ID for each of the one or more nodes;
accept user input to enter a discovery phase, and once in the discovery phase:
publish a REBIRTH message for each of one or more of the nodes that have a cached group ID and node ID combination, the REBIRTH message causing the corresponding node to:
publish an NBIRTH message for the corresponding node;
publish a DBIRTH message for each of one or more devices that are associated with the corresponding node, if any;
discover one or more nodes of the building control system based on the NBIRTH messages published during the discovery phase; and
discover one or more devices of the building control system based on the DBIRTH messages published during the discovery phase.

### Claim 13 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein during the discovery phase, the instructions cause the one or more processors to:
accept a selection from a user of a particular cached group ID; and
publish a REBIRTH message for each of one or more of the nodes that have the selected cached group ID, but not one or more of the nodes that do not have the selected cached group ID.

### Claim 14 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein during the discovery phase, the instructions cause the one or more processors to:
accept a selection from a user of a selected cached group ID;
accept a selection from the user of a selected cached node ID;
publish a REBIRTH message to the particular node that corresponds to the selected cached group ID and the selected cached node ID, wherein the REBIRTH message causing the corresponding node to:
publish an NBIRTH message for the corresponding node; and
publish a DBIRTH message for each of one or more devices that are associated with the corresponding node, if any.

### Claim 15 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein during the collection phase, the instructions cause the one or more processors to:
determine when a group ID and node ID combination has already been extracted, and when so determined, only caching the extracted group ID and node ID once for the particular node.

### Claim 16 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the instructions cause the one or more processors to execute an application program, wherein the NBIRTH and DBIRTH messages are received by the application program, and the application program is placed into a collection mode by a user input during the collection phase and into a discovery mode during the discovery phase.

### Claim 17 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the instructions cause the one or more processors to:
after discovering the one or more nodes of the building control system based on the NBIRTH messages published during the discovery phase, generate and publish an NDATA message for one or more of the discovered nodes; and
after discovering the one or more devices of the building control system based on the DBIRTH messages published during the discovery phase, generate and publish a DDATA message for one or more of the discovered devices.

### Claim 18 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the instructions cause the one or more processors to:
build out a data structure for each of the discovered nodes based at least in part on the NBIRTH messages and/or the NDATA messages published during the discovery phase; and
build out a data structure for each of the discovered devices based at least in part on the DBIRTH messages and/or the DDATA messages published during the discovery phase.

### Claim 19

A method for discovering one or more nodes of a building control system using a sparkplug protocol, the method comprising:
receiving messages from an MQTT broker;
extracting a group ID and a node ID from each message, wherein the extracted group ID and node ID identify a particular node of the building control system;
determining whether the extracted group ID and node ID for each message corresponds to an undiscovered node of the building control system;
for those messages where the extracted group ID and node ID correspond to an undiscovered node, generating and publishing a REBIRTH message to the corresponding undiscovered node using the extracted group ID and node ID, the REBIRTH message causing the corresponding undiscovered node to publish a corresponding NBIRTH message; and
discovering the corresponding undiscovered node of the building control system based on the NBIRTH messages published by the corresponding undiscovered node.

### Claim 20 (depends on 19)

The method of claim 19, comprising:
extracting a group ID, a node ID and a device ID from one or more messages, wherein the extracted group ID, node ID and device ID identify a particular device of the building control system;
determining whether the extracted group ID, node ID and device ID corresponds to an undiscovered device of the building control system;
for those messages where the extracted group ID, node ID and device ID correspond to an undiscovered device, generating and publishing a REBIRTH message to the node that corresponds to the undiscovered device of the building control system, the REBIRTH message causing the corresponding node to publish a DBIRTH message for the corresponding undiscovered device of the building control system; and
discovering the corresponding undiscovered device of the building control system based at least in part on the DBIRTH messages published by the corresponding node.
