Fast USB stack

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Fast USB stack

Postby Deouss » Thu May 10, 2018 3:04 pm

I am looking for code and examples how to make esp32 work with USB 2.0 protocols mostly isochronous and bulk.
I am not sure if USB 3.0 is possible and just wonder if there are any projects or libraries that could help with that.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Fast USB stack

Postby loboris » Thu May 10, 2018 7:13 pm

ESP32 does not have any USB hardware! :?

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Fast USB stack

Postby Deouss » Thu May 10, 2018 9:46 pm

You can turn esp32 into usb device with full protocols support just don't know how fast.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Fast USB stack

Postby loboris » Thu May 10, 2018 10:14 pm

I'm aware of some tests on implementing the software USB on ESP32, but as far as I know it is far from "you can turn esp32 into usb device with full protocols support".
Maybe USB 1.0 could be implemented, but I'm quite shure USB 2.0/3.0 will never be possible.
If you have more information, please share it.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Fast USB stack

Postby Deouss » Thu May 10, 2018 10:34 pm

Check this guy insane attempts

https://www.youtube.com/watch?v=-NxoNdTj_7U

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: Fast USB stack

Postby ESP_Sprite » Fri May 11, 2018 3:21 am

Heh, that's an USB1.1 low-speed (1.5MBit) stack on an entirely different processor. You're skipping straight past USB1.1 full-speed (12MBit) and are not only intending to run USB2.0 on it (480MBit) but even USB3.0 (5GBit)? I like your optimism, but I hope you can imagine we think that not only porting this library from the ESP8266 to the ESP32 but also increasing the speed 320-fold or even 3333-fold is... well, let's say I wish you good luck in your attempt and sincerely hope you find some way to pull it off, but you'll have to excuse us for not holding our collective breath.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Fast USB stack

Postby Deouss » Fri May 11, 2018 11:16 am

Well, yes that example was done on ESP8266 but ESP32 is faster, right? So at least usb1.1 would be possible.
I am not sure how to calculate speed but with 240MHz running 2 parallel transfers (per core) can give you insane speeds.
I wonder if anyone measured common esp32 transfer speeds like bluetooth, wifi etc

Who is online

Users browsing this forum: No registered users and 72 guests