User manual

Roving Networks RN-24 V 4.22 5/31/2007 page 6
The Power-up settings for the GPIO can also be viewed using the “E” (extended settings)
command.
WARNING:
GPIO-4 is used by the system to reset stored parameters to factory defaults. If GPIO4 is
pulled high on power-up, and then toggled 3 times, all user settings will return to default
values. Therefore this pin should not be used as an output, and should not be driven high
at power-up time (first 1 second of operation).
NOTE:
GPIO2 and 5 are driven by the embedded software as outputs, they can be disabled using
the direction command, (to save power, for example) and used as inputs. If set to
outputs the software will override any user values.
SETTING GPIO 8-9-10-11:
S*,<hexword> = MASK[11..8] VALUE[11..8]
For the upper 4 GPIO, a single word controls the mask and values, and only the lower 4
bits of each byte are used. The first time this command is used, all 4 GPIO are driven as
outputs and remain so until a power cycle. There is no powerup command for these bits,
only the interactive one.
Examples:
S*,0101 GPIO-8 driven HIGH.
S*,0100 GPIO-8 driven LOW.
S*,0202 GPIO-9 driven HIGH.
GPIO8 pulls the YELLOW LED on when low, GPIO9 pulls the RED LED on when low
(and is driven in command mode and manual data mode),
GPIO10 and 11 are available on the 8 pin thru hole header on the
board edge. GPIO11 is the SQUARE pin, and GPIO 10 is the 3rd
pin down from GPIO11.
Roving Networks RN-24 V 4.22 5/31/2007 page 3
Making a Connection
RN-24 shows up under Service discovery as “FireFly-zpdq” where the zpdq is the last 2
bytes of the Bluetooth address. To connect to RN-24, bro
wse for services, you should
see: “SPP on Blueport-zpdq”.
Default baudrate is 115200, no parity, 8 bits, 1 stop.
RN-24
uses Serial Port Profile and can be connected to as a Virtual COM port on PCs,
Palms, PocketPCs, or other clients.
NOTE: Only one client can connect to RN-24 at a time, and there
is a limit of 7 total
devices in a Bluetooth Piconet network.
Changing Configuration
FROM LOCAL SERIAL PORT- Connect a null-
modem cable (pins 2,3 swapped) from a
PC or a straight cable from an ASCII terminal to the RN-24. Communication settings
of
your program should match the stored settings,
for example: the default is 115,200Kbps,
8 bits, No Parity, 1 stop bit. Once you change these parameters, they will be stored
permanently.
Run your favorite terminal emulator, hyperterminal or other program. (
a free emulator for
the PC is available at www.rovingnetworks.com /support/teraterm.zip) ) Type $$$ on you
r
screen (3 dollar signs). You should see CMD returned
to you. This will verify that your
cable and settings are correct. Valid commands will return an AOK.
Errors in format will
return ERR, and unrecognized commands will return a ?.
Type “h”<cr> to see a list of
commands, and “d”<cr> to see a summary of current settings.
REMOTE VIA BLUETOOTH- Make a connection via bluetooth, then use
your favorite
terminal emulator, and follow the directions above for local configuration.
To return to data
mode, type a final “---“ ( 3 minus signs) <cr>, or reset the device and connect again.
NOTE: remote
configuration can only occur if the bootup configuration timer (default 60
seconds) has not
expired. This timer is set to 0 ( remote config disabled) for master
mode, and auto-connect slave mode, so that data
can immediately flow between the 2
devices in cable replacement fashion.