pazko1125
Newbie level 4
- Joined
- Sep 24, 2008
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,351
JoKKeR said:but you need some more ... skill
wanbong said:hi guys, I'm also thinking about a project dealing with sms and PIC. Basically, my idea is that when someone send me an sms, my PIC will increase count variable and then automatically send back a sms with the count value. Can someone enlighten me a method to start, I'm currently using an 16f877
penoy_balut said:For a start you have to learn how PIC USART works, try
sending and receiving data to a PC using Hyperterminal set at 9600,n.8,1 (same setting for PIC too) for AT commands.
Activating devices using SMS is parsing the text message received.
thanks for the reply. are you a filipino? hope u can give me codes or tutorials on how to sent AT commands using PIC.
TekUT said:wanbong said:hi guys, I'm also thinking about a project dealing with sms and PIC. Basically, my idea is that when someone send me an sms, my PIC will increase count variable and then automatically send back a sms with the count value. Can someone enlighten me a method to start, I'm currently using an 16f877
Search for a modem with serial port and search for related set of AT commands, all you've to do is manage some AT commands to send the SMS. For a my design I've used a DIGICOM Pocket GSM, but there is many model other than this one that can be used.
Anyway first open the serial port to the modem.
When you've got the modem look at the AT command set, typically you can choose to use a SIM with PIN then you've to send:
AT+CPIN=XXXX<CR> (where XXXX stand for the SIM pin code, <CR> is a carriage retun)
wait for modem reply (in my case the string OK) and check if this has been accepted with this command:
AT+CPIN?<CR>
In my case reply will be with a string READY, now wait for the modem registration at the GSM network:
AT+CREG?<CR>
reply will be a tring +CREG: 0,1.
And so on, may be for other modem some command and related reply can be different but the idea is similar.
Also you can add other than the sms message a short voice call by using a digital recorder chip like the ISD1400 series (Winbond), usually modem have also the voice input then simply record and store the message into the ISD chip (you can store more than one message of 20 s in length) and then trough the PIC setup a modem voice call and when the calling is ready select the Play function in order to do a voice call. Just a idea.
Hope it help.
Bye
Pow
penoy_balut said:thanks for the reply. are you a filipino? hope u can give me codes or tutorials on how to sent AT commands using PIC.
Sending AT Commands depends on what programming language you are using, Assembly or C and also depends on particular compiler, the basic procedure for sending text messages are these steps:
AT <enter>
AT+CMGF = 1 <enter>
AT+CSCA = "your country's network message center" <enter>
AT+CMGS = "recipient phone number" <enter>
Your Message <Ctrl + Z>
FBUS can also be used but a little complicated than AT Commands
https://www.youtube.com/watch?v=jWnUlMEH25M
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?