Skip to main content
Visitor II
March 27, 2021
Question

USB Device HUB class on f103

  • March 27, 2021
  • 2 replies
  • 1205 views

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.

    This topic has been closed for replies.

    2 replies

    Super User
    March 27, 2021

    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

    VLukyAuthor
    Visitor II
    March 27, 2021

    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.

    Super User
    March 27, 2021

    > 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

    VLukyAuthor
    Visitor II
    March 28, 2021

    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?