Control Z of the AT command
Havoc
Posts: 7
hi,
Does anyone know what is the code·to send the control Z of the AT command in the basicstamp. Urgent need help!·
Does anyone know what is the code·to send the control Z of the AT command in the basicstamp. Urgent need help!·
Comments
SEROUT <pin#>,<BaudValue>,[noparse][[/noparse] 26 ]
here's my code, we are using the basic stamp to send the AT command to a GSM module.
DEBUG "AT", CR
PAUSE 2000
DEBUG "AT+CMGF=1",CR
PAUSE 2000
DEBUG "AT+CSCA='+6596845999'",CR
PAUSE 2000
DEBUG "AT+CMGF=1",CR
PAUSE 2000
DEBUG "AT+CMGS='+6592332598'" ,CR
PAUSE 2000
DEBUG "Hello",$26,
can you help to check what is wrong with my codes? thank you.
here's my code, we are using the basic stamp to send the AT command to a GSM module.
DEBUG "AT", CR
PAUSE 2000
DEBUG "AT+CMGF=1",CR
PAUSE 2000
DEBUG "AT+CSCA='+6596845999'",CR
PAUSE 2000
DEBUG "AT+CMGF=1",CR
PAUSE 2000
DEBUG "AT+CMGS='+6592332598'" ,CR
PAUSE 2000
DEBUG "Hello",$26,
can you help to check what is wrong with my codes? thank you.
One is decimal and one is hexadecimal
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
If you successfully send AT Z to a HAYES Compatible modem this will cause the modem to reset and that is not what you want it to do. There is a full description of AT commands here http://en.wikipedia.org/wiki/Hayes_command_set, but hopefully they are in your Manual also.
But you have to distinguish between sending characters to the modem which it should modulate and transmit to another modem and Commands which the modem itself should act upon.
When you write:
DEBUG "AT", CR ( is the Comma correct ?)
the modem should return an OK and this is a direct modem command.
But when you write:
DEBUG "Hello",$26,
I guess you want the modem to transmit i.e modulate the "Hello" characters to a another modem, but you are still in command mode. That means you are issuing the "Hello" command to the modem which it does not understand
To enter Command mode you normally send +++ but I cant remember how to exit command mode though it could be CR CR CR
So your terminal program is exiting the Command Mode By control-Z but that is not a HAYES command and you have to find the HAYES command to exit command mode before you issue "Hello"
HTH Peter
Not makying much progress, but it is not my main project now.
Cheers
Vaclav
·