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. Can you make a serial port hooking program?

Can you make a serial port hooking program?

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
5 Posts 5 Posters 2 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
    Member_15900670
    wrote on last edited by
    #1

    Hi... We need some program. We are using a POS equipment. some program must be printed by POS. before printing we need a hooking a text message from com port. 1. When the program start. we must find a com port which com port is conneced with POS equipment. 2. Whenever the com port is used for printing. the text message must be returened to some way. - the way can be suggested to you. This text message will be used by another program.

    L CPalliniC J C 4 Replies Last reply
    0
    • M Member_15900670

      Hi... We need some program. We are using a POS equipment. some program must be printed by POS. before printing we need a hooking a text message from com port. 1. When the program start. we must find a com port which com port is conneced with POS equipment. 2. Whenever the com port is used for printing. the text message must be returened to some way. - the way can be suggested to you. This text message will be used by another program.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Take a look at Serial port programming using Win32 API (Windows) - Aticleworld[^] and Serial port I/O[^] for suggestions.

      1 Reply Last reply
      0
      • M Member_15900670

        Hi... We need some program. We are using a POS equipment. some program must be printed by POS. before printing we need a hooking a text message from com port. 1. When the program start. we must find a com port which com port is conneced with POS equipment. 2. Whenever the com port is used for printing. the text message must be returened to some way. - the way can be suggested to you. This text message will be used by another program.

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        See Null-modem emulator (com0com) - virtual serial port driver for Windows[^].

        "In testa che avete, Signor di Ceprano?" -- Rigoletto

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • M Member_15900670

          Hi... We need some program. We are using a POS equipment. some program must be printed by POS. before printing we need a hooking a text message from com port. 1. When the program start. we must find a com port which com port is conneced with POS equipment. 2. Whenever the com port is used for printing. the text message must be returened to some way. - the way can be suggested to you. This text message will be used by another program.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          You are describing a case where you have an existing application flow: Serial port to POS. And you want to put monitoring place to see what that serial traffic looks like. So you don't want to replace or modify the existing code but rather just see what is happening. So you should google for the following

          windows serial port intercept

          That said however I would suggest that if the POS code is under your control that the POS code itself should be modified to provide the same sort of monitoring. Log files (search for libraries) can both be used to control and collect such data.

          1 Reply Last reply
          0
          • M Member_15900670

            Hi... We need some program. We are using a POS equipment. some program must be printed by POS. before printing we need a hooking a text message from com port. 1. When the program start. we must find a com port which com port is conneced with POS equipment. 2. Whenever the com port is used for printing. the text message must be returened to some way. - the way can be suggested to you. This text message will be used by another program.

            C Offline
            C Offline
            charlieg
            wrote on last edited by
            #5

            Meanwhile "member" - describe your background. Still in school?

            Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

            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