This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Need programming help for BLE connection process.

Hello,

I'm using BLE peripheral device. I need to connect it to a BLE central device and exchange data. There are some connection procedure-

1. Discovered Bluetooth devices must advertise 16 byte service UUID { 0x6e, 0x40, 0x00,
    0x01, 0xb5, 0xa3, 0xf3, 0x93, 0xe0, 0xa9, 0xe5, 0x0e, 0x24, 0xdc, 0xca, 0x9e } and
    must have first 3 mac bytes equal to { 0x94, 0x54, 0x93 }.
2. Use the primary service profile UUID 0x2800 to find all advertised services.
3. Use Group Handlers for a group with the same advertized service UUID { 0x6e, 0x40,
    0x00, 0x01, 0xb5, 0xa3, 0xf3, 0x93, 0xe0, 0xa9, 0xe5, 0x0e, 0x24, 0xdc, 0xca, 0x9e }.
4. Find advertised attribute with 16 byte UUID {0x6E, 0x40, 0x00, 0x02, 0xB5, 0xA3, 0xF3,
    0x93, 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E}. This is the TX Characteristic.
5. Find advertised attribute with 16 byte UUID {0x6E, 0x40, 0x00, 0x03, 0xB5, 0xA3, 0xF3,
    0x93, 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E}. This is the RX Characteristic.
6. Find an advertised attribute with a 16 bit UUID {0x29, 0x02}. This is the RX Notify
    Characteristic.
7. Write two bytes {0x01, 0x00} (little endian) to the RX Notify Characteristic.
8. The client Bluetooth device is ready to receive Air-Weigh KV2 messages.

Please help me with the ble central device firmware for this.

Parents
  • Hello,

     

    Please help me with the ble central device firmware for this.

     Have you started? What exactly are you asking for here?

    I assume you have seen some of the examples in the SDK? Have you seen some of the examples from our SDK? Perhaps you can use e.g. SDK\examples\ble_central\ble_app_uart_central as a starting point? Have you tried to change the scan filters to match your requirements? This example also shows how to enable notifications on a characteristic, so you just need to change the characteristic on which you do so.

     

    8. The client Bluetooth device is ready to receive Air-Weigh KV2 messages.

     What is Air-Weight KV2 messages?

    Best regards,

    Edvin

Reply
  • Hello,

     

    Please help me with the ble central device firmware for this.

     Have you started? What exactly are you asking for here?

    I assume you have seen some of the examples in the SDK? Have you seen some of the examples from our SDK? Perhaps you can use e.g. SDK\examples\ble_central\ble_app_uart_central as a starting point? Have you tried to change the scan filters to match your requirements? This example also shows how to enable notifications on a characteristic, so you just need to change the characteristic on which you do so.

     

    8. The client Bluetooth device is ready to receive Air-Weigh KV2 messages.

     What is Air-Weight KV2 messages?

    Best regards,

    Edvin

Children
No Data
Related