Skip to main content
Associate III
January 22, 2025
Question

B-WB1M-WPAN1

  • January 22, 2025
  • 1 reply
  • 620 views

Colleagues.

I modified the BLE_HR_p2p_Sensor example of the STM32Cube_FW_WB_V1.20.1 library for B-WB1M-WPAN1.

I need to transfer a small amount of data from sensors (24 bytes) to Android for subsequent processing. This needs to be done fairly quickly with a frequency of 500 Hz.

I have external sensors, the values ​​of which I receive via USART 1.

In the custom_app.c file there is a definition

//#define ACC_GYRO_MAG_UPDATE_PERIOD (uint32_t)(0.05*1000*1000/CFG_TS_TICK_VAL) /*50ms (20Hz)*/ #define ACC_GYRO_MAG_UPDATE_PERIOD (uint32_t)(0.002*1000*1000/CFG_TS_TICK_VAL) /*2ms (500Hz)*/

I have time to form a data string for transmission to android. However, some data is lost.

In paragraph 4.8 of AN5289 (How to build wireless applications with STM32WB MCUs) it is said how to view the transmitter operation with an oscilloscope.

{ GPIOA, LL_GPIO_PIN_9, 1, 0}, /* DTB13 - Tx/Rx Start */

After running the application, I saw that the transmitter also turns on with a period of 50ms.

After carefully reading paragraphs 8.6.5 and 8.6.9 of AN5289, I still do not understand how to speed up the frequency of packet transmission by the transmitter and reduce the length of the packets.

 

I would be extremely grateful for help!

1 reply

STTwo-32
Technical Moderator
February 26, 2025

Hello @pm_interrupt_vect 

To increase the data transmission rate, I suggest implementing the 2 Mbps PHY after connection. Also, I suggest you reduce the connection interval and follow the recommendations of the AN5289.

Best Regards.

STTwo-32