Hello everybody, I am quite new in BBB's world and I feel stuck in a
ridiculous way as I am not able to connect BBB by WIFI, by editing
/etc/network/interfaces and as I am trying to connect with and WPA WIFI, I
ought to edit the file /etc/wpa_supplicant/wpa_supplicant.conf .
I want to have BBB WIFI and able to change SSID, PSK, IP, NETMASK.... and
so on, just using node js which modifies the interfaces and
wpa_supplicant.conf files and restarting the wlan0 interface, so tools
like wicd or connman (I used them and worked perfectly) are not the best
way as them limit the way to change settings.
I've been trying almost everything I found over Internet, with no results.
*STARTING POINT:*
- Beaglebone Black Rev C
- Distributions used:
- Debian GNU/Linux 8.3 Jessie (I rather prefer to use this)
- Kernel 4.1.15-ti-rt-r43
- Debian 8.2 Jessie (is a tester distribution so I prefer not to
use this one)
- Debian 7.9 Wheezy (If anything goes well, I wont reject using
this)
- USB WIFI Adapter TL-WN722N & AWUS036H
- WIFI with WPA2-Personal
After all, I ll show you my results about following the next guide with a
cleaned and unused Debian 8.3. http://elinux.org/BBBWiFiConfigs I know
this tuto was tested with UWN100/200 USB WIFI adapter and with a Debian
7.4. Despite all I ll try it...
1. First of all I checked my ethernet connection is running with Connman.
*connmanctl> services*
**AO Wired ethernet_689e19571caf_cable*
* Wired gadget_689e19571ca0_usb*
*connmanctl> technologies*
*/net/connman/technology/gadget*
* Name = Gadget*
* Type = gadget*
* Powered = True*
* Connected = False*
* Tethering = False*
*/net/connman/technology/ethernet*
* Name = Wired*
* Type = ethernet*
* Powered = True*
* Connected = True*
* Tethering = False*
2. As said in General Instructions I didn't plug the WiFi device and all
steps are performed as root user.
3. Create file /etc/wpa_supplicant/wpa_supplicant.conf with WPA settings.
Inside the speech-marks I put my SSID and PKS (aplhanumeric not hexadecimal)
*ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="my-ssid"
scan_ssid=1
psk="my-psk"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}*
4. I saved the file.
5. Lets go to identify my interface name, first :
ifconfig -a
*can0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00*
* NOARP MTU:16 Metric:1*
* RX packets:0 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:0 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:10*
* RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)*
* Interrupt:208*
*can1 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00*
* NOARP MTU:16 Metric:1*
* RX packets:0 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:0 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:10*
* RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)*
* Interrupt:209*
*eth0 Link encap:Ethernet HWaddr 68:9e:19:57:1c:af*
* inet addr: XXX.XXX.X.XXX Bcast:XXX.XXX.X.XXX
Mask:XXX.XXX.XXX.X*
* inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link*
* UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1*
* RX packets:6213 errors:0 dropped:214 overruns:0 frame:0*
* TX packets:201 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:414458 (404.7 KiB) TX bytes:22737 (22.2 KiB)*
* Interrupt:177*
*lo Link encap:Local Loopback*
* inet addr:127.0.0.1 Mask:255.0.0.0*
* inet6 addr: ::1/128 Scope:Host*
* UP LOOPBACK RUNNING MTU:65536 Metric:1*
* RX packets:166 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:166 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:0*
* RX bytes:13488 (13.1 KiB) TX bytes:13488 (13.1 KiB)*
*usb0 Link encap:Ethernet HWaddr 68:9e:19:57:1c:a0*
* inet addr:XXX.XXX.X.X Bcast:XXX.XXX.X.X Mask:XXX.XXX.XXX.XXX*
* inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link*
* UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1*
* RX packets:1774 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:364 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:289822 (283.0 KiB) TX bytes:70087 (68.4 KiB)*
6. Then I plug the USB Adapter TL-WN722N and repeat ifconfig -a, and show
the text before and....just the same... so I decided to reboot and try
again with the USB plugged from start. And nothing happens....
7. I jumped to modify /etc/network/interfaces file, this is my default
interfaces.
*# This file describes the network interfaces available on your system*
*# and how to activate them. For more information, see interfaces(5).*
*# The loopback network interface*
*auto lo*
*iface lo inet loopback*
*# The primary network interface*
*#auto eth0*
*#iface eth0 inet dhcp*
*# Example to keep MAC address between reboots*
*#hwaddress ether DE:AD:BE:EF:CA:FE*
*# The secondary network interface*
*#auto eth1*
*#iface eth1 inet dhcp*
*# WiFi Example*
*#auto wlan0*
*#iface wlan0 inet dhcp*
*# wpa-ssid "essid"*
*# wpa-psk "password"*
*# Ethernet/RNDIS gadget (g_ether)*
*# Used by: /opt/scripts/boot/autoconfigure_usb0.sh*
*iface usb0 inet static*
* address 192.168.7.2*
* netmask 255.255.255.252*
* network 192.168.7.0*
* gateway 192.168.7.1*
8. I saw that interface wlan0 is commented, maybe thats why iwconfig says:
*root@beaglebone:/etc/wpa_supplicant# iwconfig -a*
*-a No such device*
and ifconfig doesn't show anything similar to wlan0.
9. I ll modify interfaces unccomented just WiFi Example, this is my new
interfaces.
*# This file describes the network interfaces available on your system*
*# and how to activate them. For more information, see interfaces(5).*
*# The loopback network interface*
*auto lo*
*iface lo inet loopback*
*# The primary network interface*
*#auto eth0*
*#iface eth0 inet dhcp*
*# Example to keep MAC address between reboots*
*#hwaddress ether DE:AD:BE:EF:CA:FE*
*# The secondary network interface*
*#auto eth1*
*#iface eth1 inet dhcp*
*# WiFi Example*
*auto wlan0*
*#iface wlan0 inet dhcp*
*# wpa-ssid "essid"*
*# wpa-psk "password"*
*# Ethernet/RNDIS gadget (g_ether)*
*# Used by: /opt/scripts/boot/autoconfigure_usb0.sh*
*iface usb0 inet static*
* address 192.168.7.2*
* netmask 255.255.255.252*
* network 192.168.7.0*
* gateway 192.168.7.1*
10. Now I can reboot or sudo /etc/init.d/networking restart , I'll reboot
to be more confident, later I would use allow-hotplug wlan0 line, lets
check. After rebooting shows:
*root@beaglebone:~# ifconfig -a*
*can0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00*
* NOARP MTU:16 Metric:1*
* RX packets:0 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:0 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:10*
* RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)*
* Interrupt:208*
*can1 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00*
* NOARP MTU:16 Metric:1*
* RX packets:0 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:0 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:10*
* RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)*
* Interrupt:209*
*eth0 Link encap:Ethernet HWaddr 68:9e:19:57:1c:af*
* inet addr:XXX.XXX.X.XXX Bcast:XXX.XXX.X.XXX Mask:XXX.XXX.XXX.X*
* inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link*
* UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1*
* RX packets:589 errors:0 dropped:17 overruns:0 frame:0*
* TX packets:87 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:44204 (43.1 KiB) TX bytes:14961 (14.6 KiB)*
* Interrupt:177*
*lo Link encap:Local Loopback*
* inet addr:127.0.0.1 Mask:255.0.0.0*
* inet6 addr: ::1/128 Scope:Host*
* UP LOOPBACK RUNNING MTU:65536 Metric:1*
* RX packets:166 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:166 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:0*
* RX bytes:13603 (13.2 KiB) TX bytes:13603 (13.2 KiB)*
*usb0 Link encap:Ethernet HWaddr 68:9e:19:57:1c:a0*
* inet addr:XXX.XXX.X.X Bcast:XXX.XXX.X.X Mask:XXX.XXX.XXX.XXX*
* inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link*
* UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1*
* RX packets:655 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:253 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:79361 (77.5 KiB) TX bytes:54083 (52.8 KiB)*
*wlan0 Link encap:Ethernet HWaddr 00:c0:ca:3e:13:69*
* BROADCAST MULTICAST MTU:1500 Metric:1*
* RX packets:0 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:0 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)*
AND
*root@beaglebone:~# iwconfig*
*wlan0 IEEE 802.11bg ESSID:off/any*
* Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm*
* Retry short limit:7 RTS thr:off Fragment thr:off*
* Encryption key:off*
* Power Management:on*
*lo no wireless extensions.*
*eth0 no wireless extensions.*
*usb0 no wireless extensions.*
*can0 no wireless extensions.*
*can1 no wireless extensions.*
11. No wlan0 is showed up, next step, modify /etc/network/interfaces file
as shown in tutorial: They say to place these four lines at the top of the
file.... TOP ? is this necessary, I ll do it whatever I believe that order
doesn't mean to change nothing.
*allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp*
I will comment with # auto wlan0 before too, not to create any
conflict?¿?¿? The final interfaces file shows as...
*allow-hotplug wlan0*
*iface wlan0 inet manual*
* wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf*
*iface default inet dhcp*
*# This file describes the network interfaces available on your system*
*# and how to activate them. For more information, see interfaces(5).*
*# The loopback network interface*
*auto lo*
*iface lo inet loopback*
*# The primary network interface*
*#auto eth0*
*#iface eth0 inet dhcp*
*# Example to keep MAC address between reboots*
*#hwaddress ether DE:AD:BE:EF:CA:FE*
*# The secondary network interface*
*#auto eth1*
*#iface eth1 inet dhcp*
*# WiFi Example*
*#auto wlan0*
*#iface wlan0 inet dhcp*
*# wpa-ssid "essid"*
*# wpa-psk "password"*
*# Ethernet/RNDIS gadget (g_ether)*
*# Used by: /opt/scripts/boot/autoconfigure_usb0.sh*
*iface usb0 inet static*
* address 192.168.7.2*
* netmask 255.255.255.252*
* network 192.168.7.0*
* gateway 192.168.7.1*
12. With USB WIFI adapter inserted I run the next command:
root@beaglebone:/etc/network# ifup wlan0
Remains a little thinking and nothing happens... as said in tutorial I ll
power down safely, pressing S3 switch BBB. Unplug the Ethernet cable and
power back up.
Aaaaand ladies and gentlemen, when BBB power back again it shows like this:
<https://lh3.googleusercontent.com/-ueWF5k68MWQ/VrMgzwqgggI/AAAAAAAAAP8/lhGv3g4GhaI/s1600/IMG_20160127_112853.jpg>
USB WIFI ADAPTER IS ON but green light isn't blinking, so I know it is not
sending and recieving data.
iwconfig and ifconfig, shows....
*root@beaglebone:~# ifconfig*
*eth0 Link encap:Ethernet HWaddr 68:9e:19:57:1c:af*
* UP BROADCAST MULTICAST DYNAMIC MTU:1500 Metric:1*
* RX packets:0 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:0 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)*
* Interrupt:177*
*lo Link encap:Local Loopback*
* inet addr:127.0.0.1 Mask:255.0.0.0*
* inet6 addr: ::1/128 Scope:Host*
* UP LOOPBACK RUNNING MTU:65536 Metric:1*
* RX packets:488 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:488 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:0*
* RX bytes:38240 (37.3 KiB) TX bytes:38240 (37.3 KiB)*
*usb0 Link encap:Ethernet HWaddr 68:9e:19:57:1c:a0*
* inet addr:XXX.XXX**.X.X Bcast:XXX.XXX.X.X Mask:XXX.XXX.XXX.XXX*
* inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link*
* UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1*
* RX packets:467 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:78 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:64696 (63.1 KiB) TX bytes:20674 (20.1 KiB)*
*wlan0 Link encap:Ethernet HWaddr d8:5d:4c:87:68:6c*
* UP BROADCAST MULTICAST DYNAMIC MTU:1500 Metric:1*
* RX packets:0 errors:0 dropped:0 overruns:0 frame:0*
* TX packets:0 errors:0 dropped:0 overruns:0 carrier:0*
* collisions:0 txqueuelen:1000*
* RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)*
*root@beaglebone:~# iwconfig*
*wlan0 IEEE 802.11bgn ESSID:off/any*
* Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm*
* Retry short limit:7 RTS thr:off Fragment thr:off*
* Encryption key:off*
* Power Management:off*
*lo no wireless extensions.*
*eth0 no wireless extensions.*
*usb0 no wireless extensions.*
*can0 no wireless extensions.*
*can1 no wireless extensions.*
13. And of course if I ll do a ping:
*root@beaglebone:~# ping www.google.es*
*ping: unknown host www.google.es*
And I can scan...
*root@beaglebone:~# iwlist scan*
*wlan0 Scan completed :*
* Cell 01 - Address: 00:F8:1C:90:B9:3D*
* Channel:6*
* Frequency:2.437 GHz (Channel 6)*
* Quality=24/70 Signal level=-86 dBm*
* Encryption key:on*
* ESSID:"SERODAUTO"*
* Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s*
* 24 Mb/s; 36 Mb/s; 54 Mb/s*
* Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s*
* Mode:Master*
* Extra:tsf=000002fa7e5de4bf*
* Extra: Last beacon: 510ms ago*
* IE: Unknown: 00095345524F444155544F*
* IE: Unknown: 010882848B962430486C*
* IE: Unknown: 030106*
* IE: Unknown: 2A0100*
* IE: Unknown: 2F0100*
* IE: IEEE 802.11i/WPA2 Version 1*
* Group Cipher : TKIP*
* Pairwise Ciphers (2) : CCMP TKIP*
* Authentication Suites (1) : PSK*
* IE: Unknown: 32040C121860*
* IE: Unknown:
2D1AAC191AFFFF000000000000000000000000000000000000000000*
* IE: Unknown:
3D1606080000000000000000000000000000000000000000*
* IE: Unknown: 7F080000000000000040*
* IE: Unknown:
DD7A0050F204104A0001101044000102103B00010310470010D96C7EFC2F8938F1EFBD6E5148BFA8121021000648756177656910230006487561776569102400063132333435361042000233391054000800060050F20400011011000A453531373241532D3232100800020000103C0001011049000600372A000120*
* IE: Unknown: DD090010180200000C0000*
* IE: WPA Version 1*
* Group Cipher : TKIP*
* Pairwise Ciphers (2) : CCMP TKIP*
* Authentication Suites (1) : PSK*
* IE: Unknown:
DD180050F2020101080003A4000027A4000042435E0062322F00*
* Cell 02 - Address: 58:98:35:B4:97:C2*
* Channel:11*
* Frequency:2.462 GHz (Channel 11)*
* Quality=70/70 Signal level=-33 dBm*
* Encryption key:on*
* ESSID:"GTG_WIFI"*
* Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s*
* 24 Mb/s; 36 Mb/s; 54 Mb/s*
* Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s*
* Mode:Master*
* Extra:tsf=00000000311e3003*
* Extra: Last beacon: 50ms ago*
* IE: Unknown: 00084754475F57494649*
* IE: Unknown: 010882848B962430486C*
* IE: Unknown: 03010B*
* IE: Unknown: 2A0100*
* IE: Unknown: 2F0100*
* IE: IEEE 802.11i/WPA2 Version 1*
* Group Cipher : CCMP*
* Pairwise Ciphers (1) : CCMP*
* Authentication Suites (1) : PSK*
* IE: Unknown: 32040C121860*
* IE: Unknown: DD060010180205F0*
* Cell 03 - Address: 38:F8:89:49:69:05*
* Channel:1*
* Frequency:2.412 GHz (Channel 1)*
* Quality=42/70 Signal level=-68 dBm*
* Encryption key:on*
* ESSID:"\x00\x00\x00"*
* Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s*
* 24 Mb/s; 36 Mb/s; 54 Mb/s*
* Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s*
* Mode:Master*
* Extra:tsf=000002fa7f5f1193*
* Extra: Last beacon: 900ms ago*
* IE: Unknown: 0003000000*
* IE: Unknown: 010882848B962430486C*
* IE: Unknown: 030101*
* IE: Unknown: 050400010000*
* IE: Unknown: 2A0104*
* IE: Unknown: 2F0104*
* IE: IEEE 802.11i/WPA2 Version 1*
* Group Cipher : TKIP*
* Pairwise Ciphers (2) : CCMP TKIP*
* Authentication Suites (1) : PSK*
* IE: Unknown: 32040C121860*
* IE: Unknown:
2D1ABC191AFFFF000000000000000000000000000000000000000000*
* IE: Unknown:
3D1601080400000000000000000000000000000000000000*
* IE: Unknown: 7F080000000000000040*
* IE: Unknown: DD090010180206000C0000*
* IE: WPA Version 1*
* Group Cipher : TKIP*
* Pairwise Ciphers (2) : CCMP TKIP*
* Authentication Suites (1) : PSK*
* IE: Unknown:
DD180050F2020101080003A4000027A4000042435E0062322F00*
* Cell 04 - Address: 00:F8:1C:8D:3B:AA*
* Channel:4*
* Frequency:2.427 GHz (Channel 4)*
* Quality=20/70 Signal level=-90 dBm*
* Encryption key:on*
* ESSID:"RESOMAQ"*
* Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s*
* 24 Mb/s; 36 Mb/s; 54 Mb/s*
* Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s*
* Mode:Master*
* Extra:tsf=00000128d659d3b7*
* Extra: Last beacon: 680ms ago*
* IE: Unknown: 00075245534F4D4151*
* IE: Unknown: 010882848B962430486C*
* IE: Unknown: 030104*
* IE: Unknown: 2A0104*
* IE: Unknown: 2F0104*
* IE: IEEE 802.11i/WPA2 Version 1*
* Group Cipher : TKIP*
* Pairwise Ciphers (2) : CCMP TKIP*
* Authentication Suites (1) : PSK*
* IE: Unknown: 32040C121860*
* IE: Unknown:
2D1ABC191AFFFF000000000000000000000000000000000000000000*
* IE: Unknown:
3D1604080400000000000000000000000000000000000000*
* IE: Unknown: 7F080000000000000040*
* IE: Unknown:
DD780050F204104A0001101044000102103B00010310470010D96C7EFC2F8938F1EFBD6E5148BFA8121021000648756177656910230006487561776569102400063132333435361042000233391054000800060050F2040001101100084875617765694150100800020000103C0001011049000600372A000120*
* IE: Unknown: DD090010180204000C0000*
* IE: WPA Version 1*
* Group Cipher : TKIP*
* Pairwise Ciphers (2) : CCMP TKIP*
* Authentication Suites (1) : PSK*
* IE: Unknown:
DD180050F2020101080003A4000027A4000042435E0062322F00*
*lo Interface doesn't support scanning.*
*eth0 Interface doesn't support scanning.*
*usb0 Interface doesn't support scanning.*
*can0 Interface doesn't support scanning.*
*can1 Interface doesn't support scanning.*
14. I m stucked here....I need some help I use another tutorials with no
results.... even more errors like DHCPOFERS no recieved or RFKills (this
one solved). From here I can rearrange another tutorials and so on. Could
someone guide please,
I am sorry for the long post and my english as Non-english speaker!!
Finally when I ll get this working I am thinking to share this via youtube
in english and spanish, because there must be an easy and clearly way...
that I didnt find yet...
Thank you very much!!!
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.