casebsantos
Newbie
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? Since Already, thanks.
|
|
|
Logged
|
|
|
|
bbarney
Moderator
Hero Member
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
|
|
|
Logged
|
Ever wonder why Kamikaze pilot's wore helmet's ?
|
|
|
Rute
Junior Member
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
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?
|
|
|
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
|
|
|
|
|
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
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
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
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
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
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
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
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
|
|
|
|
|