background image

4–4

Using the TCP/IP Features

RabbitCore RCM2200

leaves 256 - 3 = 253 available IP addresses for the 
example given.

4.4

How IP Addresses are Used

The actual hardware connection via an Ethernet 
uses Ethernet adapter addresses (also called  MAC 
addresses.)  These are 48-bit addresses and are 
unique for every Ethernet adapter manufactured. In 
order to send a packet to another computer, given 
the IP address of the other computer, it is first deter-
mined if the packet needs to be sent directly to the 
other computer or to the gateway. In either case, 
there is an IP address on the local network to which 
the packet must be sent. A table is maintained to 
allow the protocol driver to determine the MAC 
address corresponding to a particular IP address. If 
the table is empty, the MAC address is determined 
by sending an Ethernet broadcast packet to all 
devices on the local network asking the device with 
the desired IP address to answer with its MAC 
address. In this way, the table entry can be filled in. 
If no device answers, then the device is nonexistent 
or inoperative, and the packet cannot be sent.

IP addresses are arbitrary and can be allocated as 
desired provided that they don’t conflict with other 
IP addresses. However, if they are to be used with 
the Internet, then they must be numbers that are 
assigned to your connection by proper authorities, 
generally by delegation via your service provider.

4.5

Dynamically Assigned 
Internet Addresses

In many instances, IP addresses are assigned tempo-
rarily. This the normal procedure when you use a 
dial-up Internet service provider (ISP). Your system 
will be provided with an IP address that it can use to 
send and receive packets. This IP address will only 
be valid for the duration of the call, and further may 
not actually be a real Internet IP address. Such an 
address works for browsing the Web, but cannot be 
used for transactions originating elsewhere since no 
other system has any way to know the Internet 
address except by first receiving a packet from you. 

(If you want to find the IP address assigned by a 
dial-up ISP, run the program 

winipcfg

 while con-

nected and look at the address for the ppp adapter 
under Windows 98.)

In a typical corporate network that is isolated from 
the Internet by a firewall and/or proxy server using 
address translation, the IP addresses are not usually 
actual Internet addresses and may be assigned stati-
cally or dynamically. If they are assigned statically, 
you only have to get an unused IP address and 
assign it to the RCM2200 board. If the IP addresses 
are assigned dynamically, they you will have to get 
an IP address that is valid but outside of the range of 
IP addresses that are assigned dynamically. This 
will enable you to communicate from a PC on the 
network to the RCM2200 board. If you want to 
communicate to the RCM2200 board from the 
external Internet, then an actual Internet IP address 
must be assigned to the RCM2200 board. It may be 
possible to setup the firewall to pass a real IP 
address, or it may be necessary to connect the 
RCM2200 board in front of the firewall to accom-
plish this.

4.6

How to Set IP Addresses in 
the Sample Programs

Most of the sample programs such as shown in the 
example below use macros to define the IP address 
assigned to the board and the IP address of the gate-
way, if there is a gateway.

#define MY_IP_ADDRESS 

"216.112.116.155"

#define MY_NETMASK 

"255.255.255.248"

#define MY_GATEWAY 

"216.112.116.153"

In order to do a direct connection the following IP 
addresses can be used for the RCM2200 board:

#define MY_IP_ADDRESS "10.1.1.2"

#define MY_NETMASK 

"255.255.255.248"

// #define MY_GATEWAY 

"216.112.116.153"

Содержание RCM2200

Страница 1: ...RabbitCore RCM2200 C Programmable Module with Ethernet Getting Started Manual 019 0096 010501 B...

Страница 2: ...to perform when properly used in accordance with instruc tions for use provided in the labeling and user s manual can be reasonably expected to result in significant injury No complex software or har...

Страница 3: ...duct Information 1 3 1 3 2 Additional Reference Information 1 3 1 3 3 Using Online Documentation 1 3 2 Hardware Setup 2 1 Development Kit Contents 2 1 2 2 Overview of the Prototyping Board 2 2 2 2 1 P...

Страница 4: ...s 3 3 3 4 Starting Dynamic C 3 4 3 4 1 Communication Error Messages 3 4 3 5 Sample Programs 3 4 4 Using the TCP IP Features 4 1 TCP IP Connections 4 1 4 2 Running TCP IP Sample Programs 4 1 4 3 IP Add...

Страница 5: ...ng with data address and control lines A fourth serial port and three additional I O lines are available on the pro gramming header A fully enabled slave port permits glueless master slave interface w...

Страница 6: ...or these connectors are shown in Figure 1 1 below Table 1 1 RCM2200 specifications Specification Data Power Supply 4 75 5 25 VDC 134 mA at 22 1 MHz clock speed Size 2 3 x 1 6 x 0 86 inches 59 x 41 x 2...

Страница 7: ...at Some advanced users may choose to skip the rest of this introductory manual and proceed directly with the detailed hardware and software information in the User s manual TIP We recommend that anyon...

Страница 8: ...t versions of all documents are always available for free unregistered download from our web sites as well Printing Electronic Manuals We recognize that many users prefer printed manu als for some use...

