Can't connect to wifi

583 views
Skip to first unread message

Chris Kottaridis

unread,
Dec 27, 2018, 9:12:16 PM12/27/18
to BeagleBoard

I am trying to get my Beagle Bone Blue to connect to my local wifi.

Just got the BB blue board a couple weeks ago and updated OS
==============================
# cat /etc/issue
Debian GNU/Linux 9 \n \l

BeagleBoard.org Debian Image 2018-10-07

Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

default username:password is [debian:temppwd]
==============================

I can ssh in from the  USB connection and am trying to enable wireless access so I can load some packages, specifically gdbserver, and any dependents, to do some remote debugging

I'm following instructions here:


But when I enter them it seems to fail to accept the passphrase. I have double checked the passphrase many times and verifed other devices can join the wifi with it.

Here is what happens when I try running the commands on the command line:

# connmanctl
Error getting VPN connections: The name net.connman.vpn was not provided by any connmanctl> disable wifi
Disabled wifi

connmanctl> tether wifi off
Error disabling wifi tethering: Already disabled

connmanctl> enable wifi
Enabled wifi

connmanctl> scan wifi
Scan completed for wifi

connmanctl> services
    ATT5FjnhCI           wifi_8030dc046f2b_41545435466a6e684349_managed_psk

connmanctl> agent on
Agent registered

connmanctl> connect wifi_8030dc046f2b_41545435466a6e684349_managed_psk
Agent RequestInput wifi_8030dc046f2b_41545435466a6e684349_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
  WPS = [ Type=wpspin, Requirement=alternate ]
Passphrase? <putincorrectpassword>
Agent ReportError wifi_8030dc046f2b_41545435466a6e684349_managed_psk
  connect-failed
Agent request cancelled by ConnMan
Error /net/connman/service/wifi_8030dc046f2b_41545435466a6e684349_managed_psk: Operation aborted

connmanctl>

I have tried this many times and double checked the passphrase so I am not sure what may be the problem.

Any suggestions would be appreciated.

Thanks
Chris

Mala Dies

unread,
Dec 28, 2018, 12:27:25 AM12/28/18
to BeagleBoard
Hello,

Do that but just use services and then agent on and finally connect w/ the wifi_xxxxxxxxxxxxxxxxxxxxx_managed_psk router info.

...

Then...type the password to your router. Oh and this is w/ the updated image for connmanctl, i.e. image 10/2018 which can be found online at bbb.io/latest-images.

Seth

Chris Kottaridis

unread,
Dec 28, 2018, 11:34:22 AM12/28/18
to beagl...@googlegroups.com

Tried that.

According to /etc/issues I have a 10/2018 image:

==================

#cat /etc/issue


Debian GNU/Linux 9 \n \l

BeagleBoard.org Debian Image 2018-10-07  <<<<<<<

Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

default username:password is [debian:temppwd]

================================


root@beaglebone:/etc/network# connmanctl
connmanctl> services
    ATT5FjnhCI           wifi_8030dc046f2b_41545435466a6e684349_managed_psk
    ATT62fawFi           wifi_8030dc046f2b_41545436326661774669_managed_psk

connmanctl> agent on
Agent registered

connmanctl> connect wifi_8030dc046f2b_41545435466a6e684349_managed_psk
Agent RequestInput wifi_8030dc046f2b_41545435466a6e684349_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
  WPS = [ Type=wpspin, Requirement=alternate ]

Passphrase? <correctpassword>

Agent ReportError wifi_8030dc046f2b_41545435466a6e684349_managed_psk
  connect-failed
Agent request cancelled by ConnMan
Error /net/connman/service/wifi_8030dc046f2b_41545435466a6e684349_managed_psk: Operation aborted

--
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4c114943-5fdf-43c4-8885-2d32d0a25030%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mala Dies

unread,
Dec 28, 2018, 7:49:11 PM12/28/18
to BeagleBoard
Hello,

I am not sure your current image for the BBB that is on your machine. Are you sure you got the current image that beagleboard.org/latest-images has on their site? I have that /latest-images 10/2018 image (IoT) and the connmanctl program works for me.

Did you just update the board w/ a Debian image of your choosing?

Seth

P.S. Try from your /home/debian/ dir. instead.

Mala Dies

unread,
Dec 28, 2018, 7:51:16 PM12/28/18
to BeagleBoard
Hello Again,

Seth here. I thought of something. Type this command: uname -r or uname -a to get the BBB image info. from your BBB.

Seth


On Friday, December 28, 2018 at 10:34:22 AM UTC-6, Chris Kottaridis wrote:

Chris Kottaridis

unread,
Dec 28, 2018, 9:21:49 PM12/28/18
to beagl...@googlegroups.com

