Quantcast
Channel: 32feet.NET
Viewing all articles
Browse latest Browse all 469

New Post: Lost when Read first bit

$
0
0
Hi,

My problem occurs when I try to read bits from GPS. Not all GPS, only one : SOKKIA GRX2.
Here is my code :
Client = new BluetoothClient();
BluetoothEndPoint ep = new BluetoothEndPoint(BluetoothAddress.Parse(strAdresse),             BluetoothService.SerialPort);
Client.Connect(Ep);
Stream peerStream = Client.GetStream();
...
byte[] buf = new byte[240];
int b = peerStream.ReadByte();
This code works for all GPS I've tested (Holux, Trimble, ...). However, last line stucks my thread for Sokkia GPS. No error throwed, even in debug, the thread is stucked for hours !

Is there something I miss to set or check ?
Thanks in advance.

Viewing all articles
Browse latest Browse all 469

Trending Articles