Skip to main content
Visitor II
August 1, 2019
Question

How to send UDP Data over USB

  • August 1, 2019
  • 5 replies
  • 2784 views

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! :)

    This topic has been closed for replies.

    5 replies

    Super User
    August 1, 2019

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

    JW

    JCorn.2Author
    Visitor II
    August 5, 2019

    Thanks for the link. I will check that out :)

    JCorn.2Author
    Visitor II
    August 5, 2019

    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? :)

    Visitor II
    January 28, 2020

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

    Explorer
    January 28, 2020

    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.