LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-19-2013, 11:56 PM   #1
dizzy13
LQ Newbie
 
Registered: Apr 2013
Location: Silly Valley
Posts: 5

Rep: Reputation: Disabled
USB-xover-USB cable -- emulate USB HID -- hardware/driver options?


[ Amazingly the previous QA engineer devised a arduino robot that manipulates the mouse "by hand" as it were. No, it works like you'd expect, but is cool to watch. ]

I need to use a Linux box to operate a second box, a desktop. It needs to operate in two modes. In both modes (this already works) the DVi output of the second box is displayed on the Linux console with annotations.

Mode 1) user uses mouse & keyboard to point click and type into displayed window. Input is captured—only at the level of x,y + button-press-release for the mouse, and key press-release for the keyboard, with millisecond timings—and both recorded to file and forwarded over a USB-USB cable to second box.

Mode 2) previously recorded data is played back either straight, or with dithering of x,y, timings, and possibly alterations to which button is clicked, which key is pressed.

Had been sending data over ethernet and emulating USB directly on the second box, but this only works for a couple subject second boxes (linux, apple).

I can purpose build boxes for this, but the goal is to be able to use anything as a second box and it will just see an ordinary keyboard / mouse (hopefully on a single cable). Well, the goal might be to use a Windows second box without having to touch any windows software.

What is a good USB-USB cable for this? Any limitations on USB chipsets that work for this purpose? Any driver comments?
 
Old 04-23-2013, 05:13 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
If you can, in any way possible go with ethernet, far superior (spelling?) throughput. speed/bandwidth/responsivness.

But if tethering or docking devices, rather than a cable, usb-wireless devices may help.

As to what I gather from the question, Been thinking about it...

the physics are, usb up to 2.0(ver)

has 4 wires. 2 data and 2 power.

When connecting 2 powered devices (like 2 pc's) a cross-over type device in required...

so you don't blow a chip from a power missmatch (+>+ on the cable to the chip,) "the smoke comes out and the chip won't work again".

Usually u use a hub, but if neither or only one of the devices is powered, you may communicate with a cross-over cable.

you cross over the data wires and leave the power wires as is. This will stop the powwer frying chips, but may not work with todays pnp tech.

There's plenty of diagrams out there, and usb-2-usb networking has been developed since I started . ;-)

Your project looks interesting...

Cheers, Glenn

Last edited by GlennsPref; 04-23-2013 at 05:14 AM. Reason: gramma
 
Old 04-23-2013, 07:42 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
To further elaborate on GlennsPref post, USB works as a master (controller) / slave so regardless of power you can not directly connect two controllers together with regular cables. As stated there are USB data transfer cables which are supported in linux but are typically configured as an ethernet connection (via usbnet).
 
Old 04-23-2013, 09:48 AM   #4
dizzy13
LQ Newbie
 
Registered: Apr 2013
Location: Silly Valley
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you. Need a special cable because they will both try to master and smoke would ensue. The ethernet I already tried and it's too cumbersome because I'm not doing networking or file transfer, I need to do Mouse/Keyboard.

So I guess the problem is finding an alt to usbnet, or writing my own.
 
Old 04-24-2013, 08:24 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
If, ... the units supply power to the usb ports, could you use usb-802. wireless?

Just a guess, been ages since I was at the work bench.

The parts to assemble usb plugs and cable may be bought from the net or your closest city.

Make your own passive x-over box, even with switches to allow one end to be master (!!!Dangerous!!!).

But I'd give the x-o data lines a go, with out power connections.

Last edited by GlennsPref; 04-24-2013 at 08:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux usb gadget HID driver problem Sebteams69 Linux - Newbie 7 06-12-2012 02:24 PM
[SOLVED] USB driver from HID to TTY jacquesdirac Linux - Hardware 2 09-22-2010 09:48 AM
USB HID mouse driver on 2.6 kernel macarthy Linux - Newbie 2 04-25-2010 05:27 AM
Emulate USB floppy to boot from USB.. feasible? Q4U Linux - Hardware 1 01-31-2007 03:24 PM
USB hid.o hijacking my USB Printer Relativity Linux - Hardware 0 12-09-2003 08:56 PM


All times are GMT -5. The time now is 06:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration