简体   繁体   English

将WiFi加密狗与Beaglebone Black集成

[英]Integrating WiFi Dongle with Beaglebone Black- Issue

I am working on beaglebone black trying to integrate TP link TL-WN721N Wifi dongle which uses atheros driver. 我正在研究beaglebone black,试图集成使用atheros驱动程序的TP链接TL-WN721N Wifi软件狗。 I am using linux 3.2 kernel with ti-sitara rootfs 我在ti-sitara rootfs中使用linux 3.2内核

The problem is when is type the command 问题是何时键入命令

  wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf

it shows Successfully initialised wpa_supplicant 它显示成功初始化了wpa_supplicant

but it gets stuck there and i have to give ctrl+c to exit from that ,after that i gave 但是它卡在那里,我必须给ctrl + c退出,之后我给了

 ifup wlan0

the response was 回应是

  Sending discover...
  Sending discover...
  Sending discover...
  No lease, failing

after this I repeated the step for wpa_supplicant this time also it gets stuck and when I gave 在此之后,我这次再次为wpa_supplicant重复了步骤,它也卡住了,当我给

ifup wlan0 ifup wlan0

this time it got the IP and was able to ping.......... 这次它获得了IP并且能够ping ..........

This cycles were seemed to repeat when I tried connecting any-other wifi networks ie: wpa_supplicant gets stuck two times and on the second attempt of ifup wlan0 only i will be able to get IP 当我尝试连接任何其他wifi网络时,似乎重复了该周期, 即:wpa_supplicant被卡住两次,并且在ifup wlan0的第二次尝试中,我只能获得IP

here is my /etc/wpa_supplicat.conf file 这是我的/etc/wpa_supplicat.conf文件

network={ 网络= {

  ssid="UTStarcom" #psk="123force" psk=44d83e5c96bd39f47b54625d80b80c79d5b14430d424fdf6636365901b01ab14 

} }

and my /etc/network/interfaces 和我的/ etc / network / interfaces

  auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.2.30 netmask 255.255.255.0 gateway 192.168.2.1 allow-hotplug wlan0 auto wlan0 iface wlan0 inet dhcp wpa-driver wext wpa-conf /etc/wpa_supplicant.conf 

Can you suggest any solutions for this isuue? 您能为此问题提出任何解决方案吗?

No! 没有! Don't Ctrl+C to terminate the wpa_supplicant, it is the daemon there to help you keep connection with the AP and exchange new keys with AP. 请勿Ctrl + C终止wpa_supplicant,它是守护程序,可帮助您保持与AP的连接并与AP交换新密钥。 Try run wpa_supplicant with -B to make it run in background. 尝试使用-B运行wpa_supplicant,使其在后台运行。

You may also consider add control interface and control it over wpa-cli. 您也可以考虑添加控制界面并通过wpa-cli对其进行控制。

lsusb to find your usb client. lsusb查找您的USB客户。 Then, update your system. 然后,更新您的系统。 Use apt-cache search "Your USB Client". 使用apt-cache搜索“您的USB客户端”。 If you get a read-out, get back to me. 如果您得到了阅读,请与我联系。 Oh and you need to supply your BBB with the 5V jack instead of the USB to computer. 哦,您需要为BBB提供5V插孔,而不是为计算机提供USB。

Seth 赛斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM