CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Telit GSM question

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Tagge



Joined: 23 Aug 2005
Posts: 93

View user's profile Send private message Visit poster's website

Telit GSM question
PostPosted: Tue Feb 17, 2009 4:13 am     Reply with quote

Hi everyone,
Im trying to get some basics working on a application with a Telit GC864 GSM/GPRS quad sim, and a PIC18F97J60.

I just want to send an SMS to get things rolling..

Im using:

Code:

#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,errors)

and C6-TXD on GSM
C7-RXD on GSM
Sending an SMS as follow:
Code:
void start_gsm(void)
{
   output_high(PIN_G3); //gsm module ON 
   output_low(PIN_B5);//debug
   delay_ms(1500);   
   output_low(PIN_G3);//GSM module released
}
//---  1. send SMS --------------------
void send_sms(void)

   start_gsm();     
   printf("AT+CMGF=1\n\r");//text mode
   delay_ms(1000);
   printf("AT+CMGS=+46762853050\n\r");
   delay_ms(500);
   printf("Testing SMS");   
   printf("%c\n\r",0x1A);//ctrl Z
   delay_ms(5000); //wait for message sent
   output_high(PIN_B5);//debug   
}

Its there something Im missing?
Some HW stuff? I would like to have no flow control, RTS to GND?
power to the unit seems ok, ON/OFF seems working.
I get a "signal" on my spec analyzer at ~900MHz when sending should be done.
Tagge



Joined: 23 Aug 2005
Posts: 93

View user's profile Send private message Visit poster's website

PostPosted: Tue Feb 17, 2009 6:02 am     Reply with quote

Solved,
the main thing is to give the module time to start,
I gave it 30 sec between start of module before trying to send sms.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group