Basic Stamp and Gsm module
snake007
Posts: 5
Hi, im triying to send txt msg with the gsm module and th BS-2. I already try usign the gsm module, from the computer and it works, but when i try from the BS-2, nothing happens, if anyone can helpme here its my code. I'll start with the first AT command, but i dont even get the OK response, i really dont understand what its going on.
' {$STAMP BS2}
' {$PBASIC 2.5}
BaudGSM CON 396 '32=19200/84=9600/188=4800/396=2400 bps (BS2&GSM)
TX PIN 3
RX PIN 4
txt VAR Byte(10)
Main:
SEROUT TX, BaudGSM, ["AT",CR] '
PAUSE 5000
SERIN RX, BaudGSM, [STR udp\10\CLS]
DEBUG STR txt
END
Thank you
' {$STAMP BS2}
' {$PBASIC 2.5}
BaudGSM CON 396 '32=19200/84=9600/188=4800/396=2400 bps (BS2&GSM)
TX PIN 3
RX PIN 4
txt VAR Byte(10)
Main:
SEROUT TX, BaudGSM, ["AT",CR] '
PAUSE 5000
SERIN RX, BaudGSM, [STR udp\10\CLS]
DEBUG STR txt
END
Thank you
Comments
As it stands, you're knocking out your "AT" and then you have a PAUSE for 5sec (5000ms).
What's "udp" (it's undefined)
[STR udp\10\CLS] is N.G.
Mike, i have read that section on the manual, but i still dont see the problem.
Thank you, when it works, ill let you now...
Carlos Romero
Any help please
thanks xD!
Carlos Romero
Dont know what else to do.
Thank you anyway, let me know if you another solution...
Carlos Romero