
Advanced User Manual
www.rovingnetworks.com
rn-bluetooth-um Version 4.77 11/21/2009
809 University Avenue • Los Gatos, CA 95032 • Tel (408) 395-6539 • info@RovingNetworks.com
~ 19 ~
The default profile is Serial Port Profile (SPP). The firmware also supports the DUN profile in both master
and slave modes.
To change the profile, use the “S~,<num>” command.
<num>
Profile Comments
0 SPP Default , no modem control
1 DUN -DCE Slave or gateway
2 DUN-DTE Master or client
3 MDM SPP With modem control signals
4 SPP and DUN-DCE Multi-profile
The most common use of DUN profile is to enable a BT client to connect to a dialup modem. For this mode,
use profile 1 (DUN DCE) via command “S~,1” . You may also want to set the Class Of Device so that
clients can recognize the device as a Bluetooth modem. The correct COD for a Bluetooth modem is
0x040210. This can be set using the commands below:
“SC,0004”
“SD,0210”
A new option available with version 4.74 firmware allows connection to Either SPP or DUN (but not both at
the same time) Both Services are displayed when a host discovers services, and either one can be chosen
and connected to. It is also possible to connect using SPP profile, disconnect, and then connect using DUN
profile.
6.2 Using PIO as Modem Control Signals
The Firefly and RN-XX modules have the ability to replicate the required modem control hardware signals
automatically once a connection is made. These signals are transferred outside the data channel (using
RFCOMM control channels) and are automatically updated. The default SPP profile (profile=0) does NOT
drive these signals or report back inputs. If DUN or MDM profiles are enabled (profile =1,2, or 3), the
following signals are automatically driven and received.
Inputs: (read and sent back over Bluetooth to the remote host), Inputs are ACTIVE LOW.
PIO3 = DCD ( switch 2) PIO6 = DSR (switch 3) PIO7 = CTS (switch 4).
Outputs: (sent from the remote Bluetooth host, and driven out )
PIO10 = DTR - this is ACTIVE HIGH PIO11 = RTS - this is ACTIVE LOW.
On the Firefly, the DIP switches can also be used to set/clear the DCD, CTS, and DSR signals. DTR and
RTS are available on the 9 pin header as well.
Kommentare zu diesen Handbüchern