# US 8,190,697 B2 · Automated configuration of device communication settings

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

- Number: US 8,190,697 B2
- Document ID: US8190697B2
- Status: Granted
- Kind: B2
- Application number: 12/468,961
- Filed: 2009-05-20
- Published: 2010-11-25
- Granted: 2012-05-29
- Earliest claimed: 2009-05-20
- Assignees: Square D Company
- Inventors: Chad A. Lloyd
- Web page: https://patentgrep.com/patent/US8190697B2

## CPC

- G06F 15/16: Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs {(coordinating program control therefor G06F9/52; in regulating and control system G05B)}
- G05B 19/0426: {Programming the control sequence}
- H04L 12/40: Bus networks
- H04L 12/40117: {Interconnection of audio or video/imaging devices (home automation networks H04L12/2803; bitstream network arrangements specially adapted for distribution of digital video signals H04N7/24)}
- G05B 2219/2231: Leader-follower
- H04L 12/2825: {Reporting to a device located outside the home and the home network (access arrangements H04L12/2856; for remote control or remote monitoring of applications H04L67/025; telephonic communication systems adapted for combination with telemetering systems H04M11/002)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Automatically configurable master and slave devices in a master/slave multi-drop serial network are disclosed. In one embodiment, the devices and network utilize the Modbus serial communications protocol over a serial multi-drop network, such as an RS-232 or RS-485 (also referred to as EIA-485) based network. Alternatively, the disclosed embodiments may be used with any master/slave serial multi-drop network. In one embodiment, the master and slave devices include pseudo-slave and pseudo-master auto-configuration operating modes, respectively, whereby slave devices which are introduced to the network may send unsolicited identifying messages to the master device which will determine and assign a unique network address thereto, causing the slave device to configure itself to be responsive to messages addressed therewith and then enter its normal slave operating mode to await such messages. The master device, thereafter, maintains a database of the slave devices and their associated network addresses. In one embodiment, legacy slave devices, which do not support the disclosed pseudo-master auto-configuration mode, are supported by the master device which determines when network addresses are in use by such legacy devices, as will be described, and avoids assigning those addresses to newly introduced auto-configurable slave devices.

## Claims

### Claim 1

A method of automatically configuring a master device and a slave device to communicate over a network, the slave device being one of a plurality of slave devices, each of the plurality of slave devices comprising a device unique identifier unique among the plurality of slave devices, the slave device being operative in a slave mode to transmit a direct communication to the master device only when solicited by the master device, the master device operative in a master mode to be otherwise unresponsive to unsolicited direct communications transmitted from the slave device to the master device, the method comprising:
configuring the slave device to operate in a pseudo-master mode operative to transmit an unsolicited configuration request message over the network, the unsolicited configuration request message comprising the device unique identifier of the slave device;
configuring the master device to operate in a pseudo-slave mode operative to be responsive to an unsolicited configuration request message received over the network from any of the plurality of slave devices, the unsolicited configuration request message comprising the device unique identifier thereof;
transmitting, by the slave device, an unsolicited configuration request message over the network, the unsolicited configuration request message comprising the device unique identifier of the slave device;
receiving, by the master device, the unsolicited configuration request message over the network;
determining a network unique identifier for the slave device unique among all slave devices in communication with the master device over the network and associating the network unique identifier with the received device unique identifier of the slave device;
storing, by the master device, the network unique identifier in association with the received unique identifier of the slave device for use when the master device operates in master mode to communicate with the slave device;
transmitting a configuration response message over the network, by the master device, the configuration response message comprising the device unique identifier and network unique identifier associated with the device unique identifier of the slave device;
receiving the configuration response message by the slave device over the network, the configuration response message comprising the device unique identifier and network unique identifier associated with the device unique identifier of the slave device; and
configuring, by the slave device in response to the receiving of the configuration response message, the slave device to be responsive to messages received from the master device identified by the network unique identifier, and, responsive to the configuring, further configuring the slave device to operate in the slave mode.

### Claim 2 (depends on 1)

The method of claim 1 wherein the master and the plurality of slave devices comprises Modbus compatible devices and further wherein the network comprises a Modbus compatible network.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
retransmitting, by the slave device, the unsolicited configuration request message when the configuration response message is not received within a defined period of time.

### Claim 4 (depends on 1)

The method of claim 1 wherein the determining further comprises selecting a network identifier and confirming that the selected network identifier is not associated with another slave device in communication with the master device.

### Claim 5 (depends on 1)

The method of claim 1 wherein the transmitting of the configuration response message by the master device further comprises broadcasting the configuration response message to all slave devices in communication with the master device, the method further comprising:
receiving, by another slave device of the plurality of slave devices, the configuration response message, determining, by the other slave device, that the device unique identifier contained therein does not match the device unique identifier of the other slave device and, based thereon, ignoring the configuration response message by the other slave device.

### Claim 6 (depends on 1)

The method of claim 1 wherein the configuring of the slave device to be in the pseudo-master mode further comprises automatically configuring the slave device to be in the pseudo-master mode upon applying power to the slave device.

### Claim 7 (depends on 1)

The method of claim 1 wherein the unsolicited configuration request message is characterized by an auto-configuration message format, the method further comprising ignoring, by the master device operating in the pseudo-slave mode, other unsolicited messages which are not characterized by the auto-configuration message format.

### Claim 8 (depends on 1)

The method of claim 1 wherein the configuring, by the slave device in response to the receiving of the configuration response message, further comprises configuring, by the slave device in response to the receiving of the configuration response message, the slave device to be responsive to messages received from the master device identified by the network unique identifier, and, responsive to the configuring, further configuring, automatically, the slave device to be in the slave mode, only if the configuration response message is received subsequent to the transmitting of the unsolicited configuration request message and prior to any retransmitting thereof.

### Claim 9 (depends on 1)

The method of claim 1 wherein the device unique identifier further identifies the type of slave device.

### Claim 10 (depends on 1)

The method of claim 1 wherein the configuration response message further comprises device configuration parameters.

### Claim 11

A method of configuring a master device to communicate with a slave device over a network, the slave device being one of a plurality of slave devices, each of the plurality of slave devices comprising a device unique identifier unique among the plurality of slave devices, the slave device being operative in a slave mode to transmit a direct communication to the master device only when solicited by the master device, the master device operative in a master mode to be otherwise unresponsive to unsolicited direct communications transmitted from the slave device, the method comprising:
configuring the master device to operate in a pseudo-slave mode operative to be responsive to an unsolicited message received over the network from any of the plurality of slave devices, the unsolicited message comprising the device unique identifier thereof;
receiving by the master device an unsolicited message transmitted over the network by the slave device comprising the device unique identifier of the slave device;
determining, in response to the receiving, a network unique identifier for the slave device unique among all slave devices in communication with the master device over the network and associating the network unique identifier with the received device unique identifier of the slave device;
storing, by the master device, the network unique identifier in association with the received unique identifier of the slave device for use when the master device operates in master mode to communicate with the slave device; and
transmitting a configuration response message over the network, the configuration response message comprising the device unique identifier and network unique identifier associated with the device unique identifier of the slave device, the configuration response message being operative to cause the slave device to configure itself to be responsive to messages received from the master device identified by the network unique identifier.

### Claim 12 (depends on 11)

The method of claim 11 wherein the determining further comprises selecting a network identifier and confirming that the selected network identifier is not associated with another slave device in communication with the master device.

### Claim 13 (depends on 11)

The method of claim 11 wherein the transmitting of the configuration response message by the master device further comprises broadcasting the configuration response message to all slave devices in communication with the master device.

### Claim 14 (depends on 11)

The method of claim 11 wherein the unsolicited configuration request message is characterized by an auto-configuration message format, the method further comprising ignoring, by the master device operating in the pseudo-slave mode, other unsolicited messages which are not characterized by the auto-configuration message format.

### Claim 15 (depends on 11)

The method of claim 11 wherein the device unique identifier further identifies the type of slave device.

### Claim 16 (depends on 11)

The method of claim 11 wherein the configuration response message further comprises device configuration parameters.

### Claim 17

A method of configuring a slave device to communicate with a master device over a network, the slave device being one of a plurality of slave devices, each of the plurality of slave devices comprising a device unique identifier unique among the plurality of slave devices, the slave device being operative in a slave mode to transmit a direct communication to the master device only when solicited by the master device, the master device operative in a master mode to be otherwise unresponsive to unsolicited direct communications transmitted from the slave device, the method comprising:
configuring the slave device to operate in a pseudo-master mode operative to transmit an unsolicited message over the network, the unsolicited message comprising the device unique identifier of the slave device;
transmitting by the slave device an unsolicited configuration request message over the network, the unsolicited configuration request message comprising the device unique identifier of the slave device;
receiving, by the slave device over the network, a configuration response message comprising the device unique identifier and a network unique identifier associated with the device unique identifier of the slave device, the network unique identifier having been determined to be unique among all slave devices in communication with the master device over the network;
configuring, by the slave device, the slave device to be responsive to messages received from the master device identified by the network unique identifier, and, responsive to the configuring, further configuring the slave device to operate in the slave mode.

### Claim 18 (depends on 17)

The method of claim 17 further comprising:
retransmitting, by the slave device, the unsolicited configuration request message when the configuration response message is not received within a defined period of time.

### Claim 19 (depends on 17)

The method of claim 17, the method further comprising:
determining, by the other slave device, that the device unique identifier contained in the configuration response message does not match the device unique identifier of the slave device and, based thereon, ignoring the configuration response message.

### Claim 20 (depends on 17)

The method of claim 17 wherein the configuring of the slave device to be in the pseudo-master mode further comprises automatically configuring the slave device to be in the pseudo-master mode upon applying power to the slave device.

### Claim 21 (depends on 17)

The method of claim 17 wherein the configuring, by the slave device in response to the receiving of the configuration response message, further comprises configuring, by the slave device in response to the receiving of the configuration response message, the slave device to be responsive to messages received from the master device identified by the network unique identifier, and, responsive to the configuring, further configuring, automatically, the slave device to be in the slave mode, only if the configuration response message is received subsequent to the transmitting of the unsolicited configuration request message and prior to any retransmitting thereof.

### Claim 22 (depends on 17)

The method of claim 17 wherein the device unique identifier further identifies the type of slave device.

### Claim 23 (depends on 17)

The method of claim 17 wherein the configuration response message further comprises device configuration parameters.

### Claim 24

A master device operable to be configured to communicate with a slave device over a network, the slave device being one of a plurality of slave devices, each of the plurality of slave devices comprising a device unique identifier unique among the plurality of slave devices, the slave device being operative in a slave mode to transmit a direct communication to the master device only when solicited by the master device, the master device operative in a master mode to be otherwise unresponsive to unsolicited direct communications transmitted from the slave device, the master device comprising a processor, a memory coupled with the processor and a network interface operative to couple processor with the network, the master device further comprising:
configuration logic stored in the memory and executable by the processor to configure the master device to operate in a pseudo-slave mode to cause the master device to be responsive to an unsolicited message received over the network from any of the plurality of slave devices, the unsolicited message comprising the device unique identifier thereof;
receive logic stored in the memory, coupled with the configuration logic, and executable by the processor to receive an unsolicited message, via the network interface, transmitted over the network by the slave device comprising the device unique identifier of the slave device;
determination logic stored in the memory, coupled with the receive logic, and executable by the processor to determine a network unique identifier for the slave device unique among all slave devices in communication with the master device over the network and associate the network unique identifier with the received device unique identifier of the slave device;
the determination logic being further operative to store, in the memory, the network unique identifier in association with the received unique identifier of the slave device for use when the master device operates in master mode to communicate with the slave device; and
transmit logic stored in the memory, coupled with the determination logic, and executable by the processor to cause the master device to transmit a configuration response message over the network via the network interface, the configuration response message comprising the device unique identifier and network unique identifier associated with the device unique identifier of the slave device, the configuration response message being operative to cause the slave device to configure itself to be responsive to messages received from the master device identified by the network unique identifier.

### Claim 25 (depends on 24)

The device of claim 24 wherein the determination logic is further executable by the processor to select a network identifier and confirm that the selected network identifier is not associated with another slave device in communication with the master device.

### Claim 26 (depends on 24)

The device of claim 24 wherein the transmit logic is further executable by the processor to broadcast the configuration response message to all slave devices in communication with the master device.

### Claim 27 (depends on 24)

The device of claim 24 wherein the unsolicited configuration request message is characterized by an auto-configuration message format, the receive logic being further executable by the processor to ignore other unsolicited messages which are not characterized by the auto-configuration message format.

### Claim 28

A slave device operable to be configured to communicate with a master device over a network, the slave device being one of a plurality of slave devices, each of the plurality of slave devices comprising a device unique identifier unique among the plurality of slave devices, the slave device being operative in a slave mode to transmit a direct communication to the master device only when solicited by the master device, the master device operative in a master mode to be otherwise unresponsive to unsolicited direct communications transmitted from the slave device, the slave device comprising a processor, a memory coupled with the processor and a network interface operative to couple processor with the network, the slave device further comprising:
configuration logic stored in the memory and executable by the processor to configure the slave device to be in a pseudo-master mode operative to transmit an unsolicited message over the network, the unsolicited message comprising the device unique identifier of the slave device;
transmit logic stored in the memory, coupled with the configuration logic, and executable by the processor to cause the slave device to transmit an unsolicited configuration request message over the network via the network interface, the unsolicited configuration request message comprising the device unique identifier of the slave device; and
receive logic stored in the memory, coupled with the transmit logic, and executable by the processor to receive a configuration response message, via the network interface, comprising the device unique identifier and a network unique identifier associated with the device unique identifier of the slave device, the network unique identifier having been determined to be unique among all slave devices in communication with the master device over the network; and
wherein the configuration logic is further executable by the processor to configure the slave device to be responsive to messages received, via the network interface, from the master device identified by the network unique identifier, and, subsequent thereto, configure the slave device to operate in the slave mode.

### Claim 29 (depends on 28)

The device of claim 28 wherein the transmit logic is further executable by the processor to retransmit the unsolicited configuration request message when the configuration response message is not received within a defined period of time.

### Claim 30 (depends on 28)

The device of claim 28 wherein the receive logic is further executable by the processor to determine that the device unique identifier contained in the configuration response message does not match the device unique identifier of the slave device and, based thereon, ignore the configuration response message.

### Claim 31 (depends on 28)

The device of claim 28 wherein the configuration logic is further executable by the processor to automatically configure the slave device to be in the pseudo-master mode upon an application of power to the slave device.

### Claim 32 (depends on 28)

The device of claim 28 wherein the configuration logic is further executable by the processor to configure the slave device to be responsive to messages received from the master device identified by the network unique identifier, and, responsive thereto, further configure, automatically, the slave device to be in the slave mode, only if the configuration response message is received subsequent to the transmission of the unsolicited configuration request message and prior to any retransmission thereof.

### Claim 33

A method of automatically configuring a master device and a slave device to communicate over a network, the method comprising:
providing a slave device and a master device, the slave device being one of a plurality of slave devices, each of the plurality of slave devices comprising a device unique identifier unique among the plurality of slave devices, the slave device being operative in a slave mode to transmit a direct communication to the master device only when solicited by the master device, the master device being operative in a master mode to be otherwise unresponsive to unsolicited direct communications transmitted from the slave device to the master device; and
configuring the slave device to operate in a pseudo-master mode to transmit an unsolicited configuration request to the master device over the network and configuring the master device to operate in a pseudo-slave mode to respond to the unsolicited configuration request message by transmitting a network unique identifier associated with the device unique identifier to the slave device, the slave device being thereafter configured to respond to messages transmitted by the master device identified by the network unique identifier.
