Learn how to use AT Commands with EADS Radios

When I started with AT Command and Java Development I need to show my Coders how to work with AT Commands.
How to Access the Data Interface called PEI ?
How to send AT Command, How to understand AT Command and Answers ?

Lets get started: Connect your EADS Radio. Chek that at least SW Ver 6.69 is installed (*#0000#)
Check the LAN-SDS Installation Manual for how to cnenct or use the Quick How to End of this Page

—————————————————————————————————————
Lets Start with:

Groups:

AT+CNUMS?
+CNUMS: 4

1,2620100103100XXX ,Gruppe 1

1,2620100103102XXX ,Gruppe 3

1,2620100103104XXX ,Gruppe 5

1,2620100103106XXX ,Gruppe 7

Number only:
AT+CNUMF?
+CNUMF: 0,26201001082806XX

2,16777184

OK

Show DMO Groups:

AT+CXDCL
+CXDCL: 1,3206,30XX,1,1

+CXDCL: 2,3606,30XX,1,1

+CXDCL: 3,3707,303F,1,1

+CXDCL: 14,3743,208*,1,1

+CXDCL: 61,0,,1,0

OK

Phonebook: Amount of Entries

AT+CPBS?
+CPBS: “ME”,12,700

OK

Entries itself:

AT+CPBR=1,12
+CPBR: 1,”8280650″,0,”Radio2″
+CPBR: 2,”8280651″,0,”Myself”
+CPBR: 3,”8280650″,0,”Anjali1″
+CPBR: 4,”8280651″,0,”Anjali2″
+CPBR: 5,”8280650″,0,”Anjali3″
+CPBR: 6,”8280651″,0,”Anjali4″
+CPBR: 7,”8280650″,0,”Anjali5″
+CPBR: 8,”8280651″,0,”Anjali6″
+CPBR: 9,”8280650″,0,”Anjali7″
+CPBR: 10,”8280651″,0,”Anjali8″
+CPBR: 11,”8280650″,0,”Anjali9″
+CPBR: 12,”8280651″,0,”Anjali10″

OK

Search Phonebook Entry:

AT+CPBF=”Anjali”
+CPBF: 3,”8280650″,0,”Anjali1″
+CPBF: 4,”8280651″,0,”Anjali2″
+CPBF: 5,”8280650″,0,”Anjali3″
+CPBF: 6,”8280651″,0,”Anjali4″
+CPBF: 7,”8280650″,0,”Anjali5″
+CPBF: 8,”8280651″,0,”Anjali6″
+CPBF: 9,”8280650″,0,”Anjali7″
+CPBF: 10,”8280651″,0,”Anjali8″
+CPBF: 11,”8280650″,0,”Anjali9″
+CPBF: 12,”8280651″,0,”Anjali10″

OK

Serach exact Single Entry

AT+CPBF=”Anjali4″
+CPBF: 6,”8280651″,0,”Anjali4″

OK

Write Phonebook Entry into Memory:
AT+CPBW=3,”8280650″,0,”Anjali1″
AT+CPBW=4,”8280651″,0,”Anjali2″
AT+CPBW=5,”8280650″,0,”Anjali3″
AT+CPBW=6,”8280651″,0,”Anjali4″
AT+CPBW=7,”8280650″,0,”Anjali5″
AT+CPBW=8,”8280651″,0,”Anjali6″
AT+CPBW=9,”8280650″,0,”Anjali7″
AT+CPBW=10,”8280651″,0,”Anjali8″
AT+CPBW=11,”8280650″,0,”Anjali9″
AT+CPBW=12,”8280651″,0,”Anjali10″

Read SDS-4 messages:

AT+CMGL=?
+CMGL: (12,13),(0-4)

12=SDS-4
13=Status

0=UNREAD
1=READ
2=OUTGOING UNSENT
3=OUTGOING SENT
4=ALL

UNREAD SDS-4

OK
AT+CMGL=12,0
+CMGL: 12,9,0,”8280650″,0
+CMGL: 12,10,0,”4370049″,0
OK

READ SDS-4
AT+CMGL=12,1
+CMGL: 12,1,1,”8280650″,0
+CMGL: 12,2,1,”8280650″,0
+CMGL: 12,3,1,”8280650″,0
+CMGL: 12,4,1,”8280650″,0
+CMGL: 12,5,1,”8280650″,0
+CMGL: 12,6,1,”8280650″,0
+CMGL: 12,7,1,”8280650″,0
+CMGL: 12,8,1,”8280650″,0
+CMGL: 12,10,1,”4370049″,0
OK

Read Sent SDS-4 Messages:

Where am I so Which folder exits in the Radio ?

AT+CPMS=?
+CPMS: (“ME”),(0-3)

0= INBOX
1= OUTBOX
2= Archive(not for Status)
3= Templates(not for Status)

AT+CPMS?
+CPMS: “ME”,0
OK

=> INBOX because 0 = INBOX

How many Messages in INBOX ?

AT+CPMS=”ME”,0
+CPMS: 57,100

how many in Archive ? => zero

AT+CPMS=”ME”,2
+CPMS: 0,100

OK

How many in Templates ? Zero

AT+CPMS=”ME”,3
+CPMS: 0,100

OK

Change to Outbox Folder:

AT+CPMS=”ME”,1
+CPMS: 4,100

So four messages in Outbox

Was change to Outbox successful ? => YES

OK
AT+CPMS?
+CPMS: “ME”,1

Show sent SDS4 Messages

AT+CMGL=12,3
+CMGL: 12,1,3,”8280650″,0
+CMGL: 12,2,3,”8280650″,0
+CMGL: 12,3,3,”8280651″,0
+CMGL: 12,4,3,”8280651″,0
OK

Change Back to INBOX
AT+CPMS=”ME”,0

SHOW STATUS

How many unread Status Messages in INBOX? => 1
AT+CMGL=13,0
+CMGL: 13,1,0,”8280946″,0
OK

How many read Status messages INBOX ? => 1
AT+CMGL=13,1
+CMGL: 13,2,1,”8280405″,0
OK

How many Status were sent ? two
Change to Outbox

AT+CPMS=”ME”,1
+CPMS: 4,100

AT+CMGL=13,3
+CMGL: 13,1,3,”8280651″,0
+CMGL: 13,2,3,”8280651″,0
OK

READ Message:

OK
AT+CTSP=2,2
OK
AT+CMGF=8
OK

Go to INBOX
AT+CPMS=”ME”,0
AT+CMGL=12,0
AT+CMGR=12,5

AT+CPMS=”ME”,0
+CPMS: 57,100

OK
AT+CMGL=12,0
+CMGL: 12,4,0,”8280651″,0
+CMGL: 12,5,0,”8280651″,0
+CMGL: 12,11,0,”8280651″,0
+CMGL: 12,12,0,”8280651″,0
+CMGL: 12,15,0,”8280651″,0
+CMGL: 12,16,0,”8280651″,0
+CMGL: 12,17,0,”8280651″,0
+CMGL: 12,18,0,”8280651″,0
+CMGL: 12,32,0,”8280651″,0
+CMGL: 12,33,0,”8280651″,0
+CMGL: 12,40,0,”8280651″,0
+CMGL: 12,49,0,”8280651″,0
+CMGL: 12,57,0,”4370049″,0
OK

AT+CMGR=12,5
+CMGR: 12,5,”REC READ”,0,”8280651″,0,”14/09/25,11:52:00+99″,48
tatata

OK

READ STATUS Message;

AT+CMGL=13,0
+CMGL: 13,1,”REC UNREAD”,”8280946″,0
+CMGL: 13,2,”REC UNREAD”,”8280405″,0
+CMGL: 13,3,”REC UNREAD”,”8280651″,0
OK
AT+CMGR=13,1
+CMGR: 13,1,”REC READ”,0,”8280946″,0,”14/09/23,16:12:09+99″,16
32770

OK

to Do: Take Table and convert 32770 to Description of Status ( via status.csv File)

Read Sent Status: AT+CPMS=”ME”,1
+CPMS: 4,100

OK
AT+CMGL=13,3
+CMGL: 13,1,3,”8280651″,0
+CMGL: 13,2,3,”8280651″,0
OK
AT+CMGR=13,3¦
OK
AT+CMGR=13,3
+CMGR: 13,3,1,0,”8280651″,0,”14/10/10,08:41:12+99″,16
8003

OK
AT+CMGR=13,1
+CMGR: 13,1,1,0,”8280946″,0,”14/09/23,16:12:09+99″,16
8002

OK
AT+CMGR=13,2
+CMGR: 13,2,1,0,”8280405″,0,”14/09/29,16:28:40+99″,16
0000

OK

FINISHED Go Back to SDS-4 INBOX:
AT+CPMS=”ME”,0

SEND MESSAGE
AT+CTSDS=12,0
AT+CTSP=2,2
AT+CMGF=8
AT+CMGS=”8280651″RETURN
> Hallo Du <STRG-Z>
———–
Sendebestätigung
+CMGS:103
OK

SEND STATUS Value 32770

AT+CTSDS=13,0
OK
AT+CMGF=7
OK
AT+CTSP=2,2
OK

DECIMAL 32770 to HEX => 8002 http://www.asciitohex.com/

AT+CTSDS=13,0
OK
AT+CMGF=7
OK
AT+CMGS=”8280651″,16
> 8002
+CMGS: 22

OK

OK

SEND REMOTE SDS

TMO Mode Value 40011 => HEX 9c4b

DMO Mode 40012 => HEX 9c4c

AT+CTSDS=13,0
OK
AT+CMGF=7
OK
AT+CTSP=2,2
OK
AT+CMGS=”8280651″,16
> 9c4c

+CMGS: 13

Both RADIO in DMO then Command for activate DMO to TMO

AT+CMGS=”8280651″,16
> 9c4b
+CMGS: 14

OK

+CTOM: 0

ok great , works fine registered in TMO …

———

Change Mode by AT-Command ( Data Cable attached)

AT+CTOM=1
OK

zurück in TMO:
AT+CTOM=0

AT+CTOM=0
OK

Check TMO Network Usage => YES LAC 8967 MCC 262 MNC 1001

AT+CREG?
+CREG: 1,8967,26201001

Check Does it works -> YES

OK
AT+CTOM?
+CTOM: 0

CTOM = 0 = TMO
CTOM = 1 = DMO

-> this procedure is necessary to detect outage of connection to the radio terminal and will be done 1x minute
———————————–

Now lets send Commando AT+CTOM= 0 (bring Radio in TMO) and AT+CTOM=1 (Bring Radio to DMO) per SDS4 Message

Prepare first: First Convert AT+CTOM=0 (ASCII to HEX) 41 54 2b 43 54 4f 4d 3d 30

AT+CTOM=1 in HEX = 41 54 2b 43 54 4f 4d 3d 31

Remember Prefix 460500 ( Header)

So Command for AT+CTOM=0 is converted 46050041542b43544f4d3d30
How Many Values ? 24 Values x 4 = 96

So lets start

AT+CTSDS=12,0 <enter> // defines that a SDS-4 Text Message is sent

AT+CMGF=7 <enter> //User Data in Hex

AT+CMGS=”8280651″,96
>46050041542b43544f4d3d31 <STRG-Z>

Request GPS:

Before Activate GPS

AT+CTSP=2,2

AT+CTSDS=12,0 <enter> // definiert dass nun eine SDS 4 gesendet wird

AT+CMGF=7 <enter> // Nutzer Daten in HEX

46050041542B4358475053433d31 Length = 112 (equals  AT Commando AT+CXGPSC=1)

AT+CTSDS=12,0 <enter> // definiert dass nun eine SDS 4 gesendet wird

AT+CMGF=7 <enter> // Nutzer Daten in HEX

AT+CMGS=”1234567″,136 <enter> // Nachricht wird an Nummer 1234567 gesendet,; die Länge ist 136

>46050041542B43584750534C523D312C31 <ctrl+z> // Remote Kommando; GPS Location request, GGA

———————————————————————————————————————–

LAN-SDS uses AT Command SET 7.2. Check the Setting in TPT / TAQTO Tool.

————————————————————————————————————————
Attach your EADS Radio Terminal: Send your first AT Command: ENTER AT, OK returns.

LOCAL CONNECTION
BY COM Port: For simple use juzst open Putty Tool:
-> Select the COM Port ( disable local Echo inside Putty Settings) and press Open.

NETWORK CONNECTION
BY PiraCom SW
Close Putty / Checxk that no other COM Port uses the Radio Data Cable.
Open PiraCom. Assign COM Port. 9600 / 8 / N / 1, TDMA – NONE , TCP Port f.ex. 1234.
Open Putty Select TCP RAW. Disable Local Echo. IP 127.0.0.1 TCP Port: Write down that Port used inside PiraCom Software.
————————————————————————————————————————–