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. Serial Communication

Serial Communication

Scheduled Pinned Locked Moved C#
5 Posts 3 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
    dwolver
    wrote on last edited by
    #1

    Looking for libraries for threaded serial communication. Anyone have some links, free or relatively inexpensive.

    L 1 Reply Last reply
    0
    • D dwolver

      Looking for libraries for threaded serial communication. Anyone have some links, free or relatively inexpensive.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, I'm unaware of any serial library, and if one existed, I would probably not use it. I use the SerialPort class directly, and adapt architecture, protocols, and code to the various needs I may have. :)

      Luc Pattyn


      I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


      Local announcement (Antwerp region): Lange Wapper? Neen!


      D 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, I'm unaware of any serial library, and if one existed, I would probably not use it. I use the SerialPort class directly, and adapt architecture, protocols, and code to the various needs I may have. :)

        Luc Pattyn


        I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


        Local announcement (Antwerp region): Lange Wapper? Neen!


        D Offline
        D Offline
        dwolver
        wrote on last edited by
        #3

        Do you find that the .net component is fast enough to perform at high baudrates, and handle other application processing of data from the serialPort?

        L D 2 Replies Last reply
        0
        • D dwolver

          Do you find that the .net component is fast enough to perform at high baudrates, and handle other application processing of data from the serialPort?

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi, I used serial ports a lot before .NET existed, using standard Win32 functions. From my .NET serial experience, I have no reason to claim .NET has added a lot of overhead to those functions, however I do not have proof to the contrary either. BTW: Under high communication loads, I would not be inclined to use the DataReceived event; I'd rather use a separate thread with an outstanding Read. That way I'm in charge of how much data gets read and when it gets processed, as DataReceived lacks a clear specification. :)

          Luc Pattyn


          I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


          Local announcement (Antwerp region): Lange Wapper? Neen!


          1 Reply Last reply
          0
          • D dwolver

            Do you find that the .net component is fast enough to perform at high baudrates, and handle other application processing of data from the serialPort?

            D Offline
            D Offline
            dybs
            wrote on last edited by
            #5

            I use the SerialPort class a lot in my work, and haven't had any issues. One of my current projects uses 921600 baud (fastest you can set in HyperTerminal) and it's been performing fine. Dybs

            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