Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Port Scanner

Port Scanner

Scheduled Pinned Locked Moved Visual Basic
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rfrank5356
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • R rfrank5356

      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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups