Hi everyone,
I’m new to working with XBee modules. I’m trying to use an XBee S3B Pro module with the STM32F446RE Nucleo board. However, I couldn’t get two XBees to communicate with each other in this setup.
First, I configured both of my XBees using XCTU and successfully established communication between them via the console log in the application. Then, I moved on to the STM32 side and selected the USART settings according to the values I configured in XCTU. Despite this, and even though I attempted a very simple communication test, I was not able to get the two sides to communicate with each other.
I’m sharing my CubeIDE settings and part of my code below.
Thanks!
char txData[] = "HELLO XBee!\r\n";
while (1)
{
HAL_UART_Transmit(&huart1, (uint8_t*)txData, strlen(txData), 100);
HAL_Delay(1000);
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}

