Re:What actually happens when you plug in a USB device? (2007)
by delsarto on Wednesday June 18, 2014 @07:43PM
(#7913580)
(original author here)
Yeah, it was done after I was asked to run a short course on writing drivers, so the focus was on understanding that sort of layer.
But you want to know how old this is? I actually used the word "palmtop" :)
Enumeration is an interesting process -- newly reset devices accept transfers to address zero, until the host assigns a non-zero addres. Then the next device (if their are additional devices detected on a hub, or if the just-enumerated device is a hub with devices below it) can be enumerated (initially responding at 0 after reset), walking the entire tree of hubs and devices (and revisiting it as necessary when hubs report connections and disconnections).