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. C#
  4. SerialPort auto find?

SerialPort auto find?

Scheduled Pinned Locked Moved C#
questionlearningworkspace
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.
  • D Offline
    D Offline
    Dirso
    wrote on last edited by
    #1

    Hi, I work with RS232 printers and sometimes they have just a few changes in the serialport configuration, like one has Parity=Even and other has Parity=None, or sometimes in the baudrate. My questions are: 1) Does SerialPort has any builtin function that could read this configuration, without me changing it manually (I can change the port name manually of course) 2) If not, does anyone have ever implemented such feature? What would be a nice (and safe) approach for that? Thanks, Dirso

    D 1 Reply Last reply
    0
    • D Dirso

      Hi, I work with RS232 printers and sometimes they have just a few changes in the serialport configuration, like one has Parity=Even and other has Parity=None, or sometimes in the baudrate. My questions are: 1) Does SerialPort has any builtin function that could read this configuration, without me changing it manually (I can change the port name manually of course) 2) If not, does anyone have ever implemented such feature? What would be a nice (and safe) approach for that? Thanks, Dirso

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      AFAIK rs232 is too legacy an interface to advertise its connection settings. Unless there's another app involved that sends the config changes to the printer and keeps a record i believe you're SOL.

      Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

      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