cancel
Showing results for 
Search instead for 
Did you mean: 

XBEE XR868 with stm32l431rct6 controller problem

NitishGhadage
Associate

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. 

Screenshot (21).png

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? 

 

3 REPLIES 3
blnc00
Associate

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?"

 

The only thing here specific to the STM32 is your UART handling.

How have you confirmed that 

  1. The XBee is receiving correct commands from the STM32;
  2. The STM32 is correctly receiving responses from the XBee.

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:

https://www.digi.com/support

https://forums.digi.com/

 

SofLit
ST Employee

Thread moved to Others: hardware and software. If an UART issue is confirmed, it will be moved back to STM32 MCU product forum board.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.