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 support@ccsinfo.com

SIM900R with 16F877A Communication Problem
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Thu Mar 28, 2013 5:36 am     Reply with quote

Hi,

Are you trying to receive/parse the SMS text message that follows in response to the 'CMGR' command? If so, you should just tell us that!

Cheers,

John
umutso



Joined: 23 Jan 2013
Posts: 39
Location: turkey

View user's profile Send private message MSN Messenger

PostPosted: Thu Mar 28, 2013 1:54 pm     Reply with quote

Hi

I got it working now. And no not want to parse SMS that I m dealing with 2 way communication via tcp stack. Data goes ok and want to parse the data back which is working.

Now I need one thing more. I want to store some int values in the internal EEPROM of 877a. I can write to address without error. For eg 66 decimal. When I want to read it I always receive garbage from the address with read_eeprom(1) simply. And I write with write_eeprom(1,intvalue).

What do you think the problem can be?

Thanks
_________________
Umut Sonkurt
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Thu Mar 28, 2013 2:12 pm     Reply with quote

Hi,

Are you writing an int8 value to the EEPROM? Your code should work as written. Have you tried other EEPROM memory locations to see if they have the same problem? An EEPROM memory cell has a finite write cycle life, and if you exceed that life (such as by putting the Write inside a loop), it's possible to kill an individual memory location.

If other memory cells have the same problem, write a small test program that writes to EEPROM, and then immediately reads the value right back with nothing else in the program. Does that work? If not, post this test program!

John
SSR



Joined: 09 Nov 2011
Posts: 14

View user's profile Send private message AIM Address

PostPosted: Tue Apr 02, 2013 5:59 am     Reply with quote

The OP.

Have you used any converter between the GPRS and Controller? Because i have read that SIM900 runs on 3V.
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Tue Apr 02, 2013 6:35 am     Reply with quote

Hi,

Frankly, the SIM900 datasheet is a much better resource for this information than the CCS forum!

The SIM900 can be powered from 3.0V to 4.2V. If you want to make your life easier, just power your PIC and your GSM module at the same voltage, and you will eliminate the need for 'level converters' between the PIC and the GSM module....

John
SSR



Joined: 09 Nov 2011
Posts: 14

View user's profile Send private message AIM Address

PostPosted: Tue Apr 02, 2013 11:33 pm     Reply with quote

Thanks John. I was missing this.

Quote:

power your PIC and your GSM module at the same voltage
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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