The Basics
Page 14 ▪ EmbeddedBlue 506 User Manual
I/O Lines
The eb506 module features two 34 pin headers for connecting to the supported ZWorld
RabbitCore modules. A full device pin out is available in the Technical Specifications section
of this manual. There are several pins that are important when performing the exercises in
the Establishing a Connection and the Communications sections of this manual.
Pin 13 on connector CN2 of the eb506 module, which aligns with the pin designated
“PE7” on the RabbitCore module, is the On\Off pin. A RabbitCore module application
can drive this pin low to power the module down or high to power the module up.
Pin 27 on connector CN1 of the eb506 module, which aligns with the pin designated
“PD4” on the RabbitCore module, is the Connection Status pin. A RabbitCore module
application can interrogate this pin to determine the connection status of the eb506
radio.
Pin 28 on connector CN1 of the eb506 module, which aligns with the pin designated
“PD5” on the RabbitCore module, is the Mode Control pin. A RabbitCore module
application can drive this pin high to enter Data Mode or low to enter Command
Mode.
Resetting the eb506 to the Factory Default Settings
There are two different mechanisms to reset the eb506 module to the factory default settings.
Either by shorting the STATUS and MODE pins (PD4 and PD5) and then applying power to
the eb506 module, or by issuing the reset command to the eb506; see the command set
reference at the back of this manual for the syntax of the reset command.
Switching between Data Mode and Command Mode
When a Connection command is issued, the eb506 attempts to establish a connection to the
device with the address specified in the command. Once a connection is established, the
eb506 switches into data mode. At this point all data sent to the eb506 is transmitted to the
remote Bluetooth device over the wireless link. It is possible to switch from data mode to
command mode, issue commands, and then return to data mode, while maintaining a
connection. The eb506 allows you to switch between data mode and command mode by
issuing the Switch to Command Mode and Return to Data Mode commands or by driving the
MODE control I/O line (PD5) of the eb506 module.
The following Dynamic C application uses the Switch to Command Mode and Return to Data
Mode serial commands to switch between data mode and command mode. This application
is available in electronic form on the accompanying CD, in the Samples folder, in the file
CmdModeSoft.c.
auto char szPortFData[32];