
Order yours here
Description:
This class 2 Bluetooth module comes programmed with firmware that allows it to pass the output of a serial communications port (default is 9600 baud) over a Bluetooth wireless connection with no software configuration. The module is mounted on a convenient mezzanine adapter board providing an interface for power and Tx/Rx serial communication. Additionally the module, by use of AT type text commands issued via the serial interface can be reconfigured from its default Bluetooth slave state to a Master state. This means that module can not only communicate with Bluetooth master devices such as PC's and smart phones, but also when in master mode it can automatically pair with a second module in its default slave configuration allowing an end to end serial communication over Bluetooth. Please note that whilst in master mode the module can only communicate with another module in slave mode or one of our HC-06 Bluetooth slave modules (HCARDU0004).
PLEASE NOTE: Not compatible with iPhone devices.
Specification:
Bluetooth protocol: Bluetooth Specification v2.0+EDR Frequency: 2.4GHz ISM band Modulation: GFSK(Gaussian Frequency Shift Keying) Emission power: 4dBm, Class 2 Sensitivity: -84dBm at 0.1% BER Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps Size: 28mm x 15 mm x 2.35mm Security: Authentication and encryption Profiles: Bluetooth serial port Power supply: +5V DC (5.5V max) Working temperature: -20 ~ +75 Centigrade
How to connect a Bluetooth Master (Android Phone):
1. Powering On:
When you connect power to the module for the first time, it will automatically enter pairing mode. The LEDs will flash quickly to indicate this.
2. Pairing with Your Phone:
- On your phone, search for and pair with a new Bluetooth device.
- The module should appear in the list of available devices.
- Select the module, and when prompted, enter the code 1234 to pair.
Note: At this stage, the device is paired with your phone but not yet connected, so the LEDs will continue flashing.
Connecting to the Module
To communicate with the module, you’ll need a Bluetooth-compatible terminal app installed on your phone.
- For Android: You can use the app Serial Bluetooth Terminal.
1. Open the app, select the Bluetooth module, and connect to it.
2. Once connected, the LEDs on the module will change from a quick flash to a slow double flash, indicating a successful connection.
Communication
While connected, anything you type into the terminal app will be transmitted to the module's serial header Tx pin at a baud rate of 9600.
How to put the module into command mode:
By default when the module is first powered up, it will be in a slave communication mode. This will allow the module to communicate with most Bluetooth master devices supporting the Serial Port Protocol. Whilst in this mode any data sent to its serial interface, including AT commands, will be passed though to the end device. To allow the module to receive AT configuration commands the module must be placed in command mode. To do this please follow these steps:
1) Disconnect power from the VCC pin or pull the EN pin low.
2) Press and hold the push button on the mezzanine board.
3) Reconnect power to the VCC pin or pull the EN pin high.
4) Release the push button.
The on board LED will the change to a slower flash period. The module is now in command mode and AT commands listed below can now be issued to the module. Whilst in command mode the default communication speed is 38400 Baud. When issuing any AT command it must be followed by both a cartridge return [CR] and line feed [LF] escape code.
How to put the module back into communication mode:
Whilst the module is in command mode there are three ways to switch it back to communication mode:
1) Cycle the modules power
2) Pull the EN pin low and then release it
3) Issue the at command AT+RESET via the serial interface.
How to switch the module to Master mode:
To switch the module to master mode, whilst in command mode (see above), issue the following command via the serial interface:
AT+ROLE=1
Remember to also include a carriage return and line feed escape code. To switch the module back to slave mode issue the following command:
AT+ROLE=0
LED states:
Slow flash: Command mode
Quick flash: Communication mode (disconnected)
Double flash: Communication mode (connected)
Pinout:
STATE.....Device current state
RXD........UART Receive Input
TXD .......UART Transmit Output
GND.......0V
VCC.......+5V
EN.........Enable (Pull low to disable module)
Command List:
AT
AT+RESET
AT+VERSION?
AT+ORGL
AT+ADDR?
AT+NAME=<Param>
AT+ROLE=<Param>
AT+IAC=<Param>
AT+IAC?
AT+INQM=<Param>,<Param2>,<Param3>
AT+INQM?
AT+PSWD=<Param>
AT+PSWD?
AT+UART=<Param>,<Param2>,<Param3>
AT+UART?
AT+CMODE=<Param>
AT+CMODE?
AT+BIND=<Param>
AT+BIND?
AT+PMSAD=<Param>
AT+RMAAD
AT+MRAD?
AT+INIT
FAQ:
Will the device remember the pairing when powered down?
Yes it will. After powering up the module you can just reconnect via your terminal app.
How do I change the pairing later?
To remove the pairing you'll have to put the module into command mode and issue an AT command via the serial header. Note, BAUD rate in command mode is 38400, not 9600. Information on how to put it into command mode can be found in this post under 'How to put the module into command mode':
Issuing an AT+RMAAD will remove all previously paired devices.
Can I issue AT commands via a remote connected device?
No, AT commands can only be issued from the serial interface whilst the module is in command mode.
AT command instruction manual:
Please note that there may be some translation errors in this manual and that some instructions may incompatible with this version of module.