5.2.3 Run the PINGME.C Demo
Connect the crossover cable from your computer ’s Ethernet port to the CPU Card’s RJ-45
Ethernet connector. Open this sample program from the SAMPLES\TCPIP\ICMP folder,
compile the program, and start it running under Dynamic C. When the program starts run-
ning, the green LNK light on the CPU Card should be on to indicate that an Ethernet con-
nection is made. (Note: If the LNK light does not light, you may not have a crossover
cable, or if you are using a hub perhaps the power is off on the hub.)
The next step is to ping the board from your PC. This can be done by bringing up the MS-
DOS window and running the ping program:
ping 10.10.6.100
or by Start > Run
and typing the command
ping 10.10.6.100
Notice that the orange ACT light flashes on the CPU Card while the ping is taking place,
and indicates the transfer of data. The ping routine will ping the board four times and write
a summary message on the screen describing the operation.
5.2.4 Additional Demo Programs
The program SMTP.C ( SAMPLES\SMRTSTAR\TCPIP ) demonstrates a basic Smart
Star system using the SMTP library to send an e-mail when a keypress is detected on an
LCD/keypad module. In order to run this sample program, edit the IP address as for the
pingme program, edit the “mail to” e-mail address, compile the program, and start it exe-
cuting. An e-mail corresponding to the keypad button that was pressed is sent.
The program SSI.C ( SAMPLES\SMRTSTAR\TCPIP ) demonstrates how to make the
Smart Star CPU Card a Web server. This program allows you to turn the LEDs on an
attached LCD/keypad module on and off from a remote Web browser. In order to run these
sample programs, edit the IP address as for the pingme program, compile the program, and
start it executing. Then bring up your Web browser and enter the following server address:
http://10.1.1.2. This should bring up the Web page served by the sample program.
The program SSI2.C ( SAMPLES\SMRTSTAR\TCPIP ) demonstrates the use of I/O
cards via instructions sent from a Web browser. You will need an A/D Converter Card, a
D/A Converter Card, or a relay card installed on the backplane in order for the Web
browser to be able to initiate changes on one or more of these I/O cards. Before you run
this sample program, edit the IP address as for the pingme program, compile the program,
and start it executing. The analog outputs will change or the relays will open and close in
response to instructions sent from the Web browser.
User ’s Manual
55
相关PDF资料
101-0545 PROTOTYPING BOARD FOR LP3500
101-0563 RCM3400 PROTO BOARD
101-0589 CLONING BOARD RABBIT
101-0688 CARD D/A EXPANSION RN1300
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
相关代理商/技术参数
101-0507 功能描述:模块化系统 - SOM RCM3000 RABBITCORE 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
101-0508 功能描述:模块化系统 - SOM RCM3010 RABBITCORE 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
101050-9 制造商:RUKO 功能描述:Bulk 制造商:RUKO 功能描述:STEP DRILL 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM; Drill Bit Size Metric:4mm; Overall Length:65mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 12mm; Shank Dia:6mm; Step:1mm ;RoHS Compliant: NA
101050BO 制造商:TE Connectivity 功能描述:
101051 制造商:RUKO 功能描述:STEP DRILL 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM; Drill Bit Size Metric:4mm; Overall Length:75mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 20mm; Shank Dia:8mm; Step:2mm ;RoHS Compliant: NA
10-105108-03G 制造商:Amphenol Aerospace 功能描述:10-105108-03G
10-105108-03P 制造商:Amphenol Aerospace 功能描述:10-105108-03P
10-105108-04P 制造商:Amphenol Aerospace 功能描述:10-105108-04P