Port Scanner
-
Well thanks ! I am using a Canon EOS with a Canon SDK, and an Allmotion servo control and a Garmin GPS I can use Using com1 As IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM4") on error return com1.WriteLine(CommDataOut) End Using to get to the servo (it is still a bit flaky) - I am using CP2100 usb-to-uart bridge software and it shows in the device window as COM4 Next task is to scan the ports to get the location of the (serial usb) devices - I wil target the Garmin GPS 60 first Any Ideas ?? Thanks !! bob
-
Well thanks ! I am using a Canon EOS with a Canon SDK, and an Allmotion servo control and a Garmin GPS I can use Using com1 As IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM4") on error return com1.WriteLine(CommDataOut) End Using to get to the servo (it is still a bit flaky) - I am using CP2100 usb-to-uart bridge software and it shows in the device window as COM4 Next task is to scan the ports to get the location of the (serial usb) devices - I wil target the Garmin GPS 60 first Any Ideas ?? Thanks !! bob
There is nothing that will scan the ports for a device for you. You have to write the code to attempt to open each COM port using the settings that the device expects (baud, bits, parity, stop bits, ...). If the port opens, you then try to send a command that the device expects and see if you get a correct repsonse. If so, you found it! If not, try the next port.
Dave Kreskowiak Microsoft MVP - Visual Basic