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. Managed C++/CLI
  4. serial port sniffer ( spy or monitor)

serial port sniffer ( spy or monitor)

Scheduled Pinned Locked Moved Managed C++/CLI
c++helptutorial
4 Posts 4 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.
  • S Offline
    S Offline
    szilics
    wrote on last edited by
    #1

    Friends ! I need help ! I have to write a programme in C++ which can listen or sniff the serial port, but without opening the port. The sniffer and the programme which communicates through the serial port has to be on the same PC, I have to write a program which can read ( or listen ) the data that goes out and comes in from the serial port, BUT NOT TO OPEN THE PORT, to let communication programmes communicate through serial ports. If anyone has an idea how to write this sniffer programme, please send me a advise. Many thanks ! Szilard SZ -- modified at 6:08 Thursday 2nd March, 2006

    C R M 3 Replies Last reply
    0
    • S szilics

      Friends ! I need help ! I have to write a programme in C++ which can listen or sniff the serial port, but without opening the port. The sniffer and the programme which communicates through the serial port has to be on the same PC, I have to write a program which can read ( or listen ) the data that goes out and comes in from the serial port, BUT NOT TO OPEN THE PORT, to let communication programmes communicate through serial ports. If anyone has an idea how to write this sniffer programme, please send me a advise. Many thanks ! Szilard SZ -- modified at 6:08 Thursday 2nd March, 2006

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Don't cross-post. Your question is C++ related so it has to stay on the Visual C++ forum, it doesn't belong to this forum (which is for managed).

      1 Reply Last reply
      0
      • S szilics

        Friends ! I need help ! I have to write a programme in C++ which can listen or sniff the serial port, but without opening the port. The sniffer and the programme which communicates through the serial port has to be on the same PC, I have to write a program which can read ( or listen ) the data that goes out and comes in from the serial port, BUT NOT TO OPEN THE PORT, to let communication programmes communicate through serial ports. If anyone has an idea how to write this sniffer programme, please send me a advise. Many thanks ! Szilard SZ -- modified at 6:08 Thursday 2nd March, 2006

        R Offline
        R Offline
        Rick Crone
        wrote on last edited by
        #3

        Why do they have to be on the same PC? If they really don't then make a cable that taps wires TX, RD and Ground (on a 25 pin I think that's 2 3 and 7). Hook the taped lines to the com port on the other machine and you can monitor the traffic.

        1 Reply Last reply
        0
        • S szilics

          Friends ! I need help ! I have to write a programme in C++ which can listen or sniff the serial port, but without opening the port. The sniffer and the programme which communicates through the serial port has to be on the same PC, I have to write a program which can read ( or listen ) the data that goes out and comes in from the serial port, BUT NOT TO OPEN THE PORT, to let communication programmes communicate through serial ports. If anyone has an idea how to write this sniffer programme, please send me a advise. Many thanks ! Szilard SZ -- modified at 6:08 Thursday 2nd March, 2006

          M Offline
          M Offline
          mikanu
          wrote on last edited by
          #4

          there is a program that allows you to do just that, and it's free. That program is called: "PortMon" and it comes in a suite of moitoring software such as FileMon, RegMon etc. ---- www.muzikstor.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