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. Design and Architecture
  4. I/O Port Pattern

I/O Port Pattern

Scheduled Pinned Locked Moved Design and Architecture
designregexarchitecturequestion
5 Posts 3 Posters 4 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.
  • J Offline
    J Offline
    Ju ncho
    wrote on last edited by
    #1

    I am working in a Program that works with 3 serial ports 1 I/O Board and a Camera. Anyone know about some design pattern made to Asynchronusly read the information on all these devices?

    JO :)

    L 1 Reply Last reply
    0
    • J Ju ncho

      I am working in a Program that works with 3 serial ports 1 I/O Board and a Camera. Anyone know about some design pattern made to Asynchronusly read the information on all these devices?

      JO :)

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Ju@ncho wrote:

      know about some design pattern made to Asynchronusly read the information on all these devices?

      I don't know about design patterns but the Windows API includes Overlapped IO features, is that what you mean?

      J 1 Reply Last reply
      0
      • L led mike

        Ju@ncho wrote:

        know about some design pattern made to Asynchronusly read the information on all these devices?

        I don't know about design patterns but the Windows API includes Overlapped IO features, is that what you mean?

        J Offline
        J Offline
        Ju ncho
        wrote on last edited by
        #3

        No, what i am meaning is a way to encapsulate the Overlapped IO features of serial ports plus other custom overlapped IO features of other devices (ie Adquisitions Boards)in a single design pattern. I think that the observer pattern should work but i am not sure..

        JO :)

        L 1 Reply Last reply
        0
        • J Ju ncho

          No, what i am meaning is a way to encapsulate the Overlapped IO features of serial ports plus other custom overlapped IO features of other devices (ie Adquisitions Boards)in a single design pattern. I think that the observer pattern should work but i am not sure..

          JO :)

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Ju@ncho wrote:

          the Overlapped IO features of serial ports plus other custom overlapped IO features of other devices (ie Adquisitions Boards)

          Ok. I know what Overlapped IO is, I know what Asynchronous is, I have no idea what "IO features of serial ports" or "custom overlapped IO features of Adquisitions Boards" are.

          Ju@ncho wrote:

          I think that the observer pattern should work but i am not sure..

          Well the observer pattern has two sides (observable - observer) where the observer side supports multiplicity. So far you have only discussed the observable side of your scenario so we have no way of knowing if that pattern exists in your problem space. Also I have no idea how or why the "features" you referred to are related to the observer pattern.

          V 1 Reply Last reply
          0
          • L led mike

            Ju@ncho wrote:

            the Overlapped IO features of serial ports plus other custom overlapped IO features of other devices (ie Adquisitions Boards)

            Ok. I know what Overlapped IO is, I know what Asynchronous is, I have no idea what "IO features of serial ports" or "custom overlapped IO features of Adquisitions Boards" are.

            Ju@ncho wrote:

            I think that the observer pattern should work but i am not sure..

            Well the observer pattern has two sides (observable - observer) where the observer side supports multiplicity. So far you have only discussed the observable side of your scenario so we have no way of knowing if that pattern exists in your problem space. Also I have no idea how or why the "features" you referred to are related to the observer pattern.

            V Offline
            V Offline
            VarunSharma43
            wrote on last edited by
            #5

            may be you can have a look at Microsoft's Asyncronous block from MS patterns and practices. not sure. cheers varun.y.sharma@gmail.com

            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