Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 29, 2024, 12:08:50 12:08


Login with username, password and session length


Pages: [1]
Print
Author Topic: Receiving SMS with the PIC.  (Read 7452 times)
0 Members and 1 Guest are viewing this topic.
casebsantos
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 1
-Receive: 11


« on: December 22, 2007, 03:29:35 15:29 »

I am testing some commands AT between a PIC and one siemens c65.
How I make for I read the content of a received message? Huh

Since Already, thanks.
Logged
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2429

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #1 on: December 22, 2007, 04:57:43 16:57 »

try searching the forum Shocked Shocked
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
Rute
Junior Member
**
Offline Offline

Posts: 65

Thank You
-Given: 102
-Receive: 179


« Reply #2 on: December 22, 2007, 05:06:49 17:06 »

Read the SIM (First set the phone  to store sms in sim) If delete 1-st place in sim for SMS after reading,you will find new  sms there.
Logged
casebsantos
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 1
-Receive: 11


« Reply #3 on: December 24, 2007, 12:20:26 00:20 »

I need a code sample that will read the received text message.
Somebody can help me? Huh
Logged
salej
Guest
« Reply #4 on: December 24, 2007, 04:44:04 04:44 »

hello i am new here, you need to use at+cmgread command

Posted on: December 24, 2007, 05:41:40 05:41 - Automerged

you can work with any mobile phone, the at commands are the same with some variations
Logged
halil
Inactive

Offline Offline

Posts: 6

Thank You
-Given: 0
-Receive: 0


« Reply #5 on: December 24, 2007, 10:00:21 10:00 »

http://www.riccibitti.com/tinyplanet/tiny_article.htm

Posted on: December 24, 2007, 10:54:27 10:54 - Automerged

Mobile Phone
T68
Developers Guidelines
AT Commands
Online Reference
http://www.anotherurl.com/library/at_test.htm

Posted on: December 24, 2007, 10:59:05 10:59 - Automerged

sorry the links is http://pupius.co.uk/download/misc/t68i-at-commands.pdf
Logged
zaliko
Guest
« Reply #6 on: January 12, 2008, 03:25:06 15:25 »

hi,
1. ATE0 CR LF - turn off echo from the mobile device
2. AT+CPMS="SM","SM","SM" CR LF - set preffered message storage for mobile device (sim card in our case)
3. AT+CMGF=0 CR LF - trun sms PDU format on
4. AT+CNMI=1,1,0,0,1 CR LF- indicates new incoming sms. when, new sms arrived mobile device generate message like this: +CMTI: <mem>,<index>. where indexis the index of the incoming sms in the sotrage <mem>. in our case mem is SIM card(see command 2). you can catch this this if you enable RX interrupt in MCU.
after you got  +CMTI: <mem>,<index> you can easy read the incoming sms with command:
AT+CMGR=<index>CR LF.
you will got answer:
+CMGR: bla bla CR LF
<pdu>
where <pdu> is the sms text in PDU mode.
decode it and do anything you want.
hope this helps.
p.s. CR = 0x0D LF=0x0A
Logged
glenjoy
Newbie
*
 Muted
Offline Offline

Posts: 11

Thank You
-Given: 2
-Receive: 6


« Reply #7 on: January 17, 2008, 01:27:09 01:27 »

You need to study the AT commands required for the phone to function properly.
Logged
kiashee
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 80
-Receive: 7


« Reply #8 on: January 23, 2008, 02:48:24 02:48 »

you may also wish to visit www.etsi.org for some GSM standards, like PDU and at-commands.
Logged
Kafao
Newbie
*
Offline Offline

Posts: 10

Thank You
-Given: 1
-Receive: 0


« Reply #9 on: January 25, 2008, 08:50:02 20:50 »

Hello. Anyone has made something for PDU to Normal mode for SMS?

Thanks
Logged
klivi1
Guest
« Reply #10 on: January 29, 2008, 09:11:52 09:11 »

Hi,

you need to connect to mobile phone via RS232. When it works you can send/receive AT commands to phone. A good way to test them using PC and a terminal program. When it works you can implement into MCU.
Concerning PDU I suggest you to use normal SMS mode (if your phone can accept) The PDU is a hard game :-(

Logged
strat
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 11
-Receive: 0


« Reply #11 on: February 26, 2008, 02:25:54 14:25 »

Some important common AT  commands  :
AT+CMGF=1                    -->turn on Text mode
AT+CMGL="REC UNREAD"   --> Read new messages
AT+CMGS=Tel No   +  message --> Send message       
AT+CMGD= message text  -->Delete message

After all succeeded commands Pic will wait 'OK' sign.
« Last Edit: February 26, 2008, 02:31:06 14:31 by strat » Logged
free
Active Member
***
Offline Offline

Posts: 115

Thank You
-Given: 71
-Receive: 13


« Reply #12 on: February 27, 2008, 10:35:39 22:35 »

If you want to detect every incoming sms, use AT+CNMI command.
You will get the index from +CMTI as respond and write AT+CMGR = <index> to get the all data message.
From the message you can check the sender phone number, message etc.

Hope it helps you


 
Logged

Some dream to escape reality, some to change it forever.
- Soichiro Honda -
sohel
Senior Member
****
Offline Offline

Posts: 442

Thank You
-Given: 167
-Receive: 149



« Reply #13 on: March 10, 2008, 12:29:21 00:29 »

any conveter for pdu to text and show on lcd?
Logged
microcom-ecuador
Guest
« Reply #14 on: March 22, 2008, 05:59:19 05:59 »

Is most easy work with text mode direct
Logged
Ret12_12
Junior Member
**
Offline Offline

Posts: 75

Thank You
-Given: 104
-Receive: 32


« Reply #15 on: March 23, 2008, 12:34:43 00:34 »

If we say CMGF = 1 ( i see above) on the nokia phone then it will accept AT Commands ? instead of the PDU ?
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC