参数资料
型号: 101-0392
厂商: Rabbit Semiconductor
文件页数: 53/184页
文件大小: 0K
描述: CARD A/D 0-10V SR9300 SMARTSTAR
标准包装: 10
附件类型: Smart Star A/D 卡
适用于相关产品: SR9300
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页当前第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页
5.2 TCP/IP Sample Programs
We have provided a number of sample programs demonstrating various uses of TCP/IP for
networking embedded systems. These programs require that you connect your PC and the
Smart Star together on the same network. This network can be a local private network
(preferred for initial experimentation and debugging), or a connection via the Internet.
5.2.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_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 CPU Card, 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
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_CONFIG.LIB library in the LIB\TCPIP directory. 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 use macros to define the IP address assigned to the CPU Card
and the IP address of the gateway, if there is a gateway. Instead of the TCPCONFIG macro,
you will see a MY_IP_ADDRESS macro and other macros.
#define
#define
#define
#define
MY_IP_ADDRESS "10.10.6.170"
MY_NETMASK "255.255.255.0"
MY_GATEWAY "10.10.6.1"
MY_NAMESERVER "10.10.6.1"
In order to do a direct connection, the following IP addresses can be used for the CPU Card:
#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 CPU Card is defined to be 10.1.1.2 . The IP address of you PC can be
defined as 10.1.1.1 .
User ’s Manual
53
相关PDF资料
PDF描述
255103-01-12.00 CABLE ASSY STR PLUG RG316 12"
135111-04-06.00 CBL SMA R/A PLUG-JACK RG58 6"
ECC30DRTF CONN EDGECARD 60POS DIP .100 SLD
135104-04-06.00 CABLE SMA R/A PLUG-PLUG RG58 6"
101-0444 CARD A/D 4-20MA SR9320 SMARTSTAR
相关代理商/技术参数
参数描述
10103927-3110LF 制造商:FCI 功能描述:Cable Assembly SATA 0.11m SATA to SATA PL-PL Bag
101-0393 功能描述:子卡和OEM板 SR9400 D/A Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
101-0394 功能描述:子卡和OEM板 SR9410 D/A Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
101-0395 功能描述:单板计算机 SR9500 Relay 6 RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
10103955-001RLF 制造商:FCI 功能描述:ANTENNA Y06 PACKAGED - Tape and Reel