Linux_serial_network_src
所属分类:串口编程
开发工具:LINUX
文件大小:16KB
下载次数:91
上传日期:2004-09-30 20:53:19
上 传 者:
liqinliqin
说明: 串口上网的例子,我们的老师发表的
(example, we published the teachers)
文件列表:
Linux_serial_network_src (0, 2003-11-23)
Linux_serial_network_src\server (15304, 2003-11-23)
Linux_serial_network_src\Makefile.24 (208, 2003-11-23)
Linux_serial_network_src\Makefile.20 (236, 2003-11-23)
Linux_serial_network_src\Makefile (208, 2003-11-23)
Linux_serial_network_src\ed_unload (58, 2003-11-23)
Linux_serial_network_src\ed_load.bak (160, 2003-11-23)
Linux_serial_network_src\ed_ioctl.h (149, 2003-11-23)
Linux_serial_network_src\ed_device.c (18033, 2003-11-23)
Linux_serial_network_src\server.c (8468, 2003-11-23)
Linux_serial_network_src\ed_device.h (1020, 2003-11-23)
Linux_serial_network_src\ed_load (157, 2003-11-23)
You can modify and distribute this source code freely.
Copyright (C) 2003 Li Suke,Software School of Peking University.
1. Compile the project
If you use Linux kernel 2.2.*, you should use make -f Makefile.20
to compile the project;
[root@localhost]#make -f Makefile.20
if you use Linux kernel 2.4.*, just input make command.
[root@localhost]#make.
2. load the module
First, creat the character devices:
[root@localhost]#mknod /dev/ed_rec c 200 0
[root@localhost]#mknod /dev/ed_tx c 201 0
then, let the ed_load and ed_unload can execute:
[root@localhost]#chmod +x ed_unload
[root@localhost]#chmod +x ed_load
last, load the driver:
[root@localhost]#./ed_load
You can change the IP address in ed_load script file
3. run server
[root@localhost]#./server
now you can use the ed0 device and send and receive data
through it.:)
近期下载者:
相关文件:
收藏者: