72
RabbitCore RCM4000
6.4.1 How to Set IP Addresses in the Sample Programs
With the introduction of Dynamic C 7.30 we have taken steps to make it easier to run
many of our sample programs. You will see a
TCPCONFIG
macro. This macro tells
Dynamic C to select your configuration from a list of default configurations. You will
have three choices when you encounter a sample program with the
TCPCONFIG
macro.
1. You can replace the
TCPCONFIG
macro with individual
MY_IP_ADDRESS
,
MY_NET-
MASK
,
MY_GATEWAY
, and
MY_NAMESERVER
macros in each program.
2. You can leave
TCPCONFIG
at the usual default of 1, which will set the IP configurations
to
10.10.6.100
, the netmask to
255.255.255.0
, and the nameserver and gateway
to
10.10.6.1
. If you would like to change the default values, for example, to use an IP
address of
10.1.1.2
for the RCM4000 module, and
10.1.1.1
for your PC, you can
edit the values in the section that directly follows the “General Configuration” com-
ment in the
TCP_CONFIG.LIB
library. You will find this library in the
LIB\TCPIP
directory.
3. You can create a
CUSTOM_CONFIG.LIB
library and use a
TCPCONFIG
value greater
than 100. Instructions for doing this are at the beginning of the
TCP_CONFIG.LIB
library in the
LIB\TCPIP
directory.
There are some other “standard” configurations for
TCPCONFIG
that let you select differ-
ent features such as DHCP. Their values are documented at the top of the
TCP_CON-
FIG.LIB
library in the
LIB\TCPIP
directory. More information is available in the
Dynamic C TCP/IP User’s Manual
.
Summary of Contents for RabbitCore RCM4000
Page 6: ...RabbitCore RCM4100...
Page 12: ...6 RabbitCore RCM4000...
Page 20: ...14 RabbitCore RCM4000...
Page 46: ...40 RabbitCore RCM4000...
Page 68: ...62 RabbitCore RCM4000...
Page 82: ...76 RabbitCore RCM4000...
Page 96: ...90 RabbitCore RCM4000...
Page 114: ...108 RabbitCore RCM4000...
Page 118: ...112 RabbitCore RCM4000...
Page 122: ...116 RabbitCore RCM4000...
Page 124: ......