Replies: 3 comments
-
|
Well, I'm working on it with the help of Gemini CLI. I've got the |
Beta Was this translation helpful? Give feedback.
-
|
User of micropython/zephyr here. To have ethernet networking, I think |
Beta Was this translation helpful? Give feedback.
-
|
The zephyr debug network shell is also very helpful for debugging. I have the config to enable shell running as a telnet service: And I can connect to the shell to collect network related information: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I see that the default
prj.confhasCONFIG_NETWORKING=y, and that thempconfigport.hhasMICROPY_PY_SOCKETdefined.I understand that the
qemu_x86port is useful for running the tests (and it hasCONFIG_NET_SLIP_TAP=y). But other than this kind of serial network connection, is there any way that we could get networking on some other Zephyr board (like thenucleo_f429ziboard that I have) that has Ethernet hardware (on the SOC and on the board)?What purpose does
MICROPY_PY_SOCKEThave for those many boards/SOCs that don't have networking hardware (assuming that they're not running SLIP)?Since Zephyr has its own network stack, we shouldn't use LWIP.
But the alternative seems to require
MICROPY_PORT_NETWORK_INTERFACESto be defined, and definesnetwork.country(what use is this for an Ethernet connection?).This requires these methods to be implemented:
And it requires calling
mod_network_register_nic()on any network interfaces you want to use.I think networking also requires
MICROPY_PY_NETWORK_LANto be defined.The only support I can see for non-LWIP network interfaces seems to be for the
NINAW10,ESP_HOSTED,MIMXRT, and theWIZNET5K.The
mimxrtport looks to be a good example (seeports/mimxrt/network_lan.c). This allows anmimxrtboard to have networking using one of five PHY types.I am also puzzled by the Micropython Zephyr port for the
beagleconnect_freedomboard that is configured like this (apparently for 802.15.4 over 900MHz radio):How would this be used in practice?
Beta Was this translation helpful? Give feedback.
All reactions