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

Serialization: How to control GPIO connectivity chip

I am developing an application on a STM32 CPU that uses a 51822 through BLE serialization for BLE connectivity.

I have connected some LEDs at the pins of the 51822 to indicate the state of the application in my main CPU.

How can I send commands from my application to the BLE connectivity chip to control the GPIOs with the LEDs on the connectivity chip?

Are there already some commands in the serialization protocol for this purpose?

Parents
  • Hi Christian,

    We don't have an example or supported in the library yet. But you are correct about using tx_buf_alloc() to set the buffer and then use ser_sd_transport_cmd_write() to send the command. You just need to define your own GPIO API (addition to the SVC APIs of the softdevice). So that you can process the packet accordingly in ser_conn_received_pkt_process() on the connectivity chip.

Reply
  • Hi Christian,

    We don't have an example or supported in the library yet. But you are correct about using tx_buf_alloc() to set the buffer and then use ser_sd_transport_cmd_write() to send the command. You just need to define your own GPIO API (addition to the SVC APIs of the softdevice). So that you can process the packet accordingly in ser_conn_received_pkt_process() on the connectivity chip.

Children
No Data
Related