
XStream-PKG-R™ RS-232/485 RF Modem – Product Manual v5.x00
3 .2 .5 . Com m a n d M od e
To m odify or r ead m odem param et er s, t he m odem m ust first ent er int o Com m and Mode, t he
st at e in w hich incom ing char act er s ar e int erpr et ed as com m ands. Two com m and t ypes are
av ailable for progr am m ing t he m odem :
•
AT Com m ands
•
Binar y Com m ands
For m odified par am et er v alues t o per sist in t he m odem r egist r y , changes m ust be saved t o non-
v olat ile m em ory using WR ( Wr it e) Com m and. Ot herw ise, par am et ers ar e rest or ed t o pr ev iously
sav ed v alues w hen t he m odem is pow er ed off and t hen on again.
AT Com m a n ds
To Ent e r AT Com m a nd M ode :
1.
Send t he 3- char act er com m and sequence “ + + + ” and obser ve guar d t im es befor e and aft er
t he com m and char act er s. ( Refer to t he “ Default AT Com m and Mode Sequence” below .) The
“ Ter m inal” t ab ( or ot her ser ial com m unicat ions soft w ar e) of t he XCTU Softw ar e can be used
t o ent er t he sequence.
( OR)
2.
Asser t ( low ) t he
pin and t ur n t he pow er going t o t he m odem off and back on. This
r esult can be achieved by k eeping t he configur at ion sw it ch pr essed w hile t ur ning off, t hen on
again t he power supply ing t he RF Modem )
Default AT Com m and Mode Sequence ( for t r ansit ion t o Com m and Mode) :
•
No char act er s sent for one second ( r efer t o t he BT ( Guard Tim e Befor e) Com m and)
•
I nput t hree plus char act er s ( “ + + + ” ) w it hin one second ( refer to t he CC ( Com m and
Sequence Char act er ) Com m and.)
•
No char act er s sent for one second ( r efer t o t he AT ( Guar d Tim e Aft er ) Com m and.)
To Se n d AT Com m a nds:
Send AT com m ands and par am et er s using t he sy nt ax shown below :
Figure 3.9.
Syntax for sending AT Commands
NOTE: To read a parameter value stored in a register, leave the parameter field blank.
The pr eceding ex am ple w ould change t he m odem Dest inat ion Addr ess t o “ 1F” . To st ore the new
v alue t o non- volat ile ( long t erm ) m em ory , t he Wr it e ( ATWR) Com m and m ust follow .
Syst e m Re spon se .
When a com m and is sent t o t he m odem , t he m odem w ill par se and ex ecut e
t he com m and. Upon successful ex ecut ion of a com m and, the m odem ret ur ns an “ OK” m essage. I f
ex ecut ion of a com m and r esult s in an er ror , t he m odem r etur ns an “ ERROR” m essage.
To Ex it AT Com m a n d M ode :
1.
Send ATCN ( Ex it Com m and Mode) Com m and.
( OR)
2.
I f no v alid AT Com m ands ar e r eceiv ed w it hin t he t im e specified by CT ( Com m and Mode
Tim eout ) Com m and, t he Modem aut om at ically r et ur ns t o I dle Mode.
For ex am ples t hat illust r at e t he st eps of progr am m ing t he m odem using AT Com m ands, r efer t o
t he RF Modem Configur at ion ( p21) chapt er .
© 2014 Digi International Inc.
19