Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Ubuntu-to-Ubuntu using USB

  Date: Feb 08    Category: Unix / Linux / Ubuntu    Views: 556

I have an Ubuntu machine controlling a process. I need to send single-character
commands to that machine from an Ubuntu laptop. I'd like to do it with a "USB
cable" connecting the two Ubuntu machines. I know you can't do that with just a
cable - you need some electronics in between (since each of the Ubuntu machines
is a USB host). Has anyone done this before, and/or can recommend a commercial
product that will interconnect the two machines? I know there are such fancy
cables available for transferring files between Windows machines, but my app is
different: I want to move single characters, not files, and I hope to use the
"automatic" Linux HID drivers on each machine, rather than running a special
program on one or both machines. I just want to type on the laptop, and then
with a simple program of my own development running on the other machine, be
able to see the incoming characters on the screen of that receiving machine.
Thanks in advance for any ideas.



4 Answers Found

Answer #1    Answered On: Feb 08    

This sounds like a good application for serial ports and a "null modem" serial
cable. If your computers don't have any, there are USB dongles which provide a
serial port.

Answer #2    Answered On: Feb 08    

You might download the arduino IDE and look at the source to see how
they do it. I have been playing with the Uno board and found the serial
communication quite good.

Answer #3    Answered On: Feb 08    

I worked my way up from Administrator to Network Administrator for a small
company almost 20 years ago and tried out a "cardless" network to link 3
computers. It came with both serial and parallel port cables. The parallel
ones were much faster but of course that meant you couldn't attach a
printer - a major issue. The idea was a flop as it was much, much slower
than the slowest 10 base 2 coaxial cable Ethernet network. Even small file
transfers brought the systems to its knees for long periods.

When Ethernet cards came down to $150 each we upgraded and never looked
back. Windows for Workgroups provided the networking software.

But that would not be your situation, so it should be quite fast enough for
your needs. You will need some custom software which could be expensive.

Answer #4    Answered On: Feb 08    

Question: Is this secondary system networked or networkable (if you
are thinking of USB connections then it must be located physically

That would be a better solution as you could Telnet or FTP or even VPN
to the system to control it.

Didn't find what you were looking for? Find more on Ubuntu-to-Ubuntu using USB Or get search suggestion and latest updates.