[MonoDevelop] Reading from a USB device.... attempting anyway

Steve Ricketts velocedge at hotmail.com
Mon Apr 12 08:27:51 EDT 2010


I used BackgroundWorker to set up a thread to continually look at BytesToRead
and grab the data.  It does that ok, but the data is not correct.  It seems
to be consistent, same data every time the same key is pressed, but not the
correct values.  The USB device is an RF receiver that listens to wireless
remote controls.  When I press a button on the wireless remote, I get the
proper packet size (8) but the values are off.  An example below with the
results from the program in Windows:

Linux      Windows (correct values)
0 - 255   255
1 - 186   90
2 - 133   5
3 - 213   184
4 - 128   0
5 - 130   2
6 - 128   0
7 - 145   17

Using the same baud rate on Linux that I do with Windows (128000) I get
nothing from the receiver.  Switching to 115200 I get the data but as I
said, it's incorrect.  No other baud rate gives me any response at all.

Has anyone had any similar issues or know what else I could try?   
-- 
View this message in context: http://n4.nabble.com/Reading-from-a-USB-device-attempting-anyway-tp1835480p1837047.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list