background image

CP2201-EK

12

Rev. 0.1

Selecting an IP Address for the Embedded System

For a PC to recognize an embedded system on a network, its IP address and subnet mask need to be configured.
Below are a few guidelines to follow when choosing an IP address for the embedded system. Figure 20 shows an
example of a compatible PC and embedded system IP address combination. 

1. Find the IP address and Subnet mask for the PC. If a Default Gateway is specified, then save this address 

for later use. If you are using a crossover cable, you may choose any IP address for your PC as long as the 
Subnet mask allows it to recognize the embedded system. 

2. The IP address chosen for the embedded system must match the PC’s IP address in all bit locations where 

the Subnet mask is a 1 in order for the PC to recognize the embedded system. Otherwise, the PC will send 
it’s request outside the local network.

3. Do not duplicate IP addresses or select a broadcast address. An IP address is considered a broadcast 

address if all bits which are 0 in the Subnet mask are 1 in the IP address. Broadcast addresses with addi-
tional 1s such as 10.10.255.255 (Figure 20) can be broadcast to nodes outside the local network.

4. The address 255.255.255.255 is known as the Ethernet broadcast address and is used when the Subnet 

mask for the network is not known. Any packet transmitted to this address will reach all nodes on the local 
network but cannot go further than the nearest router.

IP Address Selection Example

The example in Figure 20 shows the IP address and subnet mask of the PC we want to connect to the embedded
system. Since the first 24 bits of the subnet mask are 1, the first 24 bits of the embedded web server’s IP address
(shown in bold) must match the PC’s IP address. Only the least significant 8 bits may vary making the valid range
of IP addresses for the embedded web server 10.10.10.0 to 10.10.10.254 with the exception of 10.10.10.80 since
this address is already taken by the PC. 10.10.10.255 is reserved because it is the broadcast address for this
network. 

Figure 20. IP Address Selection Example

PC IP Address

 

 
 
 
 
 
 
 
 

PC Subnet Mask

 

 
 

 
 
 
 
 

 
Embedded Web Server IP Address

  

 

 
 
 

0000 1010  0000 1010  0000 1010  0101 0000 

10 

10 

10 

80 

1111 1111  1111 1111  1111 1111  0000 0000 

255 

255 

255 

(decimal) 

(binary) 

(decimal) 

(binary) 

0000 1010

 

0000 1010

 

0000 1010

 

1010 0011 

10

 

10

 

10

 

163 

(decimal) 

(binary) 

Summary of Contents for CP2201

Page 1: ...ny of the functions in the CP2201EK Numerous code and application examples are also provided in the development kit The CP2201EK is a fully contained evaluation board The main system controller which runs the TCP IP Stack and performs other system tasks is a 50 MIPS Silicon Laboratories C8051F340 The Ethernet controller providing network connectivity is the Silicon Laboratories CP2201 the industry...

Page 2: ...n pause 4 Software Setup The included CD ROM contains all CP2201EK documentation the Netfinder utility and a firmware image that can be used for evaluating the Ethernet bootloader To get started insert the CD ROM into your PC s CD ROM drive and click Netfinder Follow the on screen instructions when the blue dialog automatically launches If the dialog does not automatically appear on the screen whe...

Page 3: ...low background a If the device appears in a yellow window then go to step 4 b If the device appears in a green window then click anywhere in the green window c After the black border appears press the Web Browser Quick Launch Button Figure 3 Web Browser Quick Launch Button 3 The default web browser should launch and display the home page served by the embedded web server The same result can be ach...

Page 4: ...llow area and pressing the Assign IP button as shown in Figure 5 Figure 5 Static IP Address Mode 6 Enter the IP address subnet mask and default gateway if known into the Assign IP Address dialog and press OK See Appendix A for information on how to configure the PC with a static IP address and how to select a static IP address for the CP2201EB A windows command line window should appear ping the d...

Page 5: ...h button as shown in Figure 7 Figure 7 Web Browser Quick Launch Button In Static IP Address Mode 8 The default web browser should launch and display the home page served by the embedded web server The same result can be achieved by typing the IP address of the embedded web server into the address bar of a web browser Figure 8 shows a screenshot of the uWeb v2 0 home page Figure 8 uWeb v2 0 Home Pa...

Page 6: ...he light sensor in the bottom right hand side of the board centered above the CP2201EB label Figure 9 Viewing Sensor Data 6 2 Controlling the State of the Yellow LED Simulating Yellow System Status LED From a Web Browser The yellow LED on the Ethernet connector is used to indicate system status when first connecting the CP2201EB to a network Table 1 describes the system states indicated by the yel...

Page 7: ...d an e mail the two pieces of information needed are the address of an SMTP server and the destination e mail address This information can be entered in the HTML form on the main web page as shown in Figure 11 On most networks the SMTP server can be located by typing ping mail at the command prompt or asking a system administrator If the SMTP server address is unknown a free software SMTP server t...

Page 8: ...minal is now configured on your PC 4 From Netfinder select an embedded system and press the Hyperterminal quick launch button as shown in Figure 12 This button initiates a Telnet connection with the selected CP2201EB using the default Telnet client on your PC Figure 12 Initiating a Telnet Connection From Netfinder Figure 13 shows a screenshot of the Telnet connection to the CP2201EB Pressing the S...

Page 9: ... appear in yellow with a text description Firmware Boot loader as shown in Figure 14 Note If the embedded system does not appear inside a yellow win dow then keep searching until you see a yellow window with the title CP2201 Demo Board Figure 14 Searching for the CP2201EB in Bootload Mode 3 Press the Bootloader quick launch button When prompted browse for the img file containing the latest firmwar...

Page 10: ...e cable Multiple embedded systems may be networked and accessed from the same or multiple PC s Only a single embedded system may be accessed from a single PC Shared communication medium System may experi ence packet delays under heavy network traffic This effect is greatly reduced if using a switched network Dedicated channel bandwidth Good for achieving consistent data throughput measurements An ...

Page 11: ...s functioning properly Figure 18 Internet Protocol Properties Window 4 Select Use the following IP address and specify an IP address and subnet mask for the PC For a subnet mask of 255 255 255 0 the embedded system s IP address must match the first three octets of the PC s IP address for the PC to recognize the embedded system See Section for additional information about choosing the embedded syst...

Page 12: ...sses with addi tional 1s such as 10 10 255 255 Figure 20 can be broadcast to nodes outside the local network 4 The address 255 255 255 255 is known as the Ethernet broadcast address and is used when the Subnet mask for the network is not known Any packet transmitted to this address will reach all nodes on the local network but cannot go further than the nearest router IP Address Selection Example ...

Page 13: ...CP2201 EK Rev 0 1 13 APPENDIX B SCHEMATIC ...

Page 14: ...d features or parameters Silicon Laboratories reserves the right to make changes without further notice Silicon Laboratories makes no warranty rep resentation or guarantee regarding the suitability of its products for any particular purpose nor does Silicon Laboratories assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and all liabi...

Reviews: