Hello, I am using 32feet.NET, .NET Compact 2.0 (SP1), Windows Mobile 5.0. I am writing a PDA-based control application for a measuring device. The PDA has built-in Bluetooth (Microsoft stack), the device has a RS232 port with a Bluetooth dongle. RS232 settings are 9.600 baud, 8N1, no handshake (device does not support any). Data throughput is low, less than 100 bytes per second.
Protocol manner: The PDA periodically inquires various settings from the device. Occasionally, a setting is changed.
32feet.NET is used to create a BluetoothSerialPort which is opened and used through the System.IO.Ports.SerialPort class.
The application runs fine for a couple of minutes, sometimes even for an hour, but suddenly the PDA stops transmitting and a System.IO.IOException is thrown from the System library. Exactly spoken:
System.IO.Ports.SerialStream.Write(byte[] array, int offset, int count, int timeout)
calls
WinIOError ()
after failure of WriteFileNative(). I see this from the call stack when the exception is thrown but I cannot determine what leads to this condition.
When I use a wired RS232 connection instead of Bluetooth, everything is stable.
Does anyone have a hint for me what might be the problem or where I should look for it?
Any more information needed? Then ask.
Thanks for your help
Achim Oetringhaus