
Originally Posted by
stuart_penman
Can I just use?
SEROUT PORTB.2,N9600,[#AT+CMGF=1,10,13] 'sets text mode
No! What is the # symbol doing in there? Please read your PBP manual on the Serial command syntax!
You need this:
Code:
SEROUT PORTB.2,N9600,["AT+CMGF=1",10,13] 'sets text mode
and respectively:
Code:
SEROUT PORTB.2,N9600,["AT+CSCA=XXX",10,13] 'replace XXX with message centre number
SEROUT PORTB.2,N9600,["AT+CMGS=YYY",10,13] 'replace YYY with recipient's number
SEROUT PORTB.2,N9600,["hello world",10,13] 'hello world is message to send

Originally Posted by
stuart_penman
Also to send the message from hyperterminal you press 'Ctrl-Z.' How do I write this as an AT command?
Simply just send 26 (that is Control-Z) like this:
Code:
SEROUT PORTB.2,N9600,[26,10,13]
Ioannis
Bookmarks