sending SMS from PIC to GSM862 QUAD

I’ve been able to talk to the GSM862 from the pic. I was able to change the service address and I verified this by putting the SIM card to my phone. However, I’m having some issues in sending text messages. The following is the commands that I have to do so:

at+cmgf=1

WriteUART(0x0A)

WriteUART(0x0D) //this is carriage return

at+csca = +13123149810

WriteUART(0x0A)

WriteUART(0x0D) //this is carriage return

at#smsmode=0

WriteUART(0x0A)

WriteUART(0x0D) //this is carriage return

at+csmp=“17,167,0,0”

WriteUART(0x0A)

WriteUART(0x0D) //this is carriage return

at+cmgs=“xxxxxxxxxx” //USA phone number

WriteUART(0x0A)

WriteUART(0x0D) //this is carriage return

delay some time for the “>”

Write text message here

WriteUART(0x1A) //CTRL-Z

is there anything that I am missing? I do not need to receive SMS, I’m just sending them.

Thanks

michel,

i’m afraid i can’t answer your question but i think you might be able to help me with something simple. I am trying to figure out where to start with interfacing a PIC with a GSM. I have a PIC18F97J60 and a SIM300D. from the manuals it looks like i need to use the AT command set to communicate between the two, but i really don’t know where to get started with the code.

my understanding is that the SIM card receives the SMS message. the PIC must have to have some infinite loop running constantly checking for new SMS messages received on the SIM card? and once one is found how do i read it with the PIC?

and help is appreciated…