參數(shù)資料
型號(hào): 101-0452
廠商: Rabbit Semiconductor
文件頁數(shù): 55/100頁
文件大小: 0K
描述: KIT DEV RABBIT RCM2100 INTL
標(biāo)準(zhǔn)包裝: 1
系列: RabbitCore 2000
主要目的: *
嵌入式: *
已用 IC / 零件: HYDRA
主要屬性: *
次要屬性: *
已供物品: HYDRA 裝置,存儲(chǔ)卡,空白試驗(yàn)卡,鼠標(biāo),鍵盤,游戲鍵盤,視頻和 USB 線纜,電源和 CD 等
52
RabbitCore RCM2100
6.8 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. Instead of the MY_IP_ADDRESS and other macros, 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_NETMASK
, 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 RCM2100 board, and 10.1.1.1 for your PC, you can edit
the values in the section that directly follows the “General Configuration” comment 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 file.
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_CONFIG.LIB
library. More information is available in the Dynamic C TCP/IP
User’s Manual.
IP Addresses Before Dynamic C 7.30
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 gateway, if there is a gateway.
#define MY_IP_ADDRESS "10.10.6.170"
#define MY_NETMASK "255.255.255.0"
#define MY_GATEWAY "10.10.6.1"
#define MY_NAMESERVER "10.10.6.1"
In order to do a direct connection, the following IP addresses can be used for the RCM2100:
#define MY_IP_ADDRESS "10.1.1.2"
#define MY_NETMASK "255.255.255.0"
// #define MY_GATEWAY "10.10.6.1"
// #define MY_NAMESERVER "10.10.6.1"
In this case, the gateway and nameserver are not used, and are commented out. The IP
address of the board is defined to be 10.1.1.2. The IP address of your PC can be defined
as 10.1.1.1.
相關(guān)PDF資料
PDF描述
VE-J7X-EZ-F1 CONVERTER MOD DC/DC 5.2V 25W
EVAL-ADF4360-8EBZ1 BOARD EVALUATION FOR ADF4360-8
VE-J7X-EY-S CONVERTER MOD DC/DC 5.2V 50W
MCP73213-B6SI/MF IC LI-ION/LI-POLY CTRLR 10-DFN
VE-J7W-EZ-F4 CONVERTER MOD DC/DC 5.5V 25W
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
10-104520-08P 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-08S 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-16P 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-16S 制造商:Amphenol Aerospace 功能描述:PLUG
10-104520-25S 制造商:Amphenol Aerospace 功能描述:PLUG