todbot / CircuitPython_MicroOSC

Minimal OSC parser, server, and client for CircuitPython and CPython
MIT License
10 stars 0 forks source link

EOPNOTSUPP on Pi Pico W #1

Open oxgr opened 1 year ago

oxgr commented 1 year ago

hello! has there been any successful testing with this library on a Pi Pico W? I know ESP32 models are listed, but the Pico has native wifi module support and I still can't instantiate an OSC client.

Tried installing via circup as well as manually from main.

Using the example code, it errors at: main.py

osc_client = microosc.OSCClient(pool, ip, port)

microosc.py

class OSCClient:
    ...
    def __init__(...):
        ...
        self._sock.setsockopt(IPPROTO_IP, IP_MULTICAST_TTL, ttl)

Error:

OSError: [Errno 95] EOPNOTSUPP

Versions:

Checked on my socket_pool and IPPROTO_IP & IP_MULTICAST_TTL match the hardcoded ones from @jepler at [ 0, 5 ] respectively. I'm guessing that the wifi chip isn't fully supported?

At a dead-end in my troubleshooting now and would appreciate hints. Any ideas on what to look for?

todbot commented 1 year ago

I can think of two issues:

I've only tested ESP32 and didn't think to try Pico W (had so much issue with it a year ago I gave up). I'll look into if this is a pico-sdk issue or a CircuitPython issue, see if I can get a simple multicast client/server working in pico-sdk. I know in pico-sdk multicast didn't work a year ago, but it was very new then.