Sending SMS with basic Stamp Problem
Niall
Posts: 7
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!!!
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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
ATE0
-> OK
and don't forget to save it
AT&W
->OK
·
'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
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.