T
Toke Eskildsen
I'm developing an application for an iPaq Pocket PC 5550, that uses a
Holux GPSlim 236 GPS-unit. I'm using C# and Visual Studio 2005 b2.
I want to receive data from the GPS unit using Bluetooth. The iPaq used
the Widcom/Broadcom-stack, so I know that direct Bluetooth requires the
drivers from Broadcom or BTAccess. Right now, I just want to use the
virtual COM-port.
When I try to connect to COM8, the iPaq asks me to select a Bluetooth-
device. I select the Holux GPS and my program throws an IOException at
SerialStream.QinIOError() at SerialStream.CheckResult() at
SerialStream.SetBufferSizes() at SerialPort.Open().
The relevant code is very simple:
SerialPort port = new SerialPort("COM8");
port.BaudRate = 38400;
port.DataBits = 8;
port.Parity = Parity.None;
port.StopBits = StopBits.One;
try {
port.Open();
}
catch (Exception ex) {
datastr = "Exception: " + ex.Message + " " + ex.StackTrace;
}
I've tried using vxHpc http://www.cam.com/vxhpc.html to make a "Direct
Connect - Async" to "Bluetooth Null Modem". That worked as it should,
so it seems that the GPS and the iPaq Bluetooth are fine.
Any ideas as to why the simple SerialPort-example doesn't work?
Holux GPSlim 236 GPS-unit. I'm using C# and Visual Studio 2005 b2.
I want to receive data from the GPS unit using Bluetooth. The iPaq used
the Widcom/Broadcom-stack, so I know that direct Bluetooth requires the
drivers from Broadcom or BTAccess. Right now, I just want to use the
virtual COM-port.
When I try to connect to COM8, the iPaq asks me to select a Bluetooth-
device. I select the Holux GPS and my program throws an IOException at
SerialStream.QinIOError() at SerialStream.CheckResult() at
SerialStream.SetBufferSizes() at SerialPort.Open().
The relevant code is very simple:
SerialPort port = new SerialPort("COM8");
port.BaudRate = 38400;
port.DataBits = 8;
port.Parity = Parity.None;
port.StopBits = StopBits.One;
try {
port.Open();
}
catch (Exception ex) {
datastr = "Exception: " + ex.Message + " " + ex.StackTrace;
}
I've tried using vxHpc http://www.cam.com/vxhpc.html to make a "Direct
Connect - Async" to "Bluetooth Null Modem". That worked as it should,
so it seems that the GPS and the iPaq Bluetooth are fine.
Any ideas as to why the simple SerialPort-example doesn't work?