This project is read-only.

How to detect GPS's current port

May 27, 2010 at 5:50 PM

Hi all,

I would like to know that is there a way to detect GPS's current port (COM1, COM2 or COM3)? and is there a way GPS.NET can select a specific GPS device from 2 or more GPS devices which are attached on the same PC?

Thank you for your help.


May 27, 2010 at 6:21 PM

Yes and yes.

You can use the Devices.GpsDevices property to enumerate all of the detected GPS devices on the system.  Or if you only care about bluetooth or serial devices, then you can use the Devices.BluetoothDevices or Devices.SerialDevices property instead.

You can use the SerialDevice.Port or SerialDevice.PortNumber property to determine the COM port number of any given serial device.



May 27, 2010 at 7:01 PM

Hi Bigstick,

Thanks for your reply, it works like a charm.


Nov 9, 2010 at 9:43 AM

Hello linhungsam and Bigstick,


is it possible to post an example for the manually settet COM-Port Device?

Thank you for your help.


Bye RobbeEDE

And many thanks to the project...