Olaf --
Olaf Hering wrote: > I have the keyspan working now, and its
directly connected to a PL2303 adapter on the same box. writing to the PL2303 and reading from the keyspan leads to garbage output. Sometimes the newline is repeated to fill the dd blocksize, somethings I get the 'foo' filecontent twice, or even mixed.
One suggestion--from your output it looks like you might have both ttyUSB0 and ttyUSB1 set for echo. If so, they they will echo characters back and forth and lead to this sort of thing.
f178:~ # xxd /dev/keyspan 0000000: 6162 6362 6162 6262 6262 6262 6262 6262 abcbabbbbbbbbbbb 0000010: 6262 6262 620a 0a62 0a62 0a62 0a62 0a62 bbbbb..b.b.b.b.b 0000020: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62 .b.b.b.b.b.b.b.b 0000030: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62 .b.b.b.b.b.b.b.b 0000040: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62 .b.b.b.b.b.b.b.b 0000050: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62 .b.b.b.b.b.b.b.b 0000060: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62 .b.b.b.b.b.b.b.b
You can see what the stty parameters are with "stty -a < /dev/ttyUSB0".
Try "stty -opost -echo -echoe -echok < /dev/ttyUSB0" and the same for /dev/ttyUSB1, to turn off echo and output post processing (like CR/NL mapping).
-- Al
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel