GSM Module to Basic Stamp control?
Hoodz91
Posts: 2
I am having trouble with interphasing a tellit GSM module with a Basic Stamp. I am trying to read the last·SMS on the SIM card and then have the basic stamp use the·character from the last SMS·to run a certain subroutine from my program.
I am able to send a text message using AT commands comined with pbasic·here is an example:
As I said before, I am really interested in recieveing SMS messages that can direct my program to the call the proper subroutine.
I am able to send a text message using AT commands comined with pbasic·here is an example:
' {$STAMP BS2} ' {$PBASIC 2.5} sData VAR Byte SEROUT 2,84, [noparse][[/noparse]"at#bnd=1",CR] ' Sets for US network PAUSE 1000 SEROUT 2,84, [noparse][[/noparse]"AT+CMGF=1",CR] ' Sets the module in voice mode (AT+CMGF=1 IS TEXT MODE FCLASS) PAUSE 1000 SEROUT 2,84, [noparse][[/noparse]"ats0=2",13] ' Sets to PAUSE 1000 SEROUT 2,84, [noparse][[/noparse]"AT+CLIP=1",CR] ' Sets to show caller ID (if you want) PAUSE 1000 SEROUT 2, 84, [noparse][[/noparse]"AT+CMGS=+12345678910",CR] PAUSE 5000 SEROUT 2, 84, [noparse][[/noparse]"hello world",26] PAUSE 1000 Do SERIN 1,84, [noparse][[/noparse]DEC sData] ' Also note, I used PIN 1 to receive data from the other GSM Module DEBUG sData PAUSE 5000 Loop END
As I said before, I am really interested in recieveing SMS messages that can direct my program to the call the proper subroutine.
Comments