Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How can messages delivered to a mobile phone be read using a microcontroller?

Status
Not open for further replies.

electron_boy

Full Member level 3
Joined
Nov 14, 2004
Messages
188
Helped
19
Reputation
38
Reaction score
3
Trophy points
1,298
Location
Chennai, India
Activity points
1,781
hi,
how the the messages delivered to a mobile phone can be read from a microcontroller. is there any special code for that or the data port of a mobile phone is just rs232.
 

Re: mobile phones

hi
u can control microcontrollers through mobile phones but u have to learn about mobile phones first and to learn about it go to the link given below
**broken link removed**
 

Re: mobile phones

yes the microcontroller can read the message from the phone. the phone can't understand the text message it only understand AT command. it need a process call SMS pack message
you cand download the SMSpacker from the net
 

Re: mobile phones

jojokatada said:
yes the microcontroller can read the message from the phone. the phone can't understand the text message it only understand AT command. it need a process call SMS pack message
you cand download the SMSpacker from the net
what are AT commands can u post a link regarding those
 

mobile phones

Some of the Nokia AT Commands.

AT command reference for gnokiid
Draft 1 01-feb-2005 by Daniele Forsi

AT* Read SMS
AT# Set/Get caller ID mode
AT+ Get phone information
ATA Answer call
ATD Dial number
ATE Set echo on/off
ATH Hang up call
ATI Get modem information
ATQ Set quiet mode on/off
ATS Set/Get S-register value
ATV Set verbose on/off
ATX Choose connect messages
ATZ Reset modem


AT*
Extended commands "*"

AT*NOKIATEST
This command is ignored.

AT*C
Start reading SMS messages

After AT*C modem responds with OK, then the following commands are accepted:
DIR, EXIT, HELP.

After sending the DIR command you can type the following key followed by the
Enter key:
P: show previous SMS
N: show next SMS
D: delete current SMS
Q: quit to AT*C mode

HELP shows this message:
The following commands work...
DIR
EXIT
HELP

EXIT: exit to command mode


AT# Extended commands "#"

AT#CID Set/Get Caller ID mode

AT#CID? Print current settings
AT#CID=<n>
<n>: 0 Disable caller ID (default)
<n>: 1 Enable formatted caller ID
AT#CID=? Print supported settings, currently (0,1)
Note: when caller ID is disabled application gets only one RING, when it is
enabled it gets one RING, then caller ID data, then a second RING.


AT+
Extended commands "+"

AT+C
Extended commands "+C"

AT+CSQ
Get RF Level
<code>
AT+CSQ
+CSQ: 31, 99
OK
</code>
First number is SQM (Signal Quality Measurement) range is 0..31 or 99 if not
known or not detectable.
Second number is FER (Frame Error Rate) range is 0..7 or 99 if not known or
not detectable (in this version it is always 99).

AT+CGMI
Print manufacturer information
<code>
AT+CGMI
Nokia Mobile Phones
OK
</code>

AT+CGSN
Print IMEI
<code>
AT+CGSN
350601234567890
OK
</code>

AT+CGMR
Print hardware revision
<code>
AT+CGMR
SW 04.30, HW 0911
OK
</code>

AT+CGMM
Print model code
<code>
AT+CGMM
NHM-6
OK
</code>

AT+CMGD Delete SMS
AT+CMGD=<n>
<n>: message number
AT+CMGF Select SMS format
AT+CMGF=<n>
0: PDU_MODE (default)
1: TEXT_MODE
AT+CMGF? Show current format; only TEXT_MODE is supported by AT+CMGL
AT+CMGR Read SMS message
AT+CMGR=<n>
<n>: message number
AT+CMGS Send SMS
AT+CMGS="<n>"
<n>: destination phone number (quotes are mandatory)
CTRL+Z to send, ESC to abort
AT+CMGL List SMS
AT+CMGL=<stat>
<stat>: (empty) 1 3 "REC READ" "REC SENT"
0 2 "REC UNREAD" "REC UNSENT"
4 "ALL"
Note: quotes are mandatory


AT+G
Extended commands "+G"

AT+GMI Print manufacturer information for the TA (Terminal Adaptor)
Hugh Blemings, Pavel Janik ml. and others...

AT+GMR Print revision information for the TA (Terminal Adaptor)
gnokiid version, compile date and time
<code>
AT+GMR
0.6.4 10:49:37 Jan 31 2005
OK
</code>

AT+GMM Print model information for the TA (Terminal Adaptor)
The string is "gnokii configured on %s for models %s"
<code>
AT+GMM
gnokii configured on /dev/ttyS0 for models
6110|6130|6150|6190|5110|5130|5190|31
OK
</code>

AT+GSN
Print serial number for the TA (Terminal Adaptor)
<code>
AT+GSN
none built in, choose your own
OK
</code>


ATA
Answer call

Answer incoming call


D
Dial number

"T" and "P" are ignored, all subsequent characters are passed to phone
Before dialing you must set S35 == 0 for DigitalData mode or S35 != 0 for
NonDigitalData mode.
; is not supported
(FIXME: ATD needs a better explanation)


ATE
Set character echo on or off

ATE, ATE0 local echo off.
ATE1 local echo on (default).
Sets bit 2 of register S14.


ATH
Modem on/off hook

ATH, ATH0 hang up current call
ATH1 do nothing


ATI
Get modem information

ATI<n>
<n>: 0..4
ATI, ATI0: /* Print terminal id (print register S39 as decimal) */
ATI0
0
OK

ATI1: /* Print serial number (IMEI) */

Read from phone
ATI1
350601234567890
OK

ATI2: /* Print phone revision */

Read from phone
ATI2
SW 04.30, HW 0911
OK

ATI3: /* Print modem revision */
gnokiid version
ATI3
gnokiid 0.6.4
OK

ATI4: /* Print OEM string */

Read from phone
ATI4
Nokia NHM-6
OK


ATQ
Set results on or off

ATQ, ATQ0 quiet off, print results according to ATV (default).
ATQ1 quiet on, print nothing.
Sets bit 4 of register S14.
This command is ignored.


ATS
Set or get S-register value

ATS<r>?
Print current value of register

ATS<r>=<v> Set register <r> to value <v>
<r>: 0..101
<v>: 0..255
To enable auto answer use ATS0=<v> where <v> is a number greater than zero;
use ATS0=0 to disable auto answer.
Note: when auto answer is enabled phone responds immediatly ignoring the value
of <v>.


ATV
Set verbosity level

ATV, ATV0 verbose off, modem responds with numbers (0, 4)
ATV1 verbose on, modem responds with words (OK, ERROR) (default)
Set bit 8 of register S14. This does not affect extended commands.


ATX
Set verbosity of connect messages

ATX<n>
<n> 0..5
Set register S22
This command is ignored.


ATZ
Reset modem and load stored profile

ATZ, ATZ0, ATZ1 all load the same profile
ATS0=0S1=0S2=43S3=10S4=13S5=8S35=7ATQ1E1S100=26S101=27
Other registers are set to zero.
This only resets the virtual modem and not the phone.
 

Re: mobile phones

Hi electron_boy,

AT Command are sent of commands to control almost any modem. It all started from the first Hayes Modem for a PC, and since then every one is using it.
Most of the commands are global. Some of the modem that have new features, add their own AT Command.

To work with mobile phone you have to do this:
1. Find in google the full set of the AT Command of the modem/mobile you are using. just type in gogleNokia "AT Command" where the nokia is your modem and you have to add the brakets.
2. Learn how to set your modem to Text mode or PDU mode format. Text mode is a simple format that you will receive the SMS in ASCII format (Only works with english ). If you are not going to use english, then you will have to use the PDU format that supports all other and english as well. There are lots of sites that explain how to use PDU. This link wil lhelp you
**broken link removed**
3. Use an MCU to receive your message and decode it. The easy way is to use numbers to the MCU via SMS.
Good luck.
 

Re: mobile phones

hi
Are the AT commands common for all manufacturers?
 

Re: mobile phones

Yes, the majority of the commands are common, especially those commands that control SMS messages.

Try the following links for more information:

h**p://www.traud.de/

h**p://www.dreamfabric.com/sms/

h**p://www.gsm-modem.de/sms-pdu-mode.html

h**p://www.frisnit.com/sms/me.html

replace * with t

Good luck
[/url]
 

Re: mobile phones

Hi junkdiamond,

I get this question alot, thats why i posted my answer before you asked:
Most of the commands are global. Some of the modem that have new features, add their own AT Command.

If you are having a problem with one of the AT command, you can post your question here.

Good luck.
 

Re: mobile phones

Its depends on which Mobile you using, and What solution(Chip) inside the MS.
Mostly, the MS has basic AT command + Manufacture extend. For the general one, you can visit ETSI and get the 3GPP TS 0707.

Command like AT+CKPD are specific for one solution, that's why you need to get the Manufacture document for extended command.
 

Re: mobile phones

Hi,

I just posted some info in another forum here... Have a look at:


Good luck.
 

mobile phones

There is this command for 'answering calls', if the cellphone is embedded into a system, how does the microcontroller know when to answer a call, is any interrupt generated or something else??
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top