Hi all,
I have a beaglebone black (BBB - currently running kernel v3.12) with OTG in peripheral mode on usb bus#1 and a host port to connect devices
on usb bus#2:
usb bus#1: connect OTG on BBB (mini-B) as a musb peripheral gadget (via gadgetfs) to another PC host (e.g. linux, windows, etc)
usb bus#2: connect a hub to BBB host (type A)
+ using libusb to control the hub
+ relay all traffics from host->musb gadget->libusb->hub->(applicable multiple devices hot-plugged to the hub), and vice versa
1. Are P2 traffics for address 0 visible to OTG musb pheripheral on bus#1? What code in musb gluer/core (and even firmware) can be used/revised to retrieve/handle them?
2. To further intercept P3 traffics, what code usage/change in musb gluer/core (and even firmware) would be necessary to further retrieve messages addressed to endpoints of individual devices and relay them to the HUB (so the HUB can broadcast to individual devices), and also forward messages from devices received via hub (with libusb) back to host via OTG musb peripheral gadget?
Thanks a lot in advance,
Yuangao