usb problems
Gene Heskett
gheskett at wdtv.com
Sun Oct 12 11:37:21 UTC 2014
On Sunday 12 October 2014 02:41:15 Nils Kassube did opine
And Gene did reply:
> Gene Heskett wrote:
> > I am in need of a tool that will effectively do a ping against a
> > specified USB port, a port I know there is something on the other end
> > of the cable and hub as I just had a printer do a test page over the
> > same cabling. Basically I want to send a $55 down the cable once a
> > second to a specified port, in thgius case /dev/ttyUSB1, for
> > oscilloscope troubleshooting, at least as long as trouble doesn't
> > shoot back... ;-)
>
> If that /dev/ttyUSB1 device is a USB->serial converter, you could treat
> it like any terminal device. Therefore, you can use stty to disable the
> handshaking lines and set the desired speed (e.g. 100 Baud). Then echo
> the desired characters to the device:
>
> stty -F /dev/ttyUSB1 clocal ospeed 100
stty -F /dev/ttyUSB1 clocal ospeed 115200
stty -F /dev/ttyUSB1 clocal ispeed 115200
while true;do echo -n "e" >/dev/ttyUSB1;sleep 1;done
>
> You can cancel the loop with CTRL-C.
>
>
> Nils
This works, I can see the once a second red led flicker. But when
measured with the scope, the baud rate seems to be about 55800 (not 57600)
unless that "e" is a 2 bits high, 2 bits low etc character.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS
More information about the ubuntu-users
mailing list