3
\$\begingroup\$

I was wondering if it was possible to send arbitrary packets of data over a Bluetooth Smart (Low Energy, 4.0) link from a nRF51 (Nordic Semi, BLE compliant SoC) to a phone?

Also if you don't know the specific device, any help is appreciated as all I found about Bluetooth Low Energy are pre-configured profiles.

\$\endgroup\$
0

1 Answer 1

3
\$\begingroup\$

Also, on the nRF51 you can indeed send arbitrary L2CAP data, although you cannot send arbitrary ATT or SMP packets, those 2 protocols are reserved by the stack. But you can select an unused L2CAP channel and, if you control both sides, send any data you want.

\$\endgroup\$
2
  • \$\begingroup\$ And what about the other side? I mean, can I process arbitrary packets through iOS SDK and Android? All I could find was interfacing under pre-established profiles \$\endgroup\$
    – JJJ
    Commented Jul 21, 2013 at 18:41
  • \$\begingroup\$ No, unfortunately those APIs don't give you anything beyond standard ATT. However, you can always craft your own payloads in ATT packets, using 128-bit UUIDs for your characteristics, and transfer whatever data you want in whatever format you want there. \$\endgroup\$
    – introiboad
    Commented Jul 22, 2013 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.