ch32-hal icon indicating copy to clipboard operation
ch32-hal copied to clipboard

Is there an approach to connect ethernet (wchnet)?

Open christopherkutzmann opened this issue 3 months ago • 1 comments

Hello! This project is awesome and must be driven forward. I have successfully port my interrupt switch logic from EmbeetleIDE (c) to this format and rust. It is much cleaner and it consumes less current. Now i am facing the final task: to send short mqtt messages from the ch32v307 (CH32V307V-R1-1v0). I already have it working in an Embeetle project in c, but now I want to use ethernet with rust and this embassy. I've already read a lot about embassy-net(-driver/-channel etc.), but haven't found the right solution for me. I think I can also just include the wch-ethernet library and use it, but I'm really looking for the right way to do it. Does anyone have an idea or even a solution?

Board: https://github.com/openwch/ch32v307/tree/main/SCHPCB/CH32V307V-R1-1v0 Ethernet example: https://github.com/openwch/ch32v307/tree/main/EVT/EXAM/ETH/MQTT Ethernet Library: https://github.com/openwch/ch32v307/tree/main/EVT/EXAM/ETH/NetLib

Many thanks, Chris

christopherkutzmann avatar Apr 25 '24 17:04 christopherkutzmann