This project is read-only.

Bluetooth error with serialport


seem to have a little error in the message returning below: (sorry for the french), but it seem I'm having a bluetooth error even if i'm not using a bluetooth gps :)
at the samt time, it seem the serialport problem is still there, if the device try to reconnect too many time on a gps device, sometime the port got block by something (the port still been in use)
GPS device ERROR: GeoFramework.Gps.IO.DeviceDetectionException: A security PIN entered for COM5 was incorrect. The device should be re-paired in the Bluetooth Manager. ---> System.UnauthorizedAccessException: L'accès au port 'COM5' est refusé.
à System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
à System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
à System.IO.Ports.SerialPort.Open()
à GeoFramework.Gps.IO.SerialPort.Open() dans C:\Dev\prjTaxi\GPS.Net\Devices\SerialPort.cs:ligne 137
à GeoFramework.Gps.IO.SerialDevice.OpenStream(FileAccess access, FileShare sharing) dans .\GPS.Net\Devices\SerialDevice.cs:ligne 225
à GeoFramework.Gps.IO.Device.Open(FileAccess access, FileShare sharing) dans .\GPS.Net\Devices\Device.cs:ligne 616
à GeoFramework.Gps.IO.SerialDevice.DetectProtocol() dans .\GPS.Net\Devices\SerialDevice.cs:ligne 302