While choosing Bluetooth Module for wireless connection between mobile and the PN532 board, there exist 3 types of Bluetooth Module on the market, SPP type, BLE type, and Dual-Mode type.
SPP stands for Serial Port Profile for Bluetooth under the 3.0 version. BLE stands for Bluetooth Low Energy for Bluetooth over the 4.0 version. The max transaction speed of different Bluetooth Modules is different.
Baud Rate 115200
The baud rate of the Bluetooth Module needs to be set to 115200. So you have to connect the module with USB serial board. Then config the baud rate and Bluetooth Module name with AT commands. You also need to contact the seller to get the latest documents for AT commands.
Connection
BT VCC ->> VCC PN532
GND ->> GND
TXD ->> RXD
RXD ->> TXD
PN532 on SPP
Only Android and PC devices support SPP service.
The Bluetooth Module has to be paired in system Bluetooth settings firstly.
Available Android App:
PN532 on BLE
With the MTools Lite app, PN532 can also work on iOS and Android with BLE Connection. But different BLE Module has different UUID for notifying and writing characteristic.
Debug PN532 on BLE
LightBlue on App Store
https://apps.apple.com/cn/app/lightblue/id557428110
Raw Command Test
- Scan and connect to the BLE module
- Find Notify Service and Enable Li sen for notifications.
- Send hex byte through Write Service to active PN532
55550000000000000000000000000000ff03fdd414011700
- If connection and configuration is well, the PN532 will response with
0000FF00FF000000FF02FED5151600
Wake-up Test
MTools Lite App support wake-up test by one click if the Bluetooth Module has the configuration below:
Brand | Service UUID | Notify UUID | Write UUID |
JDY | 0000ffe0-0000-1000-8000-00805f9b34fb | 0000ffe1-0000-1000-8000-00805f9b34fb | 0000ffe1-0000-1000-8000-00805f9b34fb |
HC | 0000ff00-0000-1000-8000-00805f9b34fb | 0000ff01-0000-1000-8000-00805f9b34fb | 0000ff02-0000-1000-8000-00805f9b34fb |
0000ffe0-0000-1000-8000-00805f9b34fb | 0000ffe1-0000-1000-8000-00805f9b34fb | 0000ffe2-0000-1000-8000-00805f9b34fb |
Not Working?
- Re-check the connection
- Let us know the full UUIDs of the BLE Module board, and we’ll update it to the APP for more adaptions.
Hello,
The UUID of my module is:
ED27327C-65C1-EE1E-1FDC-D1F9A1066534
thanks for adding
Would you please share the notify and write UUID? Or you can rename the BLE name to PN532_BLE to access the functions.
Thank you for your help. Renaming it to PN532_BLE helped, it’s working now.