TCP

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:131KB
下载次数:13
上传日期:2009-02-16 18:05:02
上 传 者why1988seu
说明:  实现了C8051F340单片机依据TCP协议传输数据
(C8051F340 realize a single-chip based on TCP protocol to transmit data)

文件列表:
TCP\Application\Source\tcp_cli.cpp (3619, 2007-09-07)
TCP\Application\Source\tcp_svr.cpp (4105, 2007-09-07)
TCP\Application\Source\wsedesc.cpp (4453, 2007-09-07)
TCP\Application\tcp_cli.exe (34816, 2007-09-07)
TCP\Application\tcp_svr.exe (34304, 2007-09-07)
TCP\Firmware\c8051F340.h (16486, 2007-09-07)
TCP\Firmware\Cleanup.bat (184, 2007-09-07)
TCP\Firmware\main.c (12343, 2007-09-07)
TCP\Firmware\mn_callback.c (5929, 2007-09-07)
TCP\Firmware\mn_defs.h (3826, 2007-09-07)
TCP\Firmware\mn_errs.h (4814, 2007-09-07)
TCP\Firmware\mn_funcs.h (2864, 2007-09-07)
TCP\Firmware\mn_stackconst.h (3698, 2007-09-07)
TCP\Firmware\MN_STACK_BANK_037.LIB (64852, 2007-09-07)
TCP\Firmware\MN_STACK_COMMON_037.LIB (218610, 2007-09-07)
TCP\Firmware\mn_userconst.h (4732, 2007-09-07)
TCP\Firmware\mn_vars.c (4951, 2007-09-07)
TCP\Firmware\Rel_Notes.txt (839, 2007-09-07)
TCP\Firmware\Startup.a51 (4053, 2007-09-07)
TCP\Firmware\TCP.wsp (41116, 2007-09-07)
TCP\Application\Source (0, 2009-01-18)
TCP\Application (0, 2009-01-18)
TCP\Firmware (0, 2009-01-18)
TCP (0, 2009-01-18)

Test programs to be run against Silicon Laboratories ETHERNET-DK TCP Examples ============================================================================= There are two winsock programs that can be used on Win95 or higher to run against the Silicon Laboratories ETHERNET-DK TCP Examples. tcp_cli.exe - TCP echo client tcp_svr.exe - TCP echo server A brief desciption of their usage follows. For both of the programs, if PPP or SLIP is used, a PPP or SLIP connection must be established first using the Windows Dialup Networking. This is not necessary if using ethernet. TCP_CLI ======= The TCP example should be set up as a TCP echo server (SERVER_MODE = 1). Run code on the C8051F120 first then TCP_CLI. TCP_CLI will send out a string and wait for ETHERNET-DK to echo it back. TCP_CLI will then take the received string and send it to ETHERNET-DK and so forth. TCP_CLI optionally takes one parameter, the destination IP address. The default IP address is 216.233.5.26. To use a different IP address, enter TCP_CLI followed by the same IP address in dot format. Lets say ip_src_addr in mn_userconst.h was changed to 192.168.1.5, then on the PC you would use: TCP_CLI 192.168.1.5 TCP_SVR ======= The TCP example should be set up as a TCP echo client (SERVER_MODE = 0). Start TCP_SVR first, then run code on the C8051F120. TCP_SVR will wait for ETHERNET-DK to send a string, then echo the received string back to ETHERNET-DK. ETHERNET-DK will then take the string from TCP_SVR and send it back and so forth. TCP_SVR does not take any parameters.

近期下载者

相关文件


收藏者