最近传输视频想实现点对点通信,不经过路由器,在网上找了一些资料最后实现了这个程序。
程序的功能是,利用iphone和tiny6410实现无限网卡的点对点通信。
本文的目的是让大家了解嵌入式linux下无线网卡创建点对点通信的网络节点。
无线网卡是水星的WM54U ,驱动是tiny6410下2.6.36内核自带的ath9k。
以下命令是实现创建无线网卡点对点通信的网络节点,网络节点名称为arm:
scan-wifi
ifconfig wlan0 down
iwconfig wlan0 mode ad-hoc essid arm
ifcongfig wlan0 up
ifconfig wlan0 192.168.1.131
下面的截图为程序的演示截图

tiny6410加无线网卡

无线网卡连接截图

iphone 端程序截图

程序接收截图
程序的代码就是标准的C语言的udp传输程序。
我的邮箱:gfpeak@gmail.com 转载请注明出处:http://blog.csdn.net/gfocean