Home AMX User Forum AMX General Discussion

Alarm SMS with AMX and wawecom GSM Modem

how can I put this "at command" in the ni3100?
AT (ENTER)
AT+CMGF=1(ENTER)
AT+CMGW="TEL NUMBER"(ENTER)
>MESSAGE.(ENTER)
AT+CMSS=1(ENTER)

thanks
Adriano

Comments

  • ericmedleyericmedley Posts: 4,177
    You'll have to write a program for it and upload.
    Best of luck.
    E
  • AuserAuser Posts: 506
    ericmedley wrote: »
    You'll have to write a program for it and upload.
    Best of luck.
    E

    Well I've had my smile for the morning :)
  • ericmedleyericmedley Posts: 4,177
    Auser wrote: »
    Well I've had my smile for the morning :)
    Glad to be of service!
    E
  • mushmush Posts: 287
    gufo28 wrote: »
    how can I put this "at command" in the ni3100?
    AT (ENTER)
    AT+CMGF=1(ENTER)
    AT+CMGW="TEL NUMBER"(ENTER)
    >MESSAGE.(ENTER)
    AT+CMSS=1(ENTER)

    thanks
    Adriano

    G'day Adriano,

    If your GSM Modem is connected to the first serial port of your NI-3100 you would send those strings like this..
    SEND_STRING 5001:1:0, "'AT',$D,$A"
    SEND_STRING 5001:1:0, "'AT+CMGF=1',$D,$A"
    SEND_STRING 5001:1:0, "'AT+CMGW=TEL NUMBER',$D,$A"
    SEND_STRING 5001:1:0, "'>MESSAGE.',$D,$A"
    SEND_STRING 5001:1:0, "'AT+CMSS=1',$D,$A"
    
    Please note that I have presumed that your "ENTER" is a carriage return($D) and line feed($A) combined.
    You will need to insert your telephone number as well.
    I hope this helps.

    Cheers
  • travtrav Posts: 188
    Spoil sport.

    You are way too nice mush!
  • new test

    I tried with HyperTerminal and the right command is:

    AT+CMGS=Tel Number (enter)
    message (ctrl+z)

    I tried it so (in ni3100)it does not work:

    SEND_STRING 5001:1:0, "'AT+CMGS=TEL NUMBER',$0D,$0A"
    SEND_STRING 5001:1:0, "'MESSAGE',$1A"

    Eventually, write a program and then uploading, is complicated?
    how to start?
    have you exemple?
    thanks
    Adriano
Sign In or Register to comment.