Shop OBEX P1 Docs P2 Docs Learn Events
Serout - how to send quotes? — Parallax Forums

Serout - how to send quotes?

ArchiverArchiver Posts: 46,084
edited 2000-09-22 23:16 in General Discussion
it would be ascii 34

Bill Sherwood wrote:
>
> Hi members,
>
> I am experimenting with a mobile GSM modem whereby I need to send a SMS
> message. This is in the format of AT+CMGS="12345678"<CR>(context of
> message),control Z. Where "12345678" is the called number.
>
> My problem is how to send quotation marks using Serout command because the
> quotation marks are already used to specify what to send e.g. Serout
> 1,b96,[noparse][[/noparse]"AT+CMGS="12345678",13,"blah blah,",26"] won't work!
>
> Any suggestions appreciated.
>
> Regards,
> Bill

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-09-22 01:12
    Hi members,

    I am experimenting with a mobile GSM modem whereby I need to send a SMS
    message. This is in the format of AT+CMGS="12345678"<CR>(context of
    message),control Z. Where "12345678" is the called number.

    My problem is how to send quotation marks using Serout command because the
    quotation marks are already used to specify what to send e.g. Serout
    1,b96,[noparse][[/noparse]"AT+CMGS="12345678",13,"blah blah,",26"] won't work!

    Any suggestions appreciated.

    Regards,
    Bill
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-22 01:51
    Use quotes around the text you need to send, and just 34 (ASCII code
    for a quote) where you need the quote transmitted. Should work.

    [noparse][[/noparse]"AT+CMGS=",34,"12345678",34,13,34,"blah blah....etc

    Martin Hebel
    Southern Illinois University Carbondale


    --- In basicstamps@egroups.com, Bill Sherwood <bill.sherwood@p...>
    wrote:
    > Hi members,
    >
    > I am experimenting with a mobile GSM modem whereby I need to send a
    SMS
    > message. This is in the format of AT+CMGS="12345678"<CR>(context of
    > message),control Z. Where "12345678" is the called number.
    >
    > My problem is how to send quotation marks using Serout command
    because the
    > quotation marks are already used to specify what to send e.g. Serout
    > 1,b96,[noparse][[/noparse]"AT+CMGS="12345678",13,"blah blah,",26"] won't work!
    >
    > Any suggestions appreciated.
    >
    > Regards,
    > Bill
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-22 13:47
    RE: [noparse][[/noparse]basicstamps] Serout - how to send quotes?

    Please try if you can use ASCII 34 - which is equivalent to QUOTE - something like
    ·chr(34) + "12345678" + chr(34)




    Original Message

    From: Bill Sherwood [noparse]/noparse][url=mailto:bill.sherwood@perth.wni.com]mailto:bill.sherwood@perth.wni.com[/url
    Sent: Thursday, September 21, 2000 7:12 PM
    To: basicstamps@egroups.com
    Subject: [noparse][[/noparse]basicstamps] Serout - how to send quotes?


    Hi members,

    I am experimenting with a mobile GSM modem whereby I need to send a SMS
    message.· This is in the format of AT+CMGS="12345678"<CR>(context of
    message),control Z.· Where "12345678" is the called number.

    My problem is how to send quotation marks using Serout command because the
    quotation marks are already used to specify what to send e.g. Serout
    1,b96,[noparse][[/noparse]"AT+CMGS="12345678",13,"blah blah,",26"]· won't work!

    Any suggestions appreciated.

    Regards,
    Bill
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-22 23:16
    Hi Bill,

    You have no choice but to send the code equivalent to the ascii character we
    want to send.
    In this case, I have used the following code:

    serout GSMOut,b9600,100,[noparse][[/noparse]"AT+CSCA=",34,"+34609090909",34,13]

    As you can see, we just insert the character code 34 for the ".

    All the best,

    Mike


    Mensaje original
    De: Bill Sherwood [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=3AHNuJJ2IVici_meF7xtbLky4YvlU4hCeW6J_LMv3rHg-uK6zLe9h81S1uinO07GnvPJrduYPhBSbgawLIA7PlHWzKQR]bill.sherwood@p...[/url
    Enviado el: viernes, 22 de septiembre de 2000 2:12
    Para: basicstamps@egroups.com
    Asunto: [noparse][[/noparse]basicstamps] Serout - how to send quotes?


    Hi members,

    I am experimenting with a mobile GSM modem whereby I need to send a SMS
    message. This is in the format of AT+CMGS="12345678"<CR>(context of
    message),control Z. Where "12345678" is the called number.

    My problem is how to send quotation marks using Serout command because the
    quotation marks are already used to specify what to send e.g. Serout
    1,b96,[noparse][[/noparse]"AT+CMGS="12345678",13,"blah blah,",26"] won't work!

    Any suggestions appreciated.

    Regards,
    Bill
Sign In or Register to comment.