embedded - Programmable usb host to host controller -


further this question, i'm looking device allow me connect 2 usb hosts, while still being programmable. can following:

masquerade arbitrary usb device

take input pc , nothing pass on other host.

i've been looking microcontroller (preferably pre-assembled) allow me this, have far come blank. know of controller (preferably cheap) allow me this?

take input pc , nothing pass on other host.

this non-sensical usb perspective. usb host-based protocol: device never send data unless host requests first. keep in mind here, 'host' , 'device' have specific meanings here within protocol itself; can think of 'host' master , 'device' slave. these roles baked usb controller. there no way convince standard usb controller in given pc or peripheral swap roles. there add-in cards pcs usb device controllers (making pc act device), 'cheap' not word use describe them.

what trying create usb device device bridge. so, alright, need have 2 usb(2.0) device controllers (maybe not expensive, micros have on-the-go controllers). have them pass meaningful each other. that's hard because, mentioned above, hosts must tell device send data, , can send data device whenever wants. assuming game controller shows hid device (assuming console doesn't listen weird, custom descriptor, , use weird, custom protocol), interrupt pipes used transfer data. pipe guaranteed polled @ minimum rate. have console requesting data @ rate, not fixed, , host-as-gamepad sending data @ rate. it's going impossible 2 sync up, you'll need kind of decent sized buffer on gadget you're trying create, adds more $$ , more complexity.

usb pretty fast. in high-speed (usb2.0), frames 125 microseconds long. means have completing requests @ around 8khz, seems slow compared clock speed of microcontoller, keep in mind have doing else @ once. i'm not sure if there's hobbyist-level microcontroller that's going have need, 1 don't need roll own usb stack.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -