-
Notifications
You must be signed in to change notification settings - Fork 1
Networking
This assumes you followed the setup guide and have the correct network firmware
Switch from wlan0 mode Ad-hoc to Managed
wapi mode wlan0 2
Set password
wapi psk wlan0 mypasswd 3
Set ssid
wapi essid wlan0 myssid 1
Apply config
renew wlan0
wapi show wlan0
If you get an error saying ERROR: netlib_obtain_ipv4addr() failed there are 2 possible reasons
- The ssid or password are wrong
- The custom wifi firmware wasn't integrated properly
To confirm the missing firmware run the following from the nuttx directory
cat boards/arm/rp2040/common/src/cyw43439.firmware.image
If the result is "dummy" then the custom firmware wasn't installed correctly, refer to the the installation steps about a possible fix. You can also monitor this thread in hope for an answer.
As for now we only manged to make multicast work with the pico sending and a pc receiving, not the other way around.
This guide assumes you used the defconfig file provided by the installation instructions, if that's not the case add the following config options:
NET_ROUTE=y
NET_IGMP=y
- Connect the pico to a wireless network
- Run the following command
ifconfig
- Add a multicast route
addroute 224.0.0.10/32 "DRaddress from the previous step"
- Confirm changes with
route ipv4
sudo ip route add 224.0.0.10/32 dev YOUR_NETWORK_INTERFACE
https://nuttx.apache.org/docs/latest/applications/wireless/wapi/wireless.html
https://nuttx.apache.org/docs/latest/platforms/xtensa/esp32/index.html#esp32-wi-fi-sta