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

GSM interface to PIC16F690

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



Joined: 16 Mar 2010
Posts: 11

View user's profile Send private message Send e-mail

GSM interface to PIC16F690
PostPosted: Sun Mar 21, 2010 1:03 am     Reply with quote

Hi

If anyone has done GSM interface to PIC16f690 uart than please help me b'coz last 7days I'm trying to collect response from GSM, but unable to obtain.
Is there any baud rate issue?
As I'm giving command AT, then GSM gives OK, then it is showing it on hyperterminal, but not getting stored in any variable.
As at initialization of gsm SIM300 it gives response like this:

RDY

+CFUN: 1

+CPIN: READY

+CREG: 1,"3E84","6ACE"

but my controller is not collecting any single of this string.
I'm totally fedup of this CCS compiler.

do anybody has faced this situation before.
I would be grateful to you.
_________________
Thanks & Regards
Lokesh Bhatt
John Morley



Joined: 09 Aug 2004
Posts: 97

View user's profile Send private message

PostPosted: Wed Mar 24, 2010 8:56 pm     Reply with quote

Hi Lokesh,

It's not enough to be 'fed up'.....

A search of the forum archives yielded four pages of hits using the keyword 'GSM', and there are literally thousands of posts related to serial interfacing in the forums....

What I'm saying is that you've got to take some initiative, and do more than just say 'it doesn't work, please help!'

What code have you already written? Which GSM module are you using? How is it connected to the PIC?

Again, there are many here that would be happy to help, but you've got to take the first step..... Chances are that your problem has a (relatively) simple solution....

John
_________________
John Morley
vjn86



Joined: 12 Oct 2009
Posts: 11

View user's profile Send private message

PostPosted: Fri Mar 26, 2010 11:52 pm     Reply with quote

Literally you are saying that the modem works fine when connected to the hyper terminal and doesn't work as you expecting when you connecting it with controller..
If this is what you meant, I had similar trouble till yesterday too.

1. You must be using a cross RS232 cable to connect the GSM modem and the pic circuit right ? If yes, try to short PIN7 and pin 8 on the both side of the cable head (rs232 connector) itself.

2. When PC and GSM communicates, the handshaking protocol (RTS and CTS) on RS 232 is utilized. Meanwhile, the RS 232 on micro controller doesn't support this as only TX, RX and GND is used.

3. So, when you short pin 7 and 8 on the cross cable, you are making the GSM modem to be always ready to receive and send data.

Hope this helps you..let me know your progress on this.

with regards
vijay
Ttelmah



Joined: 11 Mar 2010
Posts: 19496

View user's profile Send private message

PostPosted: Sat Mar 27, 2010 9:00 am     Reply with quote

As a further comment, if the module works directly connected to hyperterminal, then it is talking RS232, not TTL async (which is what the PIC generates). If so, then you have to add at the very least software/hardware signal inversion, and properly a level translator/inverter.
As another poster says, you need to tell us a lot more:
What GSM module?.
How have you had it working - what connections?.
How have you got it wired to the PIC?.
How is it powered?.
How is the PIC powered?.
What 'support' components have you got round the PIC - decoupling capacitors, oscillator etc. etc..

etc. etc..

Best Wishes
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