[Mono-list] Invalid data from CP2102 USB device

Steve Ricketts velocedge at hotmail.com
Tue Apr 13 10:10:42 EDT 2010

I'm really too new to Linux to know what I'm talking about but could there be
some tty device parameters that are messing up the input.  I was looking at
stty and all the options there and it appears that it can change the way
input it viewed... like stripping the sign bit, assuming UTF-8 input, etc. 
I tried "stty --file /dev/ttyUSB0 -raw" thinking "raw" might not do anything
to the input but there was no change in the data read.  I'm not sure how
long those settings last... or if they have taken at all.  

Here's the output of "stty --file /dev/ttyUSB0 -a" if anyone can make sense
out of it:

linux-nsxk:~/Desktop # stty --file /dev/ttyUSB0 -a
speed 115200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
<undef>; swtch = <undef>;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush
= ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
isig icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke

Do I read this as everything with a minus sign (-) is out and those
parameters without a minus sign are applied?

Any light you can shed on this issue is greatly appreciated, even if it's
not a specific answer.  I'm running out of ideas to chase.


View this message in context: http://n4.nabble.com/Invalid-data-from-CP2102-USB-device-tp1837224p1838452.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list