I'm investigating GPS.NET for use on our various handheld fleets across the UK.
But I'm having trouble getting it to work on a Casio DTX-30 (Windows Mobile Classic 6)
In this method, in the background thread:
public override int Read(byte buffer, int offset, int count)
_Result = NativeMethods.ReadFile(_Handle, buffer, (uint)count, out _BytesTransmitted, IntPtr.Zero);
if (!_Result) CheckError();
It blocks forever on NativeMethods.ReadFile().
I've tried changing the timeouts in the SerialStream constructor:
_Timeouts.ReadIntervalTimeout = 3000;
// Timeout "multipliers" (per-byte timeouts) are not necessary
_Timeouts.ReadTotalTimeoutMultiplier = 0;
_Timeouts.WriteTotalTimeoutMultiplier = 0;
// Set default read/write timeouts
//_Timeouts.ReadTotalTimeoutConstant = (uint)SerialDevice.DefaultReadTimeout.TotalMilliseconds;
//_Timeouts.WriteTotalTimeoutConstant = (uint)SerialDevice.DefaultWriteTimeout.TotalMilliseconds;
_Timeouts.ReadTotalTimeoutConstant = 10;
_Timeouts.WriteTotalTimeoutConstant = 10;
But it does nothing.
Using Casio's own internal GPS test app, the device is working correclty and returns a lock.
It uses the intermediate driver.
Can anybody assist is getting this to work please?