Menu

#72 Unable to put quotes inside commandline strings eg Sendstr="AT!ENTERCND="A710""

v2.0.0.70
fixed
nobody
None
V3.0.0.30
5
2017-02-03
2016-01-28
Yu-Diann Lu
No

"C:\Program Files (x86)\BEL\Realterm\realterm.exe" baud=115200 port=25 data=8n1 rows=50 cols=80 display=3 sendstr="0123456789" sendstr="9876543210" sendstr="AT!ENTERCND="A710"" CR

How can I embedded " in the sendstr in script file?
Thanks
Lu

Discussion

  • Simon Bridger

    Simon Bridger - 2016-01-28

    Hmm never mind me spouting BS, it doesn't seem to work, the double quotes don't make it through into Realterm.

    So use an escape sequence ie \x22 see http://www.asciitable.com/
    sendstr="AT!ENTERCND="A710\x22"

    When you press SENDASCII this will be expanded to double-quote

    As above note, SENDSTR is depreciated after 3.0.0.23, so you should change it or remember that it will break in future.


    To help in debugging, you can use the INI dialog (from MISC tab). There is a "view parameters" button that will let you see what is actually on the commandline of RT ie what cmd passed through.

    Currently it seems that no matter what you do the double-quote is not making it through to the commandline RT sees, but this might be a delphi thing...

     
    • Yu-Diann Lu

      Yu-Diann Lu - 2016-01-28

      Thank you, /x22 work perfectly.
      I try to download newer version, but can not figure out yet! could you send
      me a link?
      how the ini file create and use?

      Thanks
      Lu

      On Thu, Jan 28, 2016 at 3:44 PM, Simon Bridger crun@users.sf.net wrote:

      Hmm never mind me spouting BS, it doesn't seem to work, the double quotes
      don't make it through into Realterm.

      So use an escape sequence ie \x22 see http://www.asciitable.com/
      sendstr="AT!ENTERCND="A710\x22"

      When you press SENDASCII this will be expanded to double-quote

      As above note, SENDSTR is depreciated after 3.0.0.23, so you should change
      it or remember that it will break in future.


      To help in debugging, you can use the INI dialog (from MISC tab). There is
      a "view parameters" button that will let you see what is actually on
      the commandline of RT ie what cmd passed through.

      Currently it seems that no matter what you do the double-quote is not
      making it through to the commandline RT sees, but this might be a delphi
      thing...


      Status: open
      Group: v1.0 (example)
      Created: Thu Jan 28, 2016 04:33 PM UTC by Yu-Diann Lu
      Last Updated: Thu Jan 28, 2016 07:57 PM UTC
      Owner: nobody

      "C:\Program Files (x86)\BEL\Realterm\realterm.exe" baud=115200 port=25
      data=8n1 rows=50 cols=80 display=3 sendstr="0123456789"
      sendstr="9876543210" sendstr="AT!ENTERCND="A710"" CR

      How can I embedded " in the sendstr in script file?
      Thanks
      Lu


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/realterm/support-requests/25/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Simon Bridger

    Simon Bridger - 2016-01-29

    Ticket moved from /p/realterm/support-requests/25/

    Can't be converted:

    • _milestone: v1.0 (example)
     
  • Simon Bridger

    Simon Bridger - 2016-01-29
    • summary: Sendstr="AT!ENTERCND="A710"" --> Unable to put quotes inside commandline strings eg Sendstr="AT!ENTERCND="A710""
    • status: open --> accepted
    • Fixed_in_Version: --> V3.0.0.30
    • Version: v1.0 (example) --> v2.0.0.70
     
  • Simon Bridger

    Simon Bridger - 2016-01-29

    Please try the new version I have made for you:
    If you are not using V3, install V3.0.0.29 installer from www.i2cchip.com/realterm

    Then test this new version https://www.dropbox.com/s/uwci0lcucobdncr/realterm.exe?dl=0
    and report back here.

    This version accepts escaped quotes like this:
    send1="AT!ENTERCND=""A710"""

     
  • Simon Bridger

    Simon Bridger - 2017-02-03
    • status: accepted --> fixed
     

Log in to post a comment.