Author Topic: SEGGER's IP over USB  (Read 2460 times)

0 Members and 1 Guest are viewing this topic.

Offline purfieldTopic starter

  • Regular Contributor
  • *
  • Posts: 54
SEGGER's IP over USB
« on: September 10, 2020, 04:32:48 pm »
I'm working on a project that uses a microcontroller and it would benefit from something like this:

https://www.segger.com/products/connectivity/emusb-device/add-ons/ip-over-usb/#resource-usage

It's a software stack by SEGGER that allows a microcontroller to run a web server connected over USB to a host.  The only problem is that the pricing from SEGGER is a bit hard to swallow (looks like maybe $10k?)

Has a similar approach ever been implemented with open source?
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2615
  • Country: us
Re: SEGGER's IP over USB
« Reply #1 on: September 10, 2020, 05:42:38 pm »
That's kinda neat.  I doubt there's an existing complete alternative, but you can get partway there with LWIP and any existing web server library that is designed to work with it.  That leaves the USB side of things, which presumably uses CDC-ECM and appropriate class drivers?  I wonder how many MCU vendors include CDC-ECM in their USB frameworks.  XMOS has an appnote for IP over USB that may help: https://www.xmos.com/download/AN00131:-USB-CDC-ECM-Class-for-Ethernet-over-USB(2.0.2rc1).pdf 
 

Offline ehughes

  • Frequent Contributor
  • **
  • Posts: 409
  • Country: us
Re: SEGGER's IP over USB
« Reply #2 on: September 10, 2020, 06:35:58 pm »
Well,  if it is for commercial work then that cost is worth it. 


tinyUSB has a good device stack.

https://github.com/hathach/tinyusb/tree/master/examples/device

It has a USB device example to implement network + a webserver.

 

Online hans

  • Super Contributor
  • ***
  • Posts: 1643
  • Country: nl
Re: SEGGER's IP over USB
« Reply #3 on: September 10, 2020, 07:21:44 pm »
The architecture picture says it all; the Segger solution relies on USB-ECM

I think there are plenty of "examples" around for microcontorllers such as the STM32 and the like: https://github.com/search?q=usb+ecm&type=Repositories

edit: Also interesting keywords are CDC-ECM and RNDIS (although  I believe that's a different protocol/standard entirely)
« Last Edit: September 11, 2020, 06:47:25 am by hans »
 

Offline purfieldTopic starter

  • Regular Contributor
  • *
  • Posts: 54
Re: SEGGER's IP over USB
« Reply #4 on: September 10, 2020, 10:53:24 pm »
Awesome, thanks for the tips everybody!
 

Offline theatrus

  • Frequent Contributor
  • **
  • Posts: 352
  • Country: us
Re: SEGGER's IP over USB
« Reply #5 on: September 11, 2020, 06:51:22 am »
I'm glad we've moved on from RNDIS ;)
Software by day, hardware by night; blueAcro.com
 

Offline JoeyG

  • Regular Contributor
  • *
  • Posts: 117
  • Country: au
Re: SEGGER's IP over USB
« Reply #6 on: September 12, 2020, 09:29:47 am »
 

Offline RRCXUD

  • Newbie
  • Posts: 1
  • Country: in
Re: SEGGER's IP over USB
« Reply #7 on: September 12, 2020, 09:42:10 am »
If you are using STM32, ST USB library supports both ECM and RNDIS.
https://github.com/STMicroelectronics/stm32_mw_usb_device
You can find webserver over RNDIS examples in their cube packages.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf