WiFi in Klipper Mod for the AD5M is controlled by the iNet wireless daemon (iwd).
Wifi network settings are stored in /var/lib/iwd
and the iwd daemon is configured in /etc/iwd
. For the configuration file format look here.
Normally all WiFi connections use DHCP, if you want to set a manual IP, look here.
If you want to encrypt the PSK storage, look here.
If you want to use WPA2-Enterprise look here for the correct settings.
- Connect the printer to ethernet port
- SSH to the printer and log in as root
iwlist scanning
oriwctl station wlan0 get-networks
to view the networks in range (and detected), if your network is missing, wait a bit and performiwctl station wlan0 scan
iwctl station wlan0 connect [SSID]
and enter the preshared key, oriwctl --passphrase [PSK] station wlan0 connect [SSID]
Alternatively, edit the the SSID.psk file in /var/lib/iwd
, see below for an example.
The klipper_mod
dir on a usb drive can be used as an overlay for custom config files that are copied to the mod during installation. This can be used to set-up the initial WiFi connection.
To setup WiFi using this method you can add a file to the klipper_mod
directory on the usb drive for the SSID 'EXAMPLE_SSID' with passphrase ********
:
Create the USB drive file: klipper_mod/var/lib/iwd/EXAMPLE_SSID.psk
[Settings]
AutoConnect=True
[Security]
Passphrase=********
Warning
Make sure you use linux line endings and do NOT use windows notepad to create or edit the file.
Install the mod as described in Install and after installation the printer should connect to your network.
Once klipperscreen has started:
- Press settings
- Press wifi
- Wait for the networks to show up
- If no networks are shown, go back and retry the wifi button.
- Once your SSID shows up, press the arrow button next to it
- Enter the preshared key. Press save to continue.
- This might take a moment. If the screen does not proceed after about 10 seconds, press the save button again.
For more commands and advanced usage of iwd, see the linux kernel page for iwd or the arch linux example page.