Tethering SSID is reverted to default value after BBB reboot

388 views
Skip to first unread message

Bo Deng

unread,
Sep 19, 2016, 10:10:53 AM9/19/16
to BeagleBoard
Hello,

I have a BBB with debian-8.4-iot downloaded from beagleboard.org. I changed the wifi tethering ssid and password by the following commands:

# connmanctl tether wifi off

Disabled tethering for wifi


#connmanctl tether wifi on mybbb 1234567890

Wifi SSID set

Wifi passphrase set



I confirmed that I can see the new ssid by my laptop wifi scanner. I also confirmed settings in /var/lib/connman/settings was changed correctly.


# cat /var/lib/connman/settings

...

[WiFi]

Enable=true

Tethering=true

Tethering.Identifier=mybbb

Tethering.Passphrase=1234567890



After rebooting the BBB, the ssid was reverted to BeagleBone-A4FD. The 'Tethering.Identifier' setting in /var/lib/connman/settings was also changed to BeagleBone-A4FD,

but the 'Tethering.Passphrase' setting was reserved.


# cat /var/lib/connman/settings

...

[WiFi]

Enable=true

Tethering=true

Tethering.Identifier=BeagleBone-A4FD

Tethering.Passphrase=1234567890


Any one know how to reserve tethering SSID over rebooting? Thanks!



Robert Nelson

unread,
Sep 19, 2016, 10:20:03 AM9/19/16
to Beagle Board, den...@gmail.com
Opps, that's me:

wifi_name=$(grep Tethering.Identifier= /var/lib/connman/settings | awk
-F '=' '{print $2}' || true)
ssid_append=$(echo ${cpsw_0_mac} | cut -b 13-17 | sed 's/://g' || true)
if [ ! "x${wifi_name}" = "x${wifi_prefix}-${ssid_append}" ] ; then
sed -i -e 's:Tethering.Identifier='$wifi_name':Tethering.Identifier='$wifi_prefix'-'$ssid_append':g'
/var/lib/connman/settings
systemctl restart connman.service || true
fi

https://github.com/RobertCNelson/boot-scripts/blob/23568a73ca762e985a84023e60a9dc9e5f716a35/boot/am335x_evm.sh#L172-L177

let's double check with wifi_prefix, so fixed with:

https://github.com/RobertCNelson/boot-scripts/commit/d798da6bfa7bd857a31f1f1842256d603f8bcdad

cd /opt/scripts/
git pull

and you'll have the change..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Bo Deng

unread,
Sep 20, 2016, 12:08:11 AM9/20/16
to BeagleBoard, den...@gmail.com
Hi Robert,

Great! The SSID is not reverted any more after I pull the latest scripts from git. Thank you for your quick response!


在 2016年9月19日星期一 UTC+8下午10:20:03,RobertCNelson写道:
Reply all
Reply to author
Forward
0 new messages