Digi 24XStream-PKG-R Product Manual Download Page 21

XStream-PKG-R™ RS-232/485 RF Modem – Product Manual v5.x00 

 Bin a ry  Com m a n ds 

Sending and r eceiv ing par am et er  v alues using binary  com m ands is t he fast est  w ay t o change 

oper at ing par am et er s of t he XSt r eam  RF Modem . Binary com m ands ar e used m ost  oft en t o 

sam ple signal st rengt h ( RS par am et er )  and/ or  err or  count s;  or  change m odem  addr esses and 

channels for polling dat a sy stem s. Since t he sending and r eceiv ing of r egist er  v alues t ak es place 

t hr ough t he sam e ser ial dat a pat h as “ liv e”  dat a ( r eceiv ed RF pay load) , int er fer ence betw een t he 

t w o ty pes of dat a can be a concer n. 

Com m on quest ions about  using binary com m ands:   

  What  ar e t he im plicat ions of asser t ing CMD w hile liv e dat a is being sent  or  r eceiv ed?  

  Aft er  sending ser ial dat a, is t her e a m inim um  t im e delay  befor e CMD can be asser t ed?  

  I s a delay requir ed aft er  CMD is de- asser t ed befor e pay load dat a can be sent ?  

  How  does one discer n betw een liv e dat a and dat a r eceiv ed in r esponse to a com m and? 

The CMD pin m ust  be asser t ed in order t o send binar y com m ands t o t he RF m odem . The CMD pin 

can be asser t ed to r ecognize binar y com m ands any t im e dur ing t he tr ansm ission or  r ecept ion of 

dat a. The st at us of t he CMD signal is only  checked at  t he end of t he stop bit  as t he by t e is shift ed 

int o t he ser ial por t . The applicat ion does not  allow cont r ol ov er w hen dat a is r eceiv ed, except  by 

w ait ing for dead t im e betw een burst s of com m unicat ion.  

I f t he com m and is sent in t he m iddle of a st r eam  of pay load dat a t o be tr ansm it t ed, t he 

com m and w ill essent ially  be ex ecut ed in t he order  it  is receiv ed. I f t he r adio is cont inuously  

r eceiv ing dat a, t he r adio w ill w ait  for a br eak  in t he receiv ed dat a befor e ex ecut ing t he com m and. 

The 

 signal w ill fr am e t he r esponse com ing from  t he binary  com m and request  ( Figur e 3.10) . 

A m inim um  t im e delay of 100 µs ( aft er  t he st op bit  of t he com m and by t e has been sent )  m ust  be 

observ ed before t he CMD pin can be de- asser t ed. The com m and ex ecut es aft er all par am et er s 

associat ed w it h t he com m and hav e been sent . I f all par am eter s ar e not r eceived w it hin 0.5 

seconds, t he m odem  ret ur ns to I dle Mode.  

Note: When parameters are sent, they are two bytes long with the least significant byte sent first. 

Binary commands that return one parameter byte must be written with two parameter bytes. 

Refer to p23 for a binary programming example. 

Com m ands can be quer ied for t heir  cur rent  v alue by  sending t he com m and logically  ORed ( bit -

w ise)  w it h t he v alue 0x 80 ( hex adecim al)  w it h CMD asser t ed. When t he binar y v alue is sent  ( w it h 

no par am et er s) , t he curr ent  value of t he com m and par am et er  is sent back  t hrough t he DO pin. 

Figure 3.10.

 

Binary Command Write then Read 

Signal #4 is CMD 
Signal #1 is the DIN signal to the radio 
Signal #2 is the DOUT signal from the radio 
Signal #3 is 

  

 

I n t his gr aph, a v alue w as wr it t en t o a r egist er and 

t hen r ead out  t o v er ify  it . While not  in t he m iddle 

of ot her  r eceiv ed dat a, not e that  t he 

 ( DO2 

pin)  signal out lines t he dat a response out  of t he 

m odem . 

 
 
 
 
 
 

IMPORTANT:   

For the XStream Modem to recognize a binary command, the RT (DI2 

Configuration) parameter must be set to one. If binary programming is not 

enabled (RT ≠

 1), the modem will not recognize that the CMD pin is asserted and 

therefore will not recognize the data as binary commands. 

  

© 2014 Digi International Inc. 

 

 

           20 

Summary of Contents for 24XStream-PKG-R

Page 1: ...ss mainly focus on the distribution of electronic components Line cards we deal with include Microchip ALPS ROHM Xilinx Pulse ON Everlight and Freescale Main products comprise IC Modules Potentiometer...

Page 2: ...Modem Product Manual v5 x00 For XStream RF Modem Part Numbers X09 001PK R X24 009PK R XH9 001PK R X09 009PK R X24 019PK R XH9 009PK R X09 019PK R XH9 019PK R 9 00 MHz and 2 4 GHz Stand alone RF Modem...

Page 3: ...rldwide All other trademarks mentioned in this document are the property of their respective owners Information in this document is subject to change without notice and does not represent a commitment...

Page 4: ...ep Modes 16 3 2 5 Command Mode 19 4 RF Modem Configuration 2 1 4 1 Autom atic DI P Sw itch Configurations 2 1 4 2 Program m ing Exam ples 2 2 4 2 1 AT Commands 22 4 2 2 Binary Commands 23 4 3 Com m an...

Page 5: ...high gain antenna Receiver Sensitivity 11 0 dBm 900 MHz 1 05 dBm 2 4 GHz Advanced Netw orking and Security True peer to peer no master required point to point point to multipoint multidrop Retries an...

Page 6: ...ncy 902 928 MHz 2 4000 2 4835 GHz Spread Spectrum Frequency Hopping Wide band FM modulator Frequency Hopping Wide band FM modulator Network Topology Peer to Peer Point to Multipoint Point to Point Mul...

Page 7: ...n alternate way to enter AT Command Mode To enter AT Command Mode at the RF modem s default baud rate hold the Configuration Switch down while powering on the modem using the Power Switch 1 1a 1 2 c A...

Page 8: ...3 Data Carrier Detect Connected to DSR pin6 2 RXD DO Received Data Serial data exiting the RF Modem to host 3 TXD DI Transmitted Data Serial data entering into the RF modem from host 4 DTR DI3 Data Te...

Page 9: ...nector device wired to an XStream RF Modem female connector W iring Diagram DCE RF Modem to an RS 232 DCE Device Figure 2 4 XStream RF Modem female connector wired to an RS 232 DTE male connector devi...

Page 10: ...RJ 45 connector pin designations used in RS 485 422 environments Table 2 2 RS 485 2 wire half duplex Signals and their implementations on the XStream RF Modem DB 9 Pin RS 485 Name Description Implemen...

Page 11: ...ir implementations with the XStream PKG R RF Modem DB 9 Pin RS 485 422 Name Description Implementation 2 T TA Transmit Negative Data Line Serial data sent from the XStream RF Modem 3 R RA Receive Nega...

Page 12: ...wires so that T and T are connected to each wire in a twisted pair Likewise select wires so that R and R are connected to a twisted pair For example tie the green and white green wires to T and T 2 Fo...

Page 13: ...the modem into AT Command Mode is most commonly due to baud rate mismatch Refer to the table below to ensure host serial port settings match those of the modem Table 3 1 Parameter values critical to s...

Page 14: ...k any serial data that arrives on the DI pin is placed in the DI Buffer The data in the DI buffer will be transmitted over the air when the modem no longer detects RF data in the network Hardw are Flo...

Page 15: ...size PK inclusive When RB 0 the packetization threshold is ignored 2 At least one character has been received in the DI buffer pending for RF transmission and RO time has been observed on the UART ref...

Page 16: ...odem For example a wake up initializer is a type of RF initializer used to wake remote modems from Sleep Mode Refer to the FH LH HT and SM Commands for more information The length of the wake up initi...

Page 17: ...le Mode All Sleep Modes are enabled and disabled using SM Command Transitions into and out of Sleep Modes are triggered by various mechanisms as shown in the table below Table 3 2 Summary of Sleep Mod...

Page 18: ...or reception on the RF channel The user defined period is determined by ST Time before Sleep Command While the modem is in Cyclic Sleep Mode DO2 is de asserted high to indicate that data should not be...

Page 19: ...g modem and receive the data Figure 3 7 Correct Configuration LH SM Length of the wake up initializer exceeds the time interval of Cyclic Sleep The receiver is guaranteed to detect the wake up initial...

Page 20: ...d Mode Sequence for transition to Command Mode No characters sent for one second refer to the BT Guard Time Before Command I nput three plus characters within one second refer to the CC Command Sequen...

Page 21: ...r it is received I f the radio is continuously receiving data the radio will wait for a break in the received data before executing the command The signal will frame the response coming from the binar...

Page 22: ...ehavior Restore Default Parameter Values of the RF Modem If SW1 and SW2 are ON up AT Commands sent ATRE Restore Defaults Command ATWR Write Command Serial Interfacing Options If SW1 is ON up AT Comman...

Page 23: ...at facilitates the modification of PC serial port settings PC Setup 1 Set the DI P Switch to RS 232 mode Switch 1 is ON up and the remaining 5 switches are OFF down 2 Connect the male DB 9 connector o...

Page 24: ...estore the modem parameters to their factory default states 1 Open the XCTU program Start Programs Digi XCTU 2 Under the PC Settings tab select the PC Serial Com Port from the dropdown list that will...

Page 25: ...0xFFFF Diagnostics 2 0 HP 0x11 17d Hopping Channel 0 6 Networking and Security 1 0 HT 0x03 3d Time before Wake up Initializer 0 0xFFFF x 100 msec Sleep Low Power 2 0xFFFF ID v4 2B 0x27 39d Modem VID U...

Page 26: ...nge of standard baud rates are sent the closest interface data rate represented by the number is stored in the BD register For example a rate of 19200 bps can be set by sending the following command l...

Reviews: