Modbus Example X4 Setup

Modbus XBee Bridge Example - Setting up the X4

This real-world example includes the following features:

Portions of this example can be review on these pages:

ConnectPort X4 Installation

Setting an Appropriate IP into the CPX

You first need to get an appropriate IP into your ConnectPort gateway, which most likely is a fixed IP on your local IP subnet. Some ConnectPort gateway products default to DHCP clients, which other default to 192.168.1.1. Fortunately, the Digi Device Discovery tool allows you to locate and connect to your Digi device without changing the IP in your computer.

Setting an Appropriate XBee PAN id into the CPX

By default your gateway's XBee network comes up with an unknown or random PAN id - think of it as your 'network call-name'. This is fine if you are the only person in a few miles using ZigBee - and if you only have 1 such gateway. However, as soon as there are two Xbee networks within RF sight of each other, you'll need to force them to build separate PANs (or network-groups). Even if today you have the sole gateway and everything builds fine, at any moment your neighbor or a colleague might add a second system, and then any power outage risks you losing XBee devices to other networks. So you always want to hard-code in your own unique PAN id!

Click the Configuration > XBee Network link at the left, and you will see something like this:

Note These screen shots are from a ConnectPort X2, not an X4 - the same concepts apply. Also the colors are modified by a custom CSS (or cascading style sheet) - which is a little known feature of the Digi ConnectPort line.