PDA

View Full Version : Please send me a SMS program



hjcool
- 21st May 2009, 16:36
Can anyone tell me how to send a SMS using GSM Module via PIC microcontroller (16F877A).

I build up a circuit to get the weight of the animal in to microcontroller. But due to my poor knowledge on Microcontroller + GSM modem interfacing I unable to send message via GSM Modem. But I know how to send SMS via Computer. I have some knowledge on PIC Microcontroller and PicBasic language. Can you please send me a working routing to send a SMS using Microcontroller and a schematic. It will be more helpful if you could send it related to PICBasic.

My SMS Code,

Start:

Pause 1000
SerOut PORTB.3,T9600, ["AT+CMGS=",34,"MyNumber",34,13]
Pause 1000
SerOut PORTB.3,T9600, ["TEST",13]
Pause 1000
SerOut PORTB.3,T9600, [26]

Goto Start

xxxxxx
- 23rd May 2009, 07:51
http://picbasic.co.uk/forum/showthread.php?t=10757 here you could find a fine example of sending and reciving sms via pic16F887

hjcool
- 25th May 2009, 08:01
Please someone tell me the possible errors of my given code:(

Ioannis
- 25th May 2009, 08:24
Have you checked the link xxxxxx gave to you?

There is already a ew post. Read it.

As always, USART is your best friend in communications and always wait for the device to answer (either OK or some error message).

Pause is not enough...

Ioannis

hjcool
- 26th May 2009, 09:15
I am just a beginner to this GSM communication field and I studied agriculture engineering for my BSc. I self studied these things, and that’s why I am asking this kind of stupid questions. I’ll try with the codes given by XXXX. I need your future help in this regards.
Thank You

hjcool
- 15th June 2009, 09:10
Can anyone tell me, what are the hardware Serial port pins on 16F877A.:cool:

Jumper
- 15th June 2009, 11:00
I suggest you start your project with downloading the datasheet for the 16F877A and read it. You dont have to understand more of the datasheet than to remember that you have seen something about this and that and then you look that section up.

Do you have a /P or /PT package? One is a 40-pin DIP, the other a 44-pin TQFP (surface mounted). Before we know this we dont know what pis it is :-)

hjcool
- 17th June 2009, 11:33
thanks i Read it