Can I add my own native python NIC to a setup that is otherwise network ready? E.g. the ESP32 port or the RP2040 port from Wiznet both come with everything needed for networking. Can I add a pure python NIC to these?
If I do socket io on the RP2040 with µP from
https://github.com/Wiznet/RP2040-HAT-MicroPython without loading a nic i get
Code: Select all
socktest.py, line 20, in sendtcp
OSError: no available NIC
Doing the same on esp32 gives:
Code: Select all
socktest.py, line 20, in sendtcp
OSError: [Errno 104] ECONNRESET
These error messages are different so I assume they come from an underlying OS or similar. So I am afraid this is not about registering a NIC with MicroPython or its embedded LWIP but with the underlying OS which in turn Micropython does not allow me.
Is this true? Or is there a way to register a custom NIC?