Connect To Wi-Fi After EMF
There are several ways to connect your Tildagon to Wi-Fi depending on what approach you want to take.
Option 1 - Through the GUI
Early versions of the firmware did not include support for updating the Wi-Fi details through the badge settings menu. If you are on an early version, you'll need to update the firmware before completing this option.
This is the easiest option, but a real pain to do because you have to type out each letter using the up (A), down (D) and select (B) keys.
- On the home screen scroll down to settings using the D key, and enter using C key.
- Scroll through the key to "WIFI SSID" and press enter.
- Use the up and down keys to select each letter, pressing B to select.
- Press C to save.
- Repeat for the "WIFI password" option.
- If not using WPA2 Enterprise, empty the Enterprise username by editing then submitting without picking any characters.
- Exit the Settings app using F.
- Push the Reboop button and try connecting.
Option 2 - Use Tildagon Flasher
Probably the simplest option is to open Tildagon Flasher in a Chromium browser.
- Open Tildagon Flasher in a Chromium based web browser.
- With the device connected via USB-C to your computer press "Connect".
- Select the Tildagon from the list.
- Select "Logs & Console".
- Enter the following commands one at a time, followed by enter, editing the 'changeme' sections with your details:
import settings
settings.set('wifi_ssid', 'changeme')
settings.set('wifi_password', 'changeme')
If you are on version 1.6.0 you also need to set the wifi_wpa2ent_username
value to None
.
This may error. If so, ignore the error and continue. (The instructions is to ensure the value isn't set, if it is already not set it errors.)
settings.set('wifi_wpa2ent_username', None)
Run the following command to save the settings
settings.save()
import settings
settings.set('wifi_ssid', 'changeme')
settings.set('wifi_password', 'changeme')
settings.set('wifi_wpa2ent_username', 'username')
settings.save()
- Push the Reboop button and try connecting.
If the Wi-Fi won't connect after performing these steps, try changing the SSID and password commands to be in single quotes instead of double quotes. This seems to make a difference in certain circumstances.
Option 3 - Use mpremote
- Install mpremote
- Connect the Tildagon to your computer using a USB-C data cable
- On your computer's command line, run
mpremote
. You should see:Connected to MicroPython at /dev/ttyACM0
Use Ctrl-] or Ctrl-x to exit this shell - Hold down the
ctrl
key on your computer. While holding it down, press theC
key on your computer. This will open up a shell for you to enter commands. - Enter the following commands one at a time, followed by enter, editing the "changeme" sections with your details:
import settings
settings.set('wifi_ssid', 'changeme')
settings.set('wifi_password', 'changeme')
If you are on version 1.6.0 you also need to set the wifi_wpa2ent_username
value to None
.
This may error. If so, ignore the error and continue. (The instructions is to ensure the value isn't set, if it is already not set it errors.)
settings.set('wifi_wpa2ent_username', None)
Run the following command to save the settings
settings.save()
import settings
settings.set('wifi_ssid', 'changeme')
settings.set('wifi_password', 'changeme')
settings.set('wifi_wpa2ent_username', 'username')
settings.save()
- Restart the badge. Hold down the
ctrl
key on your computer. While holding it down, press theD
key on your computer. - To test if you are connected, open the "App store"
Option 4 - Use mpremote to edit the settings file
- Install mpremote
- Connect the Tildagon to your computer using a USB-C data cable
- On your computer's command line, run
mpremote edit settings.json
. This should open your default text editor. If it fails withedit: $EDITOR not set
then runEDITOR="nano" mpremote edit settings.json
to use nano to edit the file.
Add the following keys and values to the json object, replacing MY-NETWORK
and MY-PASSWORD
with the real values for your network. Remember that json can't have trailing commas. * "wifi_ssid": "MY-NETWORK", "wifi_password":"MY-PASSWORD"
Add the following keys and values to the json object, replacing MY-NETWORK
, MY-PASSWORD
and MY-USER
with the real values for your network. Remember that json can't have trailing commas. * "wifi_ssid": "MY-NETWORK", "wifi_password":"MY-PASSWORD", "wifi_wpa2ent_username":"MY-USER"
- Restart the badge by pressing the
reboop
button on the device - To test if you are connected, open the "App store"
Option 5 - Create a clone of the EMF Wi-Fi network
This could be a good option if you manage a Makerspace or other location where multiple EMF badges might visit.
Because this involves configuring your network this guide can't give detailed instructions.
At a high level you need to:
- Create a new SSID called "emf2024" that uses WPA2 Enterprise.
- Create a RADIUS username "badge" and password "badge"
- Push the Reboop button and try connecting.
Any device will be able to connect to your network using this relatively guessable network connection, you could use MAC filtering, but may also want to consider isolating this network from general internet access and communicating with your other devices for security.