Configuration of IP addresses

This section describes the steps needed to connect your UCC2 to the host PC and configure the Ethernet communication link.

NOTE: The examples used in this section are for Windows XP Professional and will vary for other operating systems. 

IP addresses

You have to decide what IP address to give to the UCC2. The key to this is to choose an IP address for the UCC2 and an IP address for the PC’s network adaptor that are of the same network. What does this mean? Well, firstly we must introduce sets of networks called network classes which are defined by their IP address ranges:

class A 1.0.0.1 – 126.255.255.254

class B 128.0.0.1 – 191.255.255.254

class C 192.0.0.1 – 223.255.255.254

For class A networks, a network is defined by the first number.

For class B networks, a network is defined by the first two numbers.

For class C networks, a network is defined by the first three numbers.

If you choose to use IP addresses that belong to the class A network class, then you must be sure that the first numbers are identical, e.g. 10.0.0.1 and 10.123.4.17. If you choose to use IP addresses that belong to the class B network class, then you must be sure that the first two numbers are identical, e.g. 155.23.0.1 and 155.23.86.207. If you choose to use IP addresses that belong to the class C network class, then you must be sure that the first three numbers are identical, e.g. 192.168.32.1 and 192.168.32.2.

A rule that always works is to choose ‘adjacent’ IP addresses from the ranges given above (by adjacent we mean that the last numbers differ only by 1, e.g. 172.16.40.1 and 172.16.40.2).

Here the UCC2-PC network interface had its cable removed, so shows up as “Media disconnected”. The other connection was the corporate one, and is seen to be a class B network. Hence the UCC2-PC network is best chosen to be a class A or a class C one.

Setting the IP address of the PC

The network adapter in the PC to which the UCC2 is connected needs an IP address. See the paragraph "IP addressing" above for a discussion of the choice. How to set the address in the PC varies with each version of Windows, but the basic idea is the same. Here is the process using Windows XP Professional. You need administrator rights in order to perform this operation.

a) Select Start → Settings → Control Panel → Network Connections to give:

NOTE: The last number must not be 0 or 255. 

UCC2 instal guide - screenshot 2

b) Right-click the appropriate Local Area Connection and select Properties from the resultant popup menu box to give:

If there is more than one network connection in your PC, choose a network class for the UCC2-PC connection that is not currently in use to keep the connections clearly separate. To find out which IP address, and hence which network class your other network interfaces use, type “ipconfig” at a command prompt. Its output will look similar to this:

UCC2 instal guide - screenshot 1

UCC2 instal guide - screenshot 3

c) Select ‘Internet Protocol (TCP/IP)’ and click Properties to give:

UCC2 instal guide - screenshot 4

d) If not already selected select ‘Use the following IP address’ and type in the IP address that you want to use for the PC end of the comms link. Now click in the Subnet mask field. On Windows XP the Subnet mask will be filled in for you. If you have to fill it in for yourself, here are the values:

Class of network IP address belongs to

Subnet mask to use

A

255.0.0.0

B

255.255.0.0

C

255.255.255.0

Leave the Default gateway field blank.

Example:

UCC2 instal guide - screenshot 5

e) Click OK and then OK again. Whether or not this setting has taken effect depends on the version of Windows that you are running. On earlier versions you will need to reboot the PC. To be absolutely sure, reboot your PC anyway.

Setting the IP address of the UCC2

The UCC2 is not intended to be used on a corporate network. It is extremely important that this setting of the IP address of the UCC2 is on a dedicated connection. It is also important that the connection is not “firewalled” at the PC end. You need administrator rights in order to perform this operation.

When it is first installed the UCC2 does not have any IP address. Turn the UCC2 on and wait for it to boot up. It will enter its IP configuration state, shown by the Error LED flashing rapidly. (Please be patient; this will take about 15 seconds.)

Now start the UCC IP configuration software on the PC.

a) Start → UCC Software → IP Configurer

UCC2 instal guide - screenshot 6

b) Click on the drop-down icon and select the IP address of the network adapter into which the UCC2 is plugged. (This should be the one on which you set the IP address of in 'Setting the IP address of the PC'.)

UCC2 instal guide - screenshot 7

c) You are now told that the UCC2 does not have an IP address:

UCC2 instal guide - screenshot 8

d) Fill in the desired IP address – the IP Configuration software has given you a head start by filling in the network part of the address appropriate for the network adapter you have selected. (See “IP addressing” for a discussion of the choice and of IP addresses in general.)

UCC2 instal guide - screenshot 9

e) Click on ‘Configure PC and UCC pair’. If all is well this will result in a confirmatory dialogue box:

UCC2 instal guide - screenshot 10

The UCC2 will now have moved into its ‘waiting for download’ state – shown by the error LED flashing slowly.

You have established the UCC2-PC system using the IP addresses of "Setting the IP address of the PC" and this section.

NOTE: Whenever you change one of the items in this pairing, e.g. by connecting a different UCC2 to the PC, you must re-run the UCC2 IP configuration software to establish the new UCC2-PC system. 

Changing the IP address of the UCC2

If the UCC2 has an IP address, after booting up it skips its IP configuration state and proceeds into waiting for a download, shown by the error LED flashing slowly. There are two ways to force the UCC2 into its IP configuration state:-

a) During the 15 second power up phase, before the error LED comes on, press and release the Reset button on the rear of the UCC2. At the end of the power up phase the error LED will flash rapidly indicating it is in the IP configuration state.

b) If the UCC2 has already powered up with the error light flashing slowly, i.e. about once per second, or even if the control software has been downloaded, the reset switch will need to be pressed twice. The first time to reset the controller then a second time, within 15 seconds, to force the IP configuration state.

The UCC2 is now in its IP configuration state, and the UCC2 IP configuration software can be run on the PC, selecting the appropriate network adapter required. The current IP address of the UCC2 will be displayed. Type in the new one and click on ‘Configure PC and UCC pair’.

Establishing a new UCC2-PC pairing

If you connect a different UCC2 to your PC, or a different PC to your UCC2, or even if you modify the network settings on the PC, you must ensure that they are a matched pair. To do this, go through the procedure in 'Setting the IP address of the PC', even if you do not wish to change the IP address of the UCC2. (If the IP address is already suitable, then you do not need to re-type it.) Clicking on ‘Configure PC and UCC pair’ will establish the new pairing.