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
  • I have worked out that on the side of the connectivity chip the right place to handle user commands is the function ser_conn_received_pkt_process() in the module ser_conn_pkt_decoder.c. Here I can decode user commands.

    But on application side, I could not work out yet what is the expected way to send a user command. I have to use tx_buf_alloc() and ser_sd_transport_cmd_write() to start a transfer. It would be handy if there is an example implementation or even a stub for a user command transfer in the library routines.

Reply
  • I have worked out that on the side of the connectivity chip the right place to handle user commands is the function ser_conn_received_pkt_process() in the module ser_conn_pkt_decoder.c. Here I can decode user commands.

    But on application side, I could not work out yet what is the expected way to send a user command. I have to use tx_buf_alloc() and ser_sd_transport_cmd_write() to start a transfer. It would be handy if there is an example implementation or even a stub for a user command transfer in the library routines.

Children
No Data
Related