cancel
Showing results for 
Search instead for 
Did you mean: 

USB Device HUB class on f103

VLuky
Associate II

Is it possible to implement device HUB?

(i want my f103 to appear as usb HUB to host PC)

Like a compound device. Cant find any example for some reason.

4 REPLIES 4

You can probably mimic a hub, but with no attached devices. Each device (including the hub) have unique address on the bus, which is handled in hardware.

JW

Well i will just mimic devices too(that is my intention actually).

Hardware address handling look like root of problems to me - after reply with all HUB descriptors, device get addressed. And then, i suspect, usb peripheral will ignore all the data which is not our address, right? And all data that should go to virtual devices will be ignored.

> Hardware address handling look like root of problems to me

That's why I said "with no attached devices". The hub is a device, too, so it has it's own address; and the hardware in STM32 won't handle other than one address.

JW

Obvious follow-up question then: is there is any external USB-SPI bridges or phy chips that do not have that address feature, and generate interrupt every time?