0
\$\begingroup\$

I have a Sparkfun EL sequencer board, which uses the FTDI interface to connect to a USB cable. I would like to hook up a MakeyMakey via USB and communicate between the two. I have not had any success by hooking the two via a USB hub.

Is it possible to communicate between the FTDI/USB cable to another USB? Do I need to wire these together directly via USB? Are then even compatible?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

No, it is not possible to interconnect two USB slave devices, even with a hub. You would need to have a USB host device upstream of the hub to shuffle data between them.

There exist embedded USB host devices which could be made to do this, but programming them for one peripheral is tricky enough. Therefore instead of using one to shuffle data between two slaves, it is probably more practical to use the embedded USB host to talk to only device, and use it's serial UART (pretty much all, except perhaps for highly specialized chips would have them) in place of the USB serial cable, as this will make the overall software simpler than trying to juggle two slaves downstream of a hub. An exception would be if the embedded hub is really a miniaturized full featured computer with a conventional operating system and USB host stack; ie, on something like a raspberry pi you would just want to write software to shuffle data between the peripherals, possibly even (depending on the slaves and drivers) using serial APIs rather than USB APIs.

Another option, if both USB slave devices are ultimately USB-serial converters, would be to disable that functionally and directly connect their serial UARTS with a crossover cable (and any voltage translation such as 3.3v - 5v that might be necessary).

\$\endgroup\$
2
  • \$\begingroup\$ Thanks for the info. I've found what looks like a reasonable alternative I can try: arduino.cc/en/Tutorial/MasterWriter \$\endgroup\$ Commented Sep 13, 2013 at 17:20
  • 1
    \$\begingroup\$ Sure, if you have available I2C ports on both boards, you can probably use that instead of USB or asynchronous serial. It will likely require changes to their software, but probably simpler than making an embedded host juggle two USB slaves. \$\endgroup\$ Commented Sep 13, 2013 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.