How do I connect an RN4x module with an Android™ device?

To connect a Bluetooth® classic device as an RN42 module with an Android™ device, you have to configure the RN4x module as a slave, and have the Android device scan for it.

Follow the steps to configure the RN4x module as a slave:

1

Put the device in command mode by sending the $ command. The device returns CMD to indicate it is in command mode.

2

Send SM,0 to put the device into slave mode.

3

Verify that the device is in slave mode by issuing the D action command. Look for the MODE = Slav message.

4

Reboot the device using the R,1 command.

The changes do not take effect until the device is rebooted. On the Android device, go to Bluetooth settings and then pair with the RN4x module. Open an application which can exchange data between the module and the phone.

Android is a trademark of Google LLC.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.