Discussion in "Embedded GSM Development" started by    usman1947    Feb 18, 2009.
Fri Feb 20 2009, 08:58 pm
#11

WHEN I CONNECT THE SIM300 I GET THESE MESSAGES:
"
RDY
+CFUN: 1
+CPIN: READY
Call Ready
"

i've used commands:
AT
AT+CMGF=1;
AT+CMGS="+92....." ->TO SEND MESSAGE TO MY NUMBER FROM SIM300CZ.
AT+CMGR=3 -> TO RECEIVE MESSAGE FROM MY CELL PHONE. "3" SHOWS LOCATION OF MESSAGE STORED IN SIM300CZ.
ALL THESE COMMANDS ARE USED IN COMMUNICATING SIM300CZ AND HYPERTERMINAL.

I M ALSO ATTACHING PIC OF SIM300(SHOWING WHICH PINS I'VE USED)




Attachment
Sat Feb 21 2009, 04:59 am
#12
A good test of your code is to connect the atmega16L to you PC and talk to it in Hyperterminal.
Of course you will have to use an RS232 voltage level converter.

>do u have any idea about flow control?it might be creating some problem
It could be.
On the SIM300CZ connect RTS, CTS and DTR together


[ Edited Sat Feb 21 2009, 05:00 am ]
Mon Mar 02 2009, 07:30 pm
#13
hey experimenteruk,
sorry for late responce..actually i was busy in exams.
i've connected RTS,CTS and DTR..but still it is not working...the sim300cz suppose to send msg on my mobile but it didn't actually...
i m attaching my code which i use in atmega16L..
kindly reply ASAP.
Attachment
Mon Mar 02 2009, 08:22 pm
#14
hi usman ,
there is no need to connect the rts and cts ,it works fine on simple rx,tx and gnd pin,u also check the baud rate of the simcom module wether it is on auto baud or fix baud by "at+IPR?". U first try to connect the sim300 module to hyperterminal and try to send the sms

AT+CMGS="ur no with contry code" enter
then > will apear then type type the data u wantb to send
then CTRL Z
then ur msg will be sent
Mon Mar 02 2009, 11:50 pm
#15
thx for ur reply...mangesh
i've already tried sim300cz with hyperterminal and it is working fine and sending sms to my mobile phone..the problem arises when i connect it with atmega16l..
so plz tell me what to do...i have also attached stuff related to my project in my previous posts..u can see that too...
kindly reply me ASAP..
Wed Mar 04 2009, 06:33 am
#16
The next thing is to connect the atmega16L to you PC and talk to it in Hyperterminal.
Of course you will have to use an RS232 voltage level converter.

What baud rate does your modem run at ?

Your modem may need a cr\lf pair


[ Edited Wed Mar 04 2009, 06:49 am ]
Wed Mar 04 2009, 06:55 pm
#17
i m using 9600 baud rate..
What do you meant by modem? is it sim300cz module..?
Sim300cz's baudrate is 9600.
what is cr/if pair..please explain a little more...
Thu Mar 05 2009, 02:21 am
#18
>What do you meant by modem? is it sim300cz module..?
Yes, your module is a GSM modem.

>what is cr/if pair..please explain a little more...
Carriage return and line feed are characters used to start a new line.
Carriage return moves the cursor back to start of line.
Line feed mover down a line.
They act much like pressing enter.
Some modems just need you to end a line with Carriage Return (0x0d)
Some need you to end a line with Carriage Return (0x0d) and Line feed (0x0a)


I noticed that your program is set to 115k.

Thu Mar 05 2009, 11:24 am
#19
hi everyone, i am usman's friend. we are together on this project.

@ExpermentalUK:
we are using carriage return only. we will try using both. CR should be sent before LF. right???
one more thing. To send ctrl+z we are sending ascii character with ascii value of 26. is it alright?
we have tried both baudrates (115.2K & 9.6K) with same results.
its a bit harder to connect atmega16 to hyperterminal because our pcb design wasnt made for this. however, i simulate every code in proteus before burning it to controller. and its simulating correctly in proteus.
thanks for help guys.


[ Edited Thu Mar 05 2009, 11:50 am ]
Thu Mar 05 2009, 08:11 pm
#20
you only need to send 0x0D no need to send line feed.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am