1
\$\begingroup\$

I have just bought a BLE device that can act as peripheral or central (a BLE mini). Out of the box the device is like a wireless UART as a peripheral.

I looked at the example chat app under the hood and a TX characteristic is defined.

How can I now use the peripheral not for the example chat app, but for my needs, and define my own services/characteristics ? How do I setup the BLE peripheral with my own Gatt profile ? Is it a protocol that is used everywhere or is it proprietary to the BLE module maker ?

I just keep seeing on my web searches definitions about GATT and characteristics and how to use it etc, but never this info.

\$\endgroup\$
1
  • \$\begingroup\$ I would like to know the same thing. Did you ever figure this out? \$\endgroup\$
    – Dave
    Commented Mar 20, 2015 at 16:48

1 Answer 1

1
\$\begingroup\$

..and define my own services/characteristics? How do I setup the BLE peripheral with my own Gatt profile?

The answer lies in the section on the product page which says,

Standalone operation - Texas Instruments (TI) CC2540 is a SoC (System-on-Chip) IC that can operate without any external microcontroller. You can develop your own firmware using IAR Embedded Workbench for 8051 Compiler , all I/O pins of CC2540 are accessible.
Firmware upgradable - develop your own or download a "pre-packaged" firmware and upload to BLE Mini via the USB connector, TI CC Debugger is not required.

While I have not had a chance to look what their "pre-packaged" firmware looks like, but I am sure that when they say claim that you can develop your own Firmware (I guess they are specifically referring to Firmware that resides in the flash of the microcontroller on the BLE module, which has to contain GATT configuration and other optional implementation depending upon what board supports)

Is it a protocol that is used everywhere or is it proprietary to the BLE module maker?

Firstly, GATT is a profile and not a protocol. While we can say so that GATT is used everywhere (with BLE for scope of this question), the ways to configure the GATT database and dumping that onto the module is left to module manufacturers. One of them prefers doing that by means of a xml (BlueGiga), while the other one I have used, prefer SmartBASIC language (Laird).

\$\endgroup\$

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.