in reply to [OT] Filtering / Highlighting serial port input / PuTTY output

I'm not sure, but maybe under Cygwin you can access the serial port. Cygwin makes the Redmond-thing an "almost-real" OS.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$
  • Comment on Re: [OT] Filtering / Highlighting serial port input / PuTTY output

Replies are listed 'Best First'.
Re^2: [OT] Filtering / Highlighting serial port input / PuTTY output
by afoken (Chancellor) on Aug 13, 2020 at 15:56 UTC
    ... cygwin ...
    Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\alex>apt-get install cygwin 'apt-get' is not recognized as an internal or external command, operable program or batch file. C:\Users\alex>sudo apt-get install cygwin 'sudo' is not recognized as an internal or external command, operable program or batch file. C:\Users\alex>

    *SCNR*

    Yes, it might work, but I had some unpleasent encounters with cygwin, and so I would prefer not to have cygwin installed on my PC.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Since cygwin is undesirable, maybe Windows Subsystem for Linux?

      Or use gnuwin32's grep on the output of putty's plink.exe (which is the command-line client). I am able to successfully plink -batch -ssh ... | grep ... for what I need.

        Or use gnuwin32's grep on the output of putty's plink.exe (which is the command-line client). I am able to successfully plink -batch -ssh ... | grep ... for what I need.

        I was about to complain that I need a serial connection, but plink can do that, too! Cool, I never would have thought of using plink for anything else but SSH and telnet. Thank you, pryrt++.

        plink -serial COM24 -sercfg 115200,8,n,1,N

        ... works for reading debug output from the microcontroller, but my ancient grep binary seems to buffer an insane amount of data before writing. It simply does not output anything when fed with just a few hundred lines. Replacing it with perl (from Strawberry) works fine:

        plink -serial COM24 -sercfg 115200,8,n,1,N | perl -ne "/^(Pct|NRS)/ && + print"

        Now I just have to test it with ConEmu proposed by aitap++.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      What were you trying to do with these commands? UPDATE: Sorry, overlooked your SCNR
      At work I use Cygwin every day and for decades and I am glad that it exists. Never had any problems with it.

      Greetings,
      -jo

      $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$