参数资料
型号: 20-101-0435
厂商: Rabbit Semiconductor
文件页数: 55/100页
文件大小: 0K
描述: MODULE RABBITCORE RCM2110
标准包装: 1
系列: RabbitCore®
模块/板类型: MPU 核心模块
适用于相关产品: RCM2110
产品目录页面: 620 (CN2011-ZH PDF)
其它名称: 316-1086
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.
相关PDF资料
PDF描述
345-030-527-801 CARDEDGE 30POS DUAL .100 GREEN
AT25640N-10SI-2.7 IC EEPROM 64KBIT 3MHZ 8SOIC
345-030-527-204 CARDEDGE 30POS DUAL .100 GREEN
AT25640-10PI-2.7 IC EEPROM 64KBIT 3MHZ 8DIP
345-030-527-202 CARDEDGE 30POS DUAL .100 GREEN
相关代理商/技术参数
参数描述
20-101-0436 功能描述:模块化系统 - SOM RCM2120 RabbitCore Module RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
20-101-0437 功能描述:子卡和OEM板 SR9205 16 in/8 out RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
20-101-0439 功能描述:模块化系统 - SOM SR9215 SRC 8IN 16OUT RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
20-101-0440 功能描述:模块配件 SR9510 Relay 8 RoHS:否 制造商:Lantronix 产品: 用于:
20-101-0444 功能描述:子卡和OEM板 SR9320 A/D 4-20mA RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit