Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Reading message from GSM modem using PIC16F877A

Status
Not open for further replies.

niranjan23

Member level 5
Member level 5
Joined
Jan 22, 2012
Messages
94
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,109
Hello!
I am Interfacing GSM modem to PIC16F877A and receiving message from GSM modem.
I read all previous threads about reading and receiving messages from GSM modem but they were not helpful to me!:-(
also I googled it several nights but didn't find the solution!!!
Since if anyone give me simple C code on receiving message from GSM modem that would be very grateful.:grin:
I'm using Hitech C compiler and SIM800 GSM Modem with PIC16F877A microcontroller!Thanks!!
 

chandu.kurapati

Full Member level 3
Full Member level 3
Joined
Oct 31, 2013
Messages
186
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Location
Bengaluru, India
Activity points
2,778
Hi,

First try to test commands using terminal for understanding functionality.

Writing simple c code bit a matter, you can find so many SIM800 interface code on google.
 

niranjan23

Member level 5
Member level 5
Joined
Jan 22, 2012
Messages
94
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,109
Hi,

First try to test commands using terminal for understanding functionality.

Writing simple c code bit a matter, you can find so many SIM800 interface code on google.

There is little problem with my GSM Modem since I never tested on PC.but when I connect GSM modem to PC on hyperterminal and send AT at first it gives me reply OK..but after that it show" OVER VOLTAGE WARNING" what does that mean??:???: that message continuously displayed on Terminal window.!!!
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,244
Helped
4,738
Reputation
9,497
Reaction score
5,125
Trophy points
1,393
Activity points
153,963
Hi,

OVER VOLTAGE WARNING" what does that mean??
Isn't it quite obvious?

The message tells that there is overvoltage. Most probably in the supply if the modem.
--> read the datasheet about supply voltage specification.
Then use a DVM and check if the supply voltage is within specification.

Klaus
 

niranjan23

Member level 5
Member level 5
Joined
Jan 22, 2012
Messages
94
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,109
Hi,


Isn't it quite obvious?

The message tells that there is overvoltage. Most probably in the supply if the modem.
--> read the datasheet about supply voltage specification.
Then use a DVM and check if the supply voltage is within specification.

Klaus

Ohk I got it.Now I Im using 12V,1A DC adapter for modem,I have two GSM modem and I bought 2nd one 2 days ago..... and it is SIM800 based......Both GSM modem are showing same messages.!!! I vary the power supply from 6V to 12V but still same message."OVER VOLTAGE WARNING".!!!Also I have checked voltage between VBAT and VDD and Its VBAT= 4.37V and VCC =4.94V on DVM
I checked the datasheet of sim800 coz I have sim800 gsm module.It says....
"4.2.2.3. Over-voltage or Under-voltage Power off
The module software monitors the VBAT voltage constantly.
If the voltage ≤ 3.49V, the following URC will be reported:
UNDER-VOLTAGE WARNNING
If the voltage ≥ 4.3V, the following URC will be reported:
OVER-VOLTAGE WARNNING
If the voltage < 3.39V, the following URC will be reported, and the module will be automatically powered off.
UNDER-VOLTAGE POWER DOWN
If the voltage > 4.4V, the following URC will be reported, and the module will be automatically powered off.
OVER-VOLTAGE POWER DOWN"

I dont understand why both the modem are acting like this.????One of them is new!! PLZ HELP ME!!
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,244
Helped
4,738
Reputation
9,497
Reaction score
5,125
Trophy points
1,393
Activity points
153,963
Hi,

Maybe the modem expects a LiIon battery connected.

Klaus
 

nandhu015

Advanced Member level 5
Advanced Member level 5
Joined
Feb 11, 2006
Messages
1,959
Helped
300
Reputation
600
Reaction score
222
Trophy points
1,353
Location
India
Activity points
9,879
Modem should be powered around 4V for proper operation.

As per your post the voltage at 4.94 which is greater than the specified limit, thus the modem switches off on over voltage
 

niranjan23

Member level 5
Member level 5
Joined
Jan 22, 2012
Messages
94
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,109
Hi,

Maybe the modem expects a LiIon battery connected.

Klaus

No there is no such a thing like battery holder or connecter!!!

- - - Updated - - -

Modem should be powered around 4V for proper operation.

As per your post the voltage at 4.94 which is greater than the specified limit, thus the modem switches off on over voltage

I tried 5V but modem is not responding!!and there is LM317 on mobem!!
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,244
Helped
4,738
Reputation
9,497
Reaction score
5,125
Trophy points
1,393
Activity points
153,963
Hi,

You say "VBAT"....this usually is short for "battery voltage".

Klaus

- - - Updated - - -

Hi,

I just opened the datasheet. It clearly says:
***The single 3.7V Li-ion cell battery can be connected to SIM800 VBAT pins directly.****
--> please read the datasheet yourself.

***The power supply range of SIM800 is from 3.4V to 4.4V. Recommended voltage is 4.0V. ****
So connecting 12V or even 5V maybe killes (killed) your modem....or parts of it.

That's why there are datasheets.
LM317 on modem or not .... if it says 3.4V ....4.4V then you have to keep on that.
In any other case don't complain if it does not work.

Klaus
 

paulfjujo

Advanced Member level 4
Advanced Member level 4
Joined
Jun 9, 2008
Messages
1,459
Helped
296
Reputation
592
Reaction score
279
Trophy points
1,363
Location
France 01800
Activity points
10,409
hello


UNDER-VOLTAGE WARNNING
If the voltage ≥ 4.3V, the following URC will be reported:
OVER-VOLTAGE WARNNING
If the voltage < 3.39V, the following URC will be reported, and the module will be automatically powered off.

maybe a mistake in the datasheet ?
OVER must be >
UNDER must be <
the reverse could be more easy to understand.
and when surge of comsuption of current , voltage decreases !

I am using a GSM QUECKETEL and had many problems, when using without external Battery 3,7V
because when the GSM exchange some data with MCU,
some spike of current appears and with a LM317 , maxi could be 1A max, not enough
maybe needs spike of 2 amps ..
so unexpectead reset of MCU occured.

The power supply of GSM is an important key to solve many problem.
The battery can supply, absorbe all spike of current needed by the GSM.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top