d-a-v / esp82xx-nonos-linklayer

esp8266 link layer API for new ip stack - applied to lwIP-v2
31 stars 22 forks source link

Stub implementation #36

Open benpye opened 5 years ago

benpye commented 5 years ago

Hey,

I'm really happy I've stumbled on this project. I want to use an ESP8266 to send/receive raw ethernet frames. There's currently the esp-raw project, it hacks about with lwip's netconn object to hook functions and works, but is obviously not perfect.

I have been wondering what it would take to stub out the lwip calls from the wifi stack so that we can just send/receive our own ethernet frames and ignore everything else. This is achievable with the RTOS SDK however I'd like to try and use my device as an SDIO slave which is not supported with the RTOS SDK.

d-a-v commented 5 years ago

With this project and arduino core,

benpye commented 5 years ago

@d-a-v whilst that is certainly an option I suppose it isn't my ideal state. I would like to - if possible - eliminate lwip entirely. Part of this excercise is an attempt to minimize the amount of unsafe code running in my project - I plan to use the ESP8266 forwarding raw ethernet frames - but then use smoltcp on another (ARM) MCU where I can use Rust. It's for that reason I would like to try and get a stub implementation, sufficient to satisfy the WiFi blobs but no real functionality beyond that.