How does USB device discovery work?

How does USB device discovery work?

Ben Eater

3 года назад

313,103 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@boonedockjourneyman7979
@boonedockjourneyman7979 - 28.11.2021 18:11

You do fantastic work. I teach EE stuff to big brain young people. You inspire us all. Do more YT. You impact young minds. Old guys like me can get so far. Somehow, you get further with these “kids.” (They may be in their deep 20’s. Doesn’t that sound funny?)

Ответить
@johantenhove7770
@johantenhove7770 - 06.12.2021 23:52

Video proposal: transmitting and receiving chunks of data using RS232 and/or RTS/CTS and/or XON/XOFF.

Ответить
@NicolaiDufva
@NicolaiDufva - 31.12.2021 03:35

I am really disappointed that you didn't analyze the communication between the oscilloscope and the USB drive when you saved the setup communication detail.... Nah, seriously, this was super interesting!

Ответить
@PhilSamoylov
@PhilSamoylov - 09.01.2022 01:03

Thanks

Ответить
@SwapPartLLC
@SwapPartLLC - 12.01.2022 06:05

I'd love to see a video on wireless device discovery.

Ответить
@keylanoslokj1806
@keylanoslokj1806 - 15.01.2022 13:55

Where did you gain all that knowledge

Ответить
@Adrenalime
@Adrenalime - 03.02.2022 13:15

Which is faster now, USB-C or PS/2?

Ответить
@BoomBeach_boost
@BoomBeach_boost - 02.03.2022 14:28

Is host controlller responisible ass well to enumrate device properly

Ответить
@mowinckel10
@mowinckel10 - 18.03.2022 23:29

A thing I do not understand... if a USB hub wakes up and there are multiple devices attached to it... how does it adresse a single one? If all of them have a standard "I have not gotten a real address" address then would you not be addressing all of them?

Ответить
@shabbirahammed4596
@shabbirahammed4596 - 21.03.2022 15:54

please decode pciE bus...

Ответить
@JoannaHammond
@JoannaHammond - 13.04.2022 12:46

Oh it would be nice to have a £5k oscilloscope. Looking over at my Rigol DS1054Z.......

Ответить
@CircuitCreator
@CircuitCreator - 30.04.2022 04:51

Great 🔥

Ответить
@GalaxiaDeFavio
@GalaxiaDeFavio - 12.05.2022 05:48

Gracias

Ответить
@GalaxiaDeFavio
@GalaxiaDeFavio - 12.05.2022 05:57

A lot of data like wireshark

Ответить
@savansanghavi7465
@savansanghavi7465 - 17.06.2022 14:00

Really cool video
Thanks
Please make more videos

Ответить
@periloot
@periloot - 14.08.2022 04:04

Amazing breakdown of the process! I'm jealous of that oscilloscope.

Ответить
@FiveFiveZeroTwo
@FiveFiveZeroTwo - 20.08.2022 18:26

What games / gamers hit the six key limit?

Ответить
@Pritam252
@Pritam252 - 29.08.2022 06:46

I tried to find usb documentaion but I didn't understand them, thie helped me.

Ответить
@ButteredToast_93
@ButteredToast_93 - 02.09.2022 04:10

Almost poetic to use oscilloscope to analyze and decode data transfer for usb keyboard, save the segments of data in a log on a usb drive, then read all the usb data saved on usb drive over usb on computer… lol. It really is so universal

Ответить
@PlaylistsM
@PlaylistsM - 08.10.2022 14:33

How usb host works and how we can make own device what can connect with this host?

Ответить
@Greebstreebling
@Greebstreebling - 20.10.2022 19:39

I needed extra cooling for my brain once I got to the 20 minute stage. The overheat flag was coninuously set from that point on. I watached this video because I have an astronomical camera which fails to connect over USB with some error like failed to get device descriptor. Looks like it's staying that way.....

Ответить
@ddognine
@ddognine - 17.11.2022 18:05

Just goes to show that none of this stuff is very complicated as long as you have access to the specs (and a really cool scope).

A couple of notes: first, it would be interesting (albeit difficult) to know how many devices DON'T adhere to the spec (iow, can USB be spoofed or hacked?), and second, I am a little surprised that USB is so well documented (iow, are there typos in the spec?). As many commenters have noted below, we take a lot of things for granted, but at the end of the day, humans are still responsible for everything working properly from the documentation to the OS's and devices.

Ответить
@fitybux4664
@fitybux4664 - 26.11.2022 08:52

This is a very expensive way to learn USB conversations. ($8k+ for that oscilloscope) I'm sure there's a chip that can spit these out with Wireshark's help.

Ответить
@JakeDownsWuzHere
@JakeDownsWuzHere - 28.11.2022 05:14

