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 / C++ / MFC
  4. Monitor serial port activity

Monitor serial port activity

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 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.
  • M Offline
    M Offline
    Mehdi Mousavi
    wrote on last edited by
    #1

    Hi, Is there anyway to monitor an already opened serial port's activity? Any help would be highly appreciated, Cheers, Mehdi

    R F 2 Replies Last reply
    0
    • M Mehdi Mousavi

      Hi, Is there anyway to monitor an already opened serial port's activity? Any help would be highly appreciated, Cheers, Mehdi

      R Offline
      R Offline
      RockNix
      wrote on last edited by
      #2

      Hmmm, I would propose to write a kind of driver which grabs the data flow between the application and the rs232-driver. There are many ways to do that. If you are not really in writing win32 drivers try api-hooking. That means you have to do a kind of overwriting functions used to handle the serial port like CreateFile(), ReadFile(), WriteFile() and so on. If you did the application doesn`t really call the functions from user32.dll or whatever but yours, keep the data and then call the original functions from system dlls and no one will worry. Take a look at "Programming Applications for MS Windows" by Jeffrey Richter - you will find some chapters about api-hooking, dll injecting and things like that. So far ... CU Mario /// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------

      1 Reply Last reply
      0
      • M Mehdi Mousavi

        Hi, Is there anyway to monitor an already opened serial port's activity? Any help would be highly appreciated, Cheers, Mehdi

        F Offline
        F Offline
        Fredrik Skog
        wrote on last edited by
        #3

        This link could maybe get you started? Click here Cheers,
        /Fredrik

        Sonork ID: 100.11430:PhatBoy

        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