cancel
Showing results for 
Search instead for 
Did you mean: 

How to send UDP Data over USB

JCorn.2
Associate II

Hey guys,

I am using a STM32F401RE nucleo board that does not have an ethernet port. However, I would like to send UDP Frames over the USB/serial port.

Since I am new to this and there are no examples how to do it, I really appreciate your help. Has anybody done this before? Are there some working examples or maybe you have any hints where to start research.

I know that there are some LwIP examples for boards with an ethernet adapter. Could I use these libraries and, at the point where they are getting send over ethernet, send them over USB CDC instead?

Please help! 🙂

6 REPLIES 6

Maybe PPP is the keyword you are looking for... ?

JW

Thanks for the link. I will check that out 🙂

JCorn.2
Associate II

Okay, I added the LwIP to my STM32F401 that has no ethernet port.

Does anybody has a hint what I need to change/implement to send and receive LwIP (udp) packets over uart? 🙂

Stephan Luik
Associate II

In the old days, we used the SLIP protocol to send IP packets over UART connections.

Ozone
Lead

RNDIS is a method to provide virtual ethernet links on top of USB.

I don't know of any Cortex M implenetation, and I believe it is a bit oversized for that platform.

> I am using a STM32F401RE nucleo board that does not have an ethernet port. However, I would like to send UDP Frames over the USB/serial port.

Generally, I think you are heading the wrong way.