Skip to content

Find WiFi via nmcli, wait for the network at boot, and reset the Pico… - #22

Open
qquais wants to merge 1 commit into
mainfrom
fix/19-deployer-wifi-and-boot-race
Open

Find WiFi via nmcli, wait for the network at boot, and reset the Pico…#22
qquais wants to merge 1 commit into
mainfrom
fix/19-deployer-wifi-and-boot-race

Conversation

@qquais

@qquais qquais commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Title: Fix Pico provisioning on newer Pi OS and at boot (#19)

When a Pico is plugged in, the deployer writes the Pi's WiFi and address into
the Pico's config. On newer Pi OS it couldn't find them and wrote placeholders,
so the Pico never joined WiFi. At boot it also ran before the network was up,
and after copying files it left the board stopped until someone replugged it.

Now it asks NetworkManager directly, waits for the network, resets the Pico so
the new files run, and reports a failed copy honestly.

Tested on a dev Pi: one plug-in, and 24 seconds later the Pico was on WiFi and
registered. 14 unit tests. One behavior change if the office Pi ever pulls
this: a Pico resets itself after being provisioned.

@qquais
qquais requested a review from RajkumarGara September 9, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant