Acces WM-IIRO-8 User Manual - Chapter 4: Software
11
Man ual W M-IIRO -8
Chapter 4: Software
General
You received ASII-based software on CD for use with W M-IIRO-8. ASCII programm ing permits you
to write app lications in any hig h leve l langu age that supp orts A SC II string fu nction s.
The comm unication proto col has two forms: addressed and non-addressed. Non-addressed protocol
can be used when only one W M-IIRO-8 is in use. W hen more than one module (pod) is in use,
addressed protocol must be used. The only difference is that an addres s c om m an d is sent to enab le
the spe cific po d. The address comm and is only sent once during comm unication between the pod
and the host c om pu ter. It en ab les com m un ica tion with tha t sp ec ific pod and disables all other pods
on the network.
Command Structure
All com m unication mu st be 7 data bits, even parity, 1 stop bit. All numb ers sent to or received from
the pod are in hexa decim al form. Th e factory default baud rate is 9600 Baud. The pod is considered
to be in add ressed m ode any tim e its pod address is not 00. The factory default pod address is 00
(non-addre ssed m ode).
Addressed Mode
The address select comm and must be issued before any other comm and to the addressed pod. The
address comm and is as follows:
"!xx [CR ]" where xx is the pod address from 01 to FF hex, and [CR] is Carriage Re turn, A SC II
character 13.
The pod resp ond s with "xxN [CR ]" or "xx Y[CR]" if an input c han ge o f state has occurred on enabled
bits since the last "Y" or address comm and, or with "xxN[CR]" otherwise.
Once the address select comm and has been issued, all further comm ands (other than a new address
select) will be executed by the selected pod. The addressed mode is required when using more than
one pod.
Non-Addressed Mode
W hen there's only one pod connected, no address select comm and is needed. You can merely issue
comm ands listed in the following table. Terminology used is as follows:
a.
The single lower case letter 'x' designates any valid hex digit (0-F).
b.
The sing le low er c ase lette r 'b' designa tes eithe r a '1' or '0'.
c.
The sym bol '±' de sign ates either a '+' o r a '-'.
d.
All comm ands are terminated with CR, the ASCII character #13.
e.
W herever xx is used to designate a bit number, only 00-07 are valid.
f.
All comm ands are case insensitive; i.e., upper or lower case letters can be used.
g.
The symb ol '*' mea ns zero or m ore valid characters (total msg length <2 55 decim al).