Replies: 1 comment
-
Well, I'm working on it with the help of Gemini CLI. I've got the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see that the default
prj.conf
hasCONFIG_NETWORKING=y
, and that thempconfigport.h
hasMICROPY_PY_SOCKET
defined.I understand that the
qemu_x86
port 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_f429zi
board that I have) that has Ethernet hardware (on the SOC and on the board)?What purpose does
MICROPY_PY_SOCKET
have 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_INTERFACES
to 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_LAN
to 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
mimxrt
port looks to be a good example (seeports/mimxrt/network_lan.c
). This allows anmimxrt
board to have networking using one of five PHY types.I am also puzzled by the Micropython Zephyr port for the
beagleconnect_freedom
board 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