# uname -r
4.14.71-ti-r80
# uname -a
Linux beaglebone 4.14.71-ti-r80 #1 SMP PREEMPT Fri Oct 5 23:50:11 UTC 2018 armv7l GNU/Linux

I did get it from a beagleboard site, but have to admit I didn't document the URL. I believe this is my locasl copy of the download image:

$ ls -l
<stuff>
-rw-rw-r--  1 chrisk chrisk 3565158400 Dec  8 19:55  bone-debian-9.5-iot-armhf-2018-10-07-4gb.img

$ md5sum bone-debian-9.5-iot-armhf-2018-10-07-4gb.img
dbd6fc28080e1a86e3c6503ad12bedb7  bone-debian-9.5-iot-armhf-2018-10-07-4gb.img

I put the image on an sd card and am booting from it.

Well not sure why this would work since I am root the whole time:

#cd /home/debian

# connmanctl> tether wifi off

Error disabling wifi tethering: Already disabled
connmanctl> enable wifi
Error wifi: Already enabled

connmanctl> scan wifi
Scan completed for wifi
connmanctl> services
    ATT5FjnhCI           wifi_8030dc046f2b_41545435466a6e684349_managed_psk
    ATT62fawFi           wifi_8030dc046f2b_41545436326661774669_managed_psk
connmanctl> agent on
Agent registered
connmanctl> connect wifi_8030dc046f2b_41545435466a6e684349_managed_psk
Agent RequestInput wifi_8030dc046f2b_41545435466a6e684349_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
  WPS = [ Type=wpspin, Requirement=alternate ]
Passphrase? kzacemykjnb2
Connected wifi_8030dc046f2b_41545435466a6e684349_managed_psk

connmanctl> quit

# ifconfig -a

<stuff>

# ping google.com
PING google.com(dfw28s02-in-x0e.1e100.net (2607:f8b0:4000:812::200e)) 56 data bytes
64 bytes from dfw28s02-in-x0e.1e100.net (2607:f8b0:4000:812::200e): icmp_seq=1 ttl=54 time=47.3 ms
64 bytes from dfw28s02-in-x0e.1e100.net (2607:f8b0:4000:812::200e): icmp_seq=3 ttl=54 time=24.3 ms
64 bytes from dfw28s02-in-x0e.1e100.net (2607:f8b0:4000:812::200e): icmp_seq=5 ttl=54 time=44.8 ms
64 bytes from dfw28s02-in-x0e.1e100.net (2607:f8b0:4000:812::200e): icmp_seq=6 ttl=54 time=38.6 ms
64 bytes from dfw28s02-in-x0e.1e100.net (2607:f8b0:4000:812::200e): icmp_seq=7 ttl=54 time=37.0 ms
64 bytes from dfw28s02-in-x0e.1e100.net (2607:f8b0:4000:812::200e): icmp_seq=8 ttl=54 time=44.0 ms
^C
--- google.com ping statistics ---
8 packets transmitted, 6 received, 25% packet loss, time 7039ms
rtt min/avg/max/mdev = 24.335/39.361/47.320/7.603 ms

Great!!! That should do it.

Not sure what is magical about /home/debian but it seems to make a difference!

Very weird.

Much thanks

Chris

Chris Kottaridis

unread,
Dec 28, 2018, 9:26:21 PM12/28/18
to beagl...@googlegroups.com

By the way the output of ifconfig was:

wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.152  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::8230:dcff:fe04:6f2b  prefixlen 64  scopeid 0x20<link>
        inet6 2600:1700:570:8d50:8230:dcff:fe04:6f2b  prefixlen 64  scopeid 0x0<global>
        ether 80:30:dc:04:6f:2b  txqueuelen 1000  (Ethernet)
        RX packets 99  bytes 11857 (11.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 214  bytes 27355 (26.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Apparently forgot to paste it in.

Thanks

Chris

Mala Dies

unread,
Dec 28, 2018, 10:16:40 PM12/28/18
to BeagleBoard
Hello,

Good. I think it may make a difference b/c of where dir. and files are located and how the system looks for them. Outside of that, I am w/ you. I do not completely understand why it would work from the user dir. and none other.

...

Oh and ip addr will do the same thing as ifconfig. 

Seth

P.S. It may help in the future.

Mala Dies

unread,
Dec 30, 2018, 11:38:46 PM12/30/18
to BeagleBoard
Hello,

In the first couple of pages in Chapter 6 of, "Embedded Linux Primer (Hallinan 2011)," the person goes on to explain that there are networking and device drivers that are loaded in the / or root directory upon booting the device.

...

Also, it is normal for the kernel to process additional file systems at that point.

Seth

P.S. This older book was recommended to everyone on some page years ago. I picked it up a while back and I am finally getting around to reading it.  
Reply all
Reply to author
Forward
0 new messages