Skip to content

An application example based on the BLE_Custom (BLE_P2PServer) from CubeWB which demonstrates extended attribute functionality (sending extended notifications and receiving extended writes & read requests).

License

Notifications You must be signed in to change notification settings

stm32-hotspot/STM32WB55_BLE_P2PServer_EXT_ATT

Repository files navigation

STM32WB55_BLE_P2PServer_EXT_ATT

  • The STM32WB55_BLE_P2PServer_EXT_ATT is based on the BLE_Custom (BLE_P2PServer) application from CubeWB V1.19.0.
  • This application is an example of the following attribute functionality:
    • Sending Regular Notifications using ACI_GATT_UPDATE_CHAR_VALUE() to a BLE Client (Data Length < 250 Bytes)
    • Sending Extended Notifications using ACI_GATT_UPDATE_CHAR_VALUE_EXT() to a BLE Client (Data Length <= 509 Bytes)
    • Receiving Regular or Extended Writes from a BLE Client
    • Receiving Regular or Extended Read Requests from a BLE Client
  • This application is setup to work out of the box with the STM32WB55_BLE_P2PClient_EXT_ATT example. However, it may work with other BLE Clients as well.

Hardware Needed

  • One or Two P-NUCLEO-WB55
    • One for STM32WB55_BLE_P2PServer_EXT_ATT
    • One for STM32WB55_BLE_P2PClient_EXT_ATT (Optional)

Software Needed

User's Guide

  1. Flash the NUCLEO-WB55 with the BLE Full Stack (stm32wb5x_BLE_Stack_full_fw).

    a) Check the Copro Wireless Binaries Relase Notes for information on the Wireless Stacks.

    b) Follow this video for instructions on flashing the Wireless Stack.

  2. Flash the NUCLEO-WB55 with the application using one of the following methods:

    a) Flash the prebuilt firmware image with STM32CubeProgrammer.

    RM_IMAGE_0

    b) Build and debug the application with an IDE.

    RM_IMAGE_1

  3. View the debug log output using Tera Term, you may need to press the reset button to view the inital logs (optional).

RM_IMAGE_2

  1. Press SW1 on the STM32WB55_BLE_P2PClient_EXT_ATT device to start scanning and automatic connection.

RM_IMAGE_3

  1. Press SW3 on the STM32WB55_BLE_P2PServer_EXT_ATT device to perform an ATT MTU exchange procedure. This is necessary for peforming extended attribute functionality.

RM_IMAGE_4

  1. Press SW1 on the STM32WB55_BLE_P2PServer_EXT_ATT device to send a regular notification using ACI_GATT_UPDATE_CHAR_VALUE() to the STM32WB55_BLE_P2PClient_EXT_ATT device.

RM_IMAGE_5

  1. Press SW2 on the STM32WB55_BLE_P2PServer_EXT_ATT device to send a extended notification using ACI_GATT_UPDATE_CHAR_VALUE_EXT() to the STM32WB55_BLE_P2PClient_EXT_ATT device.

RM_IMAGE_6

  1. Press SW1 on the STM32WB55_BLE_P2PClient_EXT_ATT device to send a regular write using ACI_GATT_WRITE_WITHOUT_RESP() to the STM32WB55_BLE_P2PServer_EXT_ATT device.

RM_IMAGE_7

  1. Press SW2 on the STM32WB55_BLE_P2PClient_EXT_ATT device to send a extended write using ACI_ATT_PREPARE_WRITE_REQ() & ACI_ATT_EXECUTE_WRITE_REQ() to the STM32WB55_BLE_P2PServer_EXT_ATT device.

RM_IMAGE_8

  1. Press SW3 on the STM32WB55_BLE_P2PClient_EXT_ATT device to send a regular or extended read request using ACI_GATT_READ_CHAR_VALUE() to the STM32WB55_BLE_P2PServer_EXT_ATT device.

RM_IMAGE_9

RM_IMAGE_10

Troubleshooting

Caution : Issues and the pull-requests are not supported to submit problems or suggestions related to the software delivered in this repository. The STM32WB55_BLE_P2PServer_EXT_ATT example is being delivered as-is, and not necessarily supported by ST.

For any other question related to the product, the hardware performance or characteristics, the tools, the environment, you can submit it to the ST Community on the STM32 MCUs related page.

About

An application example based on the BLE_Custom (BLE_P2PServer) from CubeWB which demonstrates extended attribute functionality (sending extended notifications and receiving extended writes & read requests).

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published