I’m thinking of attaching a couple of pHATs to a messenger bag, a pHAT-Bag if you like.
If I want to communicate with the boards, i.e. to run a different Python script, I need to be able to talk to the Pi.
A mobile phone is the easiest device to hand to do this with.
I know that I can connect both the Pi and the phone to a WiFi network and SSH into th Pi, but this process falls down if I am ever using a WiFi network the Pi has no knowledge of (can’t access the Pi to tell it to connect to the new network).
Not though about networking over usb to allow you to configure a connection?
Also have a look at https://github.com/heeed/PiSpot
Its something I was playing around with ages ago for having the Pi appear as a hotspot which would then let you connect to reconfigure the WiFi to use another AP if required. It should work on the zero.
The basic idea behind PiSpot is for it to start upon boot, look for any known AP and then try to connect in sequence. If none were present or failed to connect it would then start an AP up itself allowing you to connect to it that way.
simon@phats:~/git/PiSpot$ sudo bash install_pispot.sh
[sudo] password for simon:
First, lets see if the req_files/isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_armhf.deb packages are installed…
dpkg-query: no packages found matching req_files/isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_armhf.deb
req_files/isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_armhf.deb is not installed…will install now
req_files/isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_armhf.deb
Installing locally
(Reading database … 150519 files and directories currently installed.)
Preparing to unpack …/isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_armhf.deb …
Unpacking isc-dhcp-server (4.2.2.dfsg.1-5+deb70u6) over (4.2.2.dfsg.1-5+deb70u6) … > dpkg: dependency problems prevent configuration of isc-dhcp-server: > isc-dhcp-server depends on isc-dhcp-common (= 4.2.2.dfsg.1-5+deb70u6); however: > Version of isc-dhcp-common on system is 4.3.5-3+deb9u1.
> dpkg: error processing package isc-dhcp-server (–install): > dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) …
Processing triggers for systemd (232-25+deb9u4) … > Errors were encountered while processing: > isc-dhcp-server
cp: cannot stat ‘/etc/default/isc-dhcp-server’: No such file or directory
sed: can’t read /etc/default/isc-dhcp-server: No such file or directory
sed: can’t read /etc/default/isc-dhcp-server: No such file or directory
Setting up autostart of pispot
Connection to 192.168.1.65 closed by remote host.
Connection to 192.168.1.65 closed.
simon@chromebook:~$ ssh phats
ssh: connect to host 192.168.1.65 port 22: No route to host
I can pull the SD card tomorrow and try and repair.
Or at least try and get isc-dhcp-server up and working.
It looks good though, and I’ll persevere in getting it up and running.