Thanks for breaking this down in your usual, thorough, yet easy to understand manner. I've been playing with Wireshark USB packet capture and WebUSB/WebHID and this has been a super informative series. Love your videos.

Ответить
@stephenmeisl2351
@stephenmeisl2351 - 30.11.2022 15:07

Is there any information regarding the USB protocol associated with a disconnect/connect? In particular I am trying to troubleshoot an issue where we are using a mechanical switch to toggle USB lines ( two data lines, power and ground ) and intermittently our host fails to see the new device. We are switching from a high speed KM switch to a low-speed mouse. If we delay at least 3 seconds it always seems to work - any ideas as to what is going on? Thanks

Ответить
@syntaxerorr
@syntaxerorr - 03.12.2022 18:31

Awesome video. Thanks!

Ответить
@TheJaguar1983
@TheJaguar1983 - 06.12.2022 08:50

Something I wonder is: if multiple devices are plugged in at once, how does the setup message not collide with all of the devices? Do the hubs forward the messages to each port in sequence?

Ответить
@ruenjou
@ruenjou - 09.12.2022 17:36

This channel taught much more practical stuff than top engineering schools.

Ответить
@jolex_nerd8132
@jolex_nerd8132 - 11.12.2022 15:33

Can you please do one for a low-speed USB hub? Want to see how the computer sees multiple periferals in one…

Ответить
@PvtPuplovski
@PvtPuplovski - 17.12.2022 20:27

Now I’m curious if there’s a way to make a comically large USB “thumb drive” using breadboards!

Ответить
@garygranato9164
@garygranato9164 - 27.12.2022 05:00

thats a lovely scope

Ответить
@mashurshalehin4972
@mashurshalehin4972 - 01.01.2023 18:19

Hey Ben, It would be great if you can dive into usb protocol a bit more. Explaining how pen drives work (usb part) or may be something about webcams or if someone plans to write software for usb protocol how things could be done. That would be a great help. I really like usb protocol. But I think there is a huge gap in the free knowledge about usb.

Ответить
@ifohancroft
@ifohancroft - 16.01.2023 19:38

I'm looking to buy an oscilloscope and I'd also like to be able to inspect USB signals like you are doing, however I'm not sure what to look for. What your oscilloscope is currently doing, is it USB analysis or USB decoding? Are there any oscilloscopes below $1000 that can do it with USB 2.0 High Speed?

Ответить
@dopaminetrigger
@dopaminetrigger - 26.02.2023 04:49

i've watched a few of your videos now and it's easy to believe that you're some sort of technomancer but you proved your humanity when you failed putting in the USB A correctly the first time, like the rest of us mortals

Ответить
@CYTOTIMUS
@CYTOTIMUS - 07.03.2023 12:23

Thanks!

Ответить
@liviuflorinelanghel4267
@liviuflorinelanghel4267 - 30.03.2023 17:08

Good job Eater. Thanks a lot for details. Did you think to describe in the same way the mouse device protocol?

Ответить
@___._.__._._._._..__.._
@___._.__._._._._..__.._ - 12.04.2023 02:20

What a great oscilloscope:)

Ответить
@kmpnelson
@kmpnelson - 21.07.2023 21:24

You do an amazing job of explaining these things, I really appreciate your videos and am actively trying to get my early teen nephew into them and will buy your kits. Thanks for passing on your knowledge in a manner that is very easy to follow and understand.

Ответить
@eternaldoorman5228
@eternaldoorman5228 - 31.07.2023 18:26

I will never again throw away one of those little green PS2-USB adaptors!

Ответить
@alexandrzalessky2744
@alexandrzalessky2744 - 07.11.2023 12:17

Great video! Is it possible to explain transfer of audio data via USB in this obvious manner? would be very useful for all who are passionate about audio)

Ответить
@LiamDennehy
@LiamDennehy - 11.01.2024 21:28

I'd love too how MIDI is encoded

Ответить
@Marc_Wolfe
@Marc_Wolfe - 04.02.2024 13:15

Now connect a few varied devices through a hub and sniff the hub link.

Ответить
@PewDiePie777
@PewDiePie777 - 02.05.2024 14:23

I can't stop watching this.

Ответить
@samuelmantap7251
@samuelmantap7251 - 31.05.2024 16:23

Thanks 👍💯

Ответить
@markuscwatson
@markuscwatson - 23.06.2024 04:13

Ben, do you film your self pointing at things then put audio over top? I can never tell for sure.

Ответить
@jeffdahl5298
@jeffdahl5298 - 12.10.2024 02:54

Is there any SW to troubleshoot enumeration problems? I'm trying to use the AT90USB and windows reports a problem during enumeration but no specific details.

Ответить