Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hello,I am pretty new to BLE-Application and trying to build my first own app using the STM-BLE-Stack.I've been writing about my process in a previous thread (https://community.st.com/t5/stm32-mcus-wireless/stm32wb-ble-update-char-from-main-c/m-p/589220#M16405), but want to be more precise now.My STM32 should work as server and send sensor data to a client, at first just a smartphone using the BLE Toolbox application.I generated a project according to ST's YouTube-Tutorial (https://www.youtube.com/watch?v=CKYWy7LKL68&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=16) and can read and write to my characteristics from my smartphone.Now I want to update a BLE-characteristic from my main application, i.e. main.c. I want to transfer sensor data and send a notification to my client that new data is available.I know about the functions aci_gatt_update_char_value() and in my case (cause I used the custom template) Custom_STM_App_Update_Char()
I'm trying to allow re-connects only for whitelisted devices.I have a phone which is bonded (pass key security) and connected with no problems.On device disconnect i do the following:aci_gap_configure_whitelist(); aci_gap_set_undirected_connectable(Advertising_Interval_Min, Advertising_Interval_Max, 0, WHITE_LIST_FOR_ALL);I'm trying to connect again with the same device, but it's not able to.No one is able to connect at this point, even though device is discoverable. I have verified with aci_gap_is_device_bonded before calling aci_gap_configure_whitelist and the device is bonded, so the call to aci_gap_configure_whitelist should have added the device to whitelist. I also tried adding the device to whitelist with hci_le_add_device_to_white_list but got same results. Using BLE FW Stack: 1.8.0
Hello, I made 2 project about client and server using stm32wb1mmc product. > server project is using "custom p2p server" It works well but I want to improve usability. 1. How to reduce scan time for connect client to server? > I quote it from examples. use "CFG_TASK_START_SCAN_ID" when external pin interrupt is set. so when button is pushed, client start scan request. after 10s appx, client can be connected server. I want to reduce this time. > Or is it possible to scan as soon as the power is applied? In my case it didn't work due to Hardfault. 2. How to enter sleep(stop) mode cpu2? As far as I know, cpu2 can't enter stop mode after cpu1 & cpu2 booted completely. If it is correct, is it no way to cpu2 enter sleep and wake up? 3.I don't think the low power settings are working correctly. In my case, it consumes around 6mA. What are some settings I've missed?
Hello Thank you for your help always I hope for a positive reply on this because it has indeed stressed me for some good time please help me Am using a temperature sensor and I want to be receiving the sensor values from the st ble toolbox app every time a connection is established between my peripheral and the phone. I can read my data from the sensor well but sending this data is still becoming a problem, I have read through all the responses from this community regarding the notification but am not able to get a clear solution . Kindly help me on this I will be very grateful. Hoping for a positive reply soon
I would like to implement a BLE peripheral without using UTIL_SEQ.The sample project BLE_Peripheral_Lite seems to realize BLE functionality without using UTIL_SEQ, but when I add BLE functionality in STM32CubeMX, it is automatically set to use UTIL_SEQ. without using UTIL_SEQ. Is there any way to output source code by CubeMX without using UTIL_SEQ?Also, if UTIL_SEQ is not used, is it possible to use Timer Sever or Low power manager?Please tell us the other limitations of not using UTIL_SEQ.
Zigbee is used for wireless communication with reference to Zigbee_OnOff_Router_NVM. The problem I'm currently facing is when connecting multiple routers and sending data every 2 seconds, the APP_ZIGBEE_persist_save freezes for about 30 seconds at regular intervals. What could be the cause of this?
Hi ST experts.I used the pingpong sample code with the tutorial I have found in the TechForum: Link of the tutorial in order to establish the radio frequency communication between two Nucleo-WL55JC2 boards and it works. And then I tried to communicate with the device that has this configuration It didn't work with my code, I searched for the problem and I found on the configuration of the subghz: What is the role of the baudrate prescaler value for the subghz configuration?and what changes should I make?
Hi All,I'm currently testing Thread cli with STM32WB5xx Nucleo Board with stm32_ftd.bin v1.17 for the coprocessor firmware.I got an issue when sending the "Coaps connect <ipv6 add>", I got "Invalid Args" as return valueDid anyone test the coaps secure with OT cli before? Thank you!
hello.I was interested in stm32wb5MM, so I purchased the stm32wb5MM-dk board.The demo that ran when I powered on this board was very interesting as I was planning a similar project.I searched for STM32CubeWB to see the code, but the Demontrations folder was empty.How can I get the Demontrations code of stm32wb5MM-dk?
Hello,I'm seeking guidance on transmitting data (char buffer[]) via BLE communication using my STM32WB30CE. I've integrated this MCU into my custom-designed development board. I've successfully activated the BLE Stack and can identify my device through the ST BLE Toolbox. Could someone assist me in understanding how to transfer my data? While I'm aware of the existence of templates, they don't align with my specific needs...Thank you in advance!
Hello, I want to make my end node will send join request to the gateway continuously in every five second. My goal is send join request continuously until end node connected to the gateway and if connection is break after join with server, then again send join request contiguously. Thank you in advance.
I am trying to use the indication property instead of the notification property based on the heart rate example for the WB55. I have modified the gatt characteristic to advertise an indication. I have the android I am connecting to sending a CCCD to which it gets a successful response. I then try to send my indication.To send an indication instead of a notification I believe I have to use: aci_gatt_update_char_value_ext function. I am unsure of the parameters required and there seems to be no up to date documentation for this function that includes all parameters. I know that my notification call works that looks like so:result = aci_gatt_update_char_value(aTemplateContext.TemplateSvcHdle, //Service Handle aTemplateContext.TemplateNotifyServerToClientCharHdle, //Char Handle 0, /* Value offset */ TEST_PAYLOAD_LENGTH, /* value length */ (uint8_t *) pPayload); //ValueBut my call to the extended function returns an INVALID_PA
Hi, I want to make a costume PCB board with the STM32WBA52CG on it, where can I find the reference schematic to make it work? Thanks in advance! Kind regards, Mats
Hi ST Community,I´m doing my first try with the board STEVAL-ASTRA1B, try to run the example binary for Logistic.LoRa can not join the network:on the APP ST Asset Tracking there is no data from GPS:some hints? Thanks in advanced.
I'm trying to create an application that sends information from a sensor connected to STM32WB (P-Nucelo WB55) to another device over BLE via notify. I followed each and every instruction in this video posted by STM, but that application simply doesn't work. The value of the characteristic remains zero even after pressing the button. Is the information in the video still relevant? I just need a simple way to transmit a buffer over BLE and I unfortunately can't find any resources on how to do that.
When will the Reference Manual be available?Yes, I saw the duck-and-run non-answer when someone asked in February. I'd like a real answer.
Is there such command?
I see it has the WB55M and another WL module on it.How is then the low power mode controlled?Is it separate for each module?Can I disable the other module? keep the WB55M only ?
HI, I added PLL to the Clocks , but that totally broke the sleep behaviour and I get no RF. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE|RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.LSEState = RCC_LSE_ON; RCC_OscInitStruct.HSIState = RCC_HSI_ON; RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; RCC_OscInitStruct.PLL.PLLM = RCC_PLLM_DIV2; RCC_OscInitStruct.PLL.PLLN = 16; RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV4; RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2; RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK4|RCC_CLOCKTYPE_HCLK2|RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider =
Before writing, I apologize for the unsophisticated use of English. Hello, I'm student who struggle with ble. I want to transmit the IMU GYRO Info & Camera Video ( or Image ) by STM32WB Module on the board. But I don't have any idea for starting ble. I already read the Guide for Starting BLE ( such as WIKI, BLE_AT_Client example, user guide, youtube video, and etc.). But I met the limitation caused by hardware gap ( such pin out and etc. ). So, I could not make code bout using ble. Can I get some any code sniffets or Info bout using ble with b-u585 dk? I'm so sorry if it was very rudimentary or if I looked it up and found an answer quickly.
I think I've spot a small bug into the cube mx code generation tool for STM_WPAN moduleinto app_debug.c in function void DbgOutputTraces( uint8_t *p_data, uint16_t size, void (*cb)(void) ) { /* USER CODE END DbgOutputTraces */ HW_UART_Transmit_DMA(CFG_DEBUG_TRACE_UART, p_data, size, cb); /* USER CODE END DbgOutputTraces */ return; } There is 2 "END" tags the first one should be a BEGINdue to this everything you wrote between both tag that should be kept when generating code from IOC file is scrapedthank's for the help
Hello all, In my Project I'm using STM32WB5MMG Mcu for Bluetooth via data transmission, Iam Developing code as per the reference of STM32WB5 Nucleo Board and ST's MOOC for Bluetooth pairing,single data read and write.Iam doing as same as the Nucleo board but there is nothing happen,after i verify the code its also similar so what to do in this situation,kindly help to resolve this. Here I am attaching Screenshots,
Dears, good afternoon.We had standard hardware for telemetry using STM32G071. We decided to migrate it to STM32WB15CC in order to take advantage of BLE features.It turns out that two sensors use the same interrupt line, PA8 and PB8, although one detects the rising edge and the other the falling edge. This is how we differentiate them in the STM32G071.To differentiate the rising and falling edges in the STM32G071, we use the EXTI_FPR1 and EXTI_RPR1 registers. However, we did not find similar ones in the STM32WB15CC, but only an EXTI_PR1 register that identifies that an edge has occurred. Obviously, it is more difficult to change "almost" standard hardware, due to issues of size, layout, etc. We would like to resolve this issue through software.Do you have any suggestions to resolve this problem?The list of interrupts for GPIOs is below.Thank you in advance for your attention!William Ferreira (from Brazil) Image 1: WB15 reference manualImage 2: STM32G0xx reference manual
Hello,I have a BLE application and I want to use UART DMA for communication between Nucleo and PC.I have managed to get it working, however everytime only odd bytes are received. (One is received and the second one is not and again..) I'm attaching a screenshot from terminal. Here is my code, the communication is split by sending and receiving 1 byte, what I'm doing wrong? Can you please help me? Any suggestion would be appreciated! Thank you very much!void Custom_APP_Init(void){HAL_UART_Receive_DMA (&huart1, rx_message, 1);} void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart){HAL_UART_Receive_DMA(&huart1, rx_message, 1);if(transmit == 0){HAL_UART_Transmit_DMA(&huart1, rx_message, 1);transmit = 1;}} void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart){transmit=0;}
Hi community,I'm having some issues with LPTIM on a WB55 nucleo board.I have set a LPTIM to fire interrupts every 2us (with a PWM output). It uses PLL as CLK source, and the PWM signal I see in output is effectively correct.The problem arises when I call HAL_LPTIM_AutoReloadMatchCallback(), in which I simply toggle a pin at the same frequency (500KHz, 2us).The representation of the signals is here below, where the first graph is the PWM signal and the other is the pin I want to toggle in the callback: The only line of code inside the callback is HAL_GPIO_TogglePin(A0_GPIO_Port, A0_Pin);Do some of you know why this happens?Thanks so much
WATCH ON-DEMAND | STM32 Summit 2026
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.