EmbDev.net

Forum: µC & Digital Electronics can 2 Arduinos communicate via USB ?


Author: Gerald Trost (Guest)
Posted on:

Rate this post
1 useful
not useful
Hi All!

for a new project I would connect 2 Arduino Nano
to a USB HUB on my computer.

Is there a way the 2 Arduinos could communicate
in this  configuration via the existing USB cables ?

thanks, Gerald

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
1 useful
not useful
Gerald Trost wrote:
> I would connect 2 Arduino Nano to a USB HUB on my computer.
> Is there a way the 2 Arduinos could communicate in this configuration
> via the existing USB cables ?
No, because the hub is not able to route any information directly from 
one of the end points to the other. You must communicate between the 
arduinos over the PC: one sends its data to the PC, where a piece of 
softwar eis running that puts that data over to the other arduino.

Author: Marc Vesely (Company: Vescomp) (logarithmus)
Posted on:

Rate this post
1 useful
not useful
Gerald Trost wrote:
> Is there a way the 2 Arduinos could communicate
> in this  configuration via the existing USB cables ?

 short and sweet:

 NO.

Author: Herbi (Guest)
Posted on:

Rate this post
1 useful
not useful
sweeter ...

YES ... if you use the PC as a relay station. Write a driver which 
receives on on virtual comport and relays the data to the other virtual 
comport.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig