For what it's worth, I got some success with the tinypilot beta image, being able to make it a client to the openplotter access point.
First, using the beta image, I found in the webapp (http://pypilot.io) under Configuration an option Configure WIFI. This was not in the stable image. I configured that ("Managed-client"), but when hitting Submit it flicked back to "Master - AP" so that was not very promising. Indeed after a reboot the AP was gone. Editing the file /home/tc/.pypilot/networking.txt, as suggested in the screen, was also to no avail.
What finally worked was to create two files on /mnt/mmcblk0p2/tinypilot/. This location is persistent. If you put those files anywhere else they get lost over a reboot.
The first file carries the wifi config (so fill in your own wifi passphrase), the second I run manually for now.
/mnt/mmcblk0p2/tinypilot/wpa_supplicant.conf:
network={
ssid="openplotter"
psk="secret"
}
/mnt/mmcblk0p2/tinypilot/set_wlan.sh
wpa_supplicant -B -i wlan0 -c /mnt/mmcblk0p2/tinypilot/wpa_supplicant.conf
ifconfig wlan0 10.10.10.3 netmask 255.255.255.0 up
The moment you then enter the IP address of the tinypilot (10.10.10.3) in te opencpn plugin, the whole thing comes alive, which is quite thrilling to see the first time!
I tried the same with the old, stable image but that did not work (error in ifconfig), so you would really need the beta image.
Obviously, this solution for now only works in the lab, because you'd need console access to the tinypilot. But while configuring your setup it might come in handy.
Cheers,
-
First, using the beta image, I found in the webapp (http://pypilot.io) under Configuration an option Configure WIFI. This was not in the stable image. I configured that ("Managed-client"), but when hitting Submit it flicked back to "Master - AP" so that was not very promising. Indeed after a reboot the AP was gone. Editing the file /home/tc/.pypilot/networking.txt, as suggested in the screen, was also to no avail.
What finally worked was to create two files on /mnt/mmcblk0p2/tinypilot/. This location is persistent. If you put those files anywhere else they get lost over a reboot.
The first file carries the wifi config (so fill in your own wifi passphrase), the second I run manually for now.
/mnt/mmcblk0p2/tinypilot/wpa_supplicant.conf:
network={
ssid="openplotter"
psk="secret"
}
/mnt/mmcblk0p2/tinypilot/set_wlan.sh
wpa_supplicant -B -i wlan0 -c /mnt/mmcblk0p2/tinypilot/wpa_supplicant.conf
ifconfig wlan0 10.10.10.3 netmask 255.255.255.0 up
The moment you then enter the IP address of the tinypilot (10.10.10.3) in te opencpn plugin, the whole thing comes alive, which is quite thrilling to see the first time!
I tried the same with the old, stable image but that did not work (error in ifconfig), so you would really need the beta image.
Obviously, this solution for now only works in the lab, because you'd need console access to the tinypilot. But while configuring your setup it might come in handy.
Cheers,
-