2021-03-27 08:00 AM
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.
2021-03-27 10:33 AM
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
2021-03-27 10:45 AM
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.
2021-03-27 02:59 PM
> 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
2021-03-28 04:06 AM
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?