Shop OBEX P1 Docs P2 Docs Learn Events
Sending SMS with basic Stamp Problem — Parallax Forums

Sending SMS with basic Stamp Problem

NiallNiall Posts: 7
edited 2009-02-07 12:06 in BASIC Stamp
Basically my project requires me to send an sms from the basic stamp through a modem. I am using the Wavecom 1206B.
I tested my code and it send the message ok, but all the message contains is a series of >>>>>>>> I have been trying to solve this problem but to date hve been unable to find a solution.

Just wondering if anybody might have some suggestions to help me


' {$STAMP BS2}
·PAUSE 10000
· HIGH 1························ 'Turn on led to show code running
· DEBUG "AT+IFC"
· DEBUG 61
· DEBUG "0,0"
· DEBUG CR
· PAUSE 2000
· DEBUG "AT+CMGF"·············· 'Making sure that the GSM module is in text mode.
· DEBUG 61······················ 'ASCII Equivalent for =
· DEBUG "1"
· DEBUG CR···················· ' Carraige Return ot 'Enter'
· PAUSE 3000
· DEBUG "AT+CMGS"········· 'this is to send an SMS
· DEBUG 61······················ 'ASCII Equivalent for =
· DEBUG 34······················ 'ASCII Equivalent for "
· DEBUG "+353876575189"
· DEBUG 34··························· 'ASCII Equivalent for "
· DEBUG CR····· 'cr
· PAUSE 4000
· DEBUG 65
· PAUSE 500
· DEBUG "testing"
··Debug 26···························· ·'equivalent to ctrl-z, to end
· DEBUG CR
· PAUSE 200
· LOW 1····························· 'Turn off led to show code is finished
· END


Please Help!!!

Comments

  • FranklinFranklin Posts: 4,747
    edited 2009-02-05 16:33
    What baud rate and protocol does the modem need? You might be better using serout rather than debug.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • BuzzerBuzzer Posts: 2
    edited 2009-02-06 22:10
    I think You have to put off the echo off the modem

    ATE0

    -> OK

    and don't forget to save it


    AT&W
    ->OK
    ·
  • BuzzerBuzzer Posts: 2
    edited 2009-02-06 22:14
    Main :

    'GOSUB Wachten


    SEROUT 16, 16468, [noparse][[/noparse]"AT", CR] 'received and over
    SERIN 16,16468,5000, main, [noparse][[/noparse]WAIT ("OK")]
    PAUSE 500
    SEROUT 16,16468,[noparse][[/noparse] "AT+CMGS=0494151238",CR] 'this is to send an SMS
    SERIN 16,16468,7000, fout, [noparse][[/noparse]WAIT ("> ")]
    PAUSE 250
    SEROUT 16,16468,[noparse][[/noparse]" testing",CR]
    DEBUG 26 'equivalent to ctrl-z, to end
    DEBUG CR
    SERIN 16,16468,5000, fout, [noparse][[/noparse]WAIT ("+CMGS:")]


    END
  • NiallNiall Posts: 7
    edited 2009-02-07 12:06
    Thanks so much for your help,
    I have solved the problem. What i think it was is that the DTR pin was floating. After i progrmmed the stamp i then grounded the dtr pin before the communication with the modem had begun. This solved the problem.
Sign In or Register to comment.