Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved Serial spy: has anybody already made somehing like this?

    General and Desktop
    3
    6
    1009
    Loading More Posts
    • 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.
    • C
      cdwijs last edited by

      Hi All,

      I'm debugging a device that is connected via a serial port to my PC. I'm now using "Advanced Serial Port Monitor" from aggsoft.com. I am using it in dual port mode, where it listens to 2 serial ports. The Rx wires from the two comm channels are wired into the Rx and the Tx line that are used to talk to the device. In total I use 3 serial ports.

      I am looking for an open source alternative, but i could not find one. Does anybody know such a program?

      Cheers,
      Cedric

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        im using
        http://com0com.sourceforge.net/
        to allow to me to bridge virtual comports and in that way
        let one app to send to other app on same pc. (like a virtual serial wire)
        ( this is due to pc having 1 serial and i got tired of carry USB serials adapters around)
        Im not sure you need this, but no hurt in mention it :)

        And for serial app, i use
        https://sourceforge.net/projects/realterm/

        Not sure if relterm can do what you want ( i not sure what dual mode covers for SPM) but in later version realterm has monitoring mode for spying.

        1 Reply Last reply Reply Quote 0
        • webzoid
          webzoid last edited by

          com0com is a good shout actually but I don't think it would allow you to "spy" on a physical serial port - for virtual-to-virtual ports, its ideal. I have read somewhere on stackoverflow where someone seems to indicate that it can hook up to a physical port but I've not been able to recreate that.

          I'm about to embark on trying to write a nice Qt wrapper to encapsulate the com0com stuff but sometimes, only USB-to-serial ports will do in a world full of archaic sensors!

          1 Reply Last reply Reply Quote 0
          • C
            cdwijs last edited by

            I use this USB to 4 serial port converter:
            https://www.conrad.nl/p/manhattan-usb-2.0-adapter-4x-d-sub-stekker-9-polig-1x-usb-2.0-bus-b-zilver-986367

            This makes it easy to wire two ports to spy on the 3rd port.

            C 1 Reply Last reply Reply Quote 1
            • C
              cdwijs @cdwijs last edited by

              @cdwijs said in Serial spy: has anybody already made somehing like this?:

              I use this USB to 4 serial port converter:
              https://www.conrad.nl/p/manhattan-usb-2.0-adapter-4x-d-sub-stekker-9-polig-1x-usb-2.0-bus-b-zilver-986367

              This makes it easy to wire two ports to spy on the 3rd port.

              Hi all,
              I have written a program that can monitor 2 serial ports, and dump it onto the screen and into a file. It's tested on windows, but I would be surprised if it didn't work on all other platforms supported by Qt.
              https://github.com/cdwijs/rs232monitor

              Comments and patches welcome.

              Cheers,
              Cedric

              mrjj 1 Reply Last reply Reply Quote 2
              • mrjj
                mrjj Lifetime Qt Champion @cdwijs last edited by

                @cdwijs
                Nice. Thank you for sharing.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post