2024-11-12 10:57 PM - last edited on 2024-11-14 02:13 AM by SofLit
Hey, I am working on Xbee with stm32, and I am getting a big problem while connection.
I am using two Xbee's one is configured as a standard router which is connected to UART1 of the
stm32 controller and the other is configured as a coordinator which is connected to the com port of another system through RS485 cable to XCTU. I have to use them in API mode. I have configured both of them in API Mode, now I am able to send API data frame from router to coordinator , but I cant receive API frame from coordinator to router ?
When I send a simple API frame from the coordinator to the router, the router Xbee sends an acknowledgment frame back to the coordinator, but my controller does not receive any frame, I have written the code to receive the complete frame at once using the polling method as well as interrupt method as well as to fetch the data in single-byte also. But it's not working. Data is received up to Xbee but the controller does not receive anything. It stops the further processing.
See first router sends some random message to coordinator, then from coordinator I have sent Sample data frame to router , it acknowledges back but after that router should send received data back to coordinator , but its not processing?
2024-11-27 08:44 AM
I am experiencing a similar issue with my setup. I have one XBee module connected to an STM32 microcontroller via UART and another XBee connected to my PC through RS485. The module on the PCB (connected to the STM32) successfully sends data, but it does not receive any frames from the module connected to the PC. I am looking for a solution as well. Have you been able to resolve this issue?"
2024-11-27 08:52 AM
The only thing here specific to the STM32 is your UART handling.
How have you confirmed that
If that's all correct, then it's an XBee issue - nothing to do with ST - so you need to go to Digi for support with that:
2024-11-27 11:02 AM
Thread moved to Others: hardware and software. If an UART issue is confirmed, it will be moved back to STM32 MCU product forum board.