Страница 9: ...evelopment setup 2 1 Development Kit Contents The RCM2200 Development Kit contains the fol lowing items RabbitCore 2200 module with Ethernet port 256k flash memory and 128k SRAM RCM2200 Prototyping Bo...

Страница 10: ...Power Supply The raw DC voltage provided at the POWER IN jack is routed to a 5 volt linear voltage regulator which provides stable power to the RabbitCore module and the Prototyp ing Board A Shottky...

Страница 11: ...ved for future use although the sche matics in this manual contain all of the details an experienced developer will need to implement a master slave system Figure 2 1 The RCM2200 Prototyping Board RCM...

Страница 12: ...ibbon cable leading to a stan dard DE 9 serial connector All RS 232 port components mount to the underside of the Prototyping Board between the Master module connectors NOTE The RS 232 chip capacitors...

Страница 13: ...and J5 into sockets J1 and J2 on the Prototyping Board Although you can install a single module into either the Master or Slave position all of the development board features switches LEDs serial por...

Страница 14: ...Figure 2 5 Be sure to orient the marked usually red edge of the cable towards pin 1 of the connector Do not use the DIAG connector which is used for a normal serial connection Connect the other end o...

Страница 15: ...al network before connecting a RabbitCore system to the Internet TIP Checking and debugging the initial setup on a micro LAN is rec ommended before connecting the system to a LAN or WAN 2 3 4 Connect...

Страница 16: ...topics refer to the Dynamic C User s Manual and the Dynamic C TCP IP User s Manual also in the online documentation set 2 4 1 Technical Support If you encounter any problems call our Technical Support...

Страница 17: ...Dynamic C does not use an In Circuit Emula tor programs being developed are downloaded to and executed from the target system via an enhanced serial port connection Program develop ment and debugging...

Страница 18: ...ems Windows 95 Windows 98 Windows NT Windows ME Windows 2000 3 2 1 Hardware Requirements The PC on which you install Dynamic C for devel opment of RCM2200 based systems should have the following hardw...

Страница 19: ...nstalled in the specified folder default Compact Installation Only Dynamic C will be installed Custom Installation You will be allowed to choose which components are installed This choice is useful to...

Страница 20: ...a dif ferent COM port within Dynamic C From the Options menu select Communications The dialog shown should appear Select another COM port from the list then click OK Press Ctrl Y to force Dynamic C to...

Страница 21: ...ties of the RabbitCore RCM2200 modules They form a learning arc from basic I O control to advanced TCP IP issues including web serving FlashLED c ToggleLED c FlashLEDs c PingLED c EthCore1 c Each of t...

Страница 22: ...3 6 Software Installation Overview RabbitCore RCM2200...

Страница 23: ...ou do not have access to an Ethernet network use a crossover Ethernet cable to connect the RCM2200 board to a PC with at least a 10Base T Ethernet card If you have Ethernet access use a straight Ether...

Страница 24: ...oducts Thus you should have different ranges of IP addresses on your private net work from those used on the corporate network If both networks service the same IP address then Windows may send a pack...

Страница 25: ...by periods for example 216 103 126 155 10 1 1 6 Each decimal number must be between 0 and 255 The total IP address is a 32 bit number consisting of the 4 bytes expressed as shown above A local net wo...

Страница 26: ...r the duration of the call and further may not actually be a real Internet IP address Such an address works for browsing the Web but cannot be used for transactions originating elsewhere since no othe...

Страница 27: ...r for different versions of Windows such as 95 NT or 2000 4 8 Run the PINGME C Demo In order to run this program edit the IP address and netmask in the PINGME C program SAMPLES TCPIP ICMP to the value...

Страница 28: ...RXSAMPLE C SAM PLES TELNET allows you to communicate with the RCM2200 board using the Telnet protocol To run this program edit the IP address compile the program and start it running Run the Telnet p...

Страница 29: ...Getting Started Manual Schematics 1 Schematics The following schematics are included for user reference 090 0120 RabbitCore RCM2200 090 0122 RCM2200 Prototyping Board 090 0085 Programming Cable...

Страница 30: ...N CHANGING CONTROL APPROVAL PROJECT ENGINEER APPROVAL DOCUMENT REV ECO DESCRIPTION OF CHANGE REVISION HISTORY REVISION APPROVAL DATE DATE DRAWING CONTENT SIGNATURES DATE C APPROVALS INITIAL RELEASE NO...

Страница 31: ...C NONE...

Страница 32: ...CHANGING ECO APPROVAL APPROVAL CONTROL DOCUMENT DATE REVISION HISTORY ENGINEER PROJECT DATE REV DESCRIPTION REVISION APPROVAL NONE DATE B DRAWING CONTENT APPROVALS INITIAL RELEASE SIGNATURES 2900 SPA...

Страница 33: ...ALS INITIAL RELEASE DRAWING CONTENT B 2900 SPAFFORD ST DAVIS CA 95616 ZWORLD DATE NONE 530 757 4616 THIS DOCUMENT APPEND THE FOLLOWING DOCUMENTS WHEN CHANGING ECO APPROVAL APPROVAL CONTROL DOCUMENT DA...

Страница 34: ......

Отзывы: