I have a device that runs with nRF51 chip with the NRF UART Service (NUS). I have a Raspberry Pi 3 and I want them to communicate.
The device requires an authentication packet that needs to be sent within the 1 second timer after the Nordic Uart Service has started. The sequence is as follows:
- Device advertises.
- rpi BLE connect request
- Both are connected.
- Device Nordic UART Service start - Start 1 second disconnection timer (waiting for authentication packet).
- At this point, Rpi should send authentication packet.
My question is, how do I send the authentication packet? I understand NUS has UUID, and TX and RX characteristics.
"Nordic UART Service is 6E400001-B5A3-F393-E0A9-E50E24DCCA9E (16-bit offset: 0x0001)." TX Characteristic (UUID: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E) RX Characteristic (UUID: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E)
I am planning to use the gatttool for the BLE communication in the Raspberry Pi Side.
Gatttool needs to know the Characteristic Handles for TX and RX Characteristics so I can read/write commands.
Thanks.
[Update] I have seen this info: maybe this can help