Discussion in "Embedded GSM Development" started by    usman1947    Feb 18, 2009.
Wed Feb 18 2009, 11:30 pm
#1
Hello everyone, we are working on our project which uses atmega16L(and sensors) to measure environment status (temperature, humidity etc). after measurements are made, these values are to be sent to PC using sim300cz through GPRS. Interface between atmega and sim300cz is serial.
sim300cz is working fine with hyperterminal..all AT commands to send and receive SMS works fine..But problems arises while connecting ATmega 16L with sim300cz..we have written code in AVR to send msg directly from atmega to sim300cz but it's not working.So kindly tell me what to do?

Thanks.
Wed Feb 18 2009, 11:41 pm
#2
hi usman,
most of the problems whle using UART arise due to baud rate mismatch/miscalculation. Can u post the code? hope u have used a max232 convertor to match the signal levels.
:-)
Thu Feb 19 2009, 12:06 am
#3
i've used the default baud rate i.e 115200 in the code..
and i m using rs232.
i'll post my code tomorrow...as my project partner have it..
thx for your responce
Thu Feb 19 2009, 12:07 am
#4
my circuit looks like this

Thu Feb 19 2009, 12:58 pm
#5
try keeping baud under 19200 and try again, 115200 is ok too.. not a problem. but do check %error of both bauds.

try tapping tx of atmega and then tap tx of atmega. you cannot tap both of them simultaneously unless you have two com ports.

Also post your code.
Thu Feb 19 2009, 12:58 pm
#6
[Topic moved to Embedded GSM Development]
Fri Feb 20 2009, 02:27 am
#7
thx ajay..
here is my code...
it must send sms from atmega to sim300cz but it didn't actually...sim300cz works fine on hyperterminal with baudrate 115200.
do u have any idea about flow control?it might be creating some problem
Fri Feb 20 2009, 03:53 am
#8
@usman1947
Try zipping your code before attaching it.
Fri Feb 20 2009, 04:42 pm
#9
keep flow control none and if possible try with lower value of baudrate.
Fri Feb 20 2009, 06:50 pm
#10
usman have you success in sending data to a site with GPRS through hyperterminal. If yes can you please post the AT commands which you have used.


[ Edited Fri Feb 20 2009, 06:53 pm ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am