Greg,

can you help with this one? 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.
I'm attaching dmesg from the output below, kernel is 2.6.7-bk20.


in one window:

f178:~ # dd if=/root/foo bs=42 of=/dev/rm
0+1 records in
0+1 records out
f178:~ # dd if=/root/foo bs=42 of=/dev/keyspan
0+1 records in
0+1 records out
f178:~ # xxd foo 
0000000: 6162 630a 0a0a                           abc...


and in the other window:

f178:~ # lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 004: ID 06cd:0104 Keyspan PDA [prerenum]
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
f178:~ # l /dev/rm /dev/keyspan
lrwxrwxrwx  1 root root 7 Jul  8 17:21 /dev/keyspan -> ttyUSB0
lrwxrwxrwx  1 root root 7 Jul  8 17:21 /dev/rm -> ttyUSB1
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
0000070: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62  .b.b.b.b.b.b.b.b
0000080: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62  .b.b.b.b.b.b.b.b
0000090: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62  .b.b.b.b.b.b.b.b
00000a0: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62  .b.b.b.b.b.b.b.b
00000b0: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62  .b.b.b.b.b.b.b.b
00000c0: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62  .b.b.b.b.b.b.b.b
00000d0: 0a62 0a62 0a62 0a62 0a62 0a62 0a62 0a62  .b.b.b.b.b.b.b.b

f178:~ # xxd /dev/rm

This read never returns, probably because xxd waits for a newline. cat
just prints 'abc' without newline.

here is some earlier output example:

f178:~ # xxd /dev/keyspan
0000000: 6162 630a 6162 0a62 0a62 0a62 0a62 0a62  abc.ab.b.b.b.b.b
0000010: 0a62 0a62 0a62 0a0a 0a0a 0a0a 0a0a 0a0a  .b.b.b..........


-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG

Attachment: allmessages.bz2
Description: Binary data

Reply via email to