Can you give me good snippet of code for AT commands resender?
Hello, Can you give me good snippet of code for AT commands resender? Like I am sending to my UART interface data via terminal and I want to send it to UART2 where peripheral is attached. So I will get its response to my original UART. Everything I tried was problematic when larger amount of data was received.
3 Replies
Look for uart bridge
so you are receiving data in uart1 and you want to send ot to uart2?
Yes exactly
in this case, I need to handle the data forwarding in firmware directly on my microcontroller .
Look at this https://github.com/Xinyuan-LilyGO/T-SIM7600X/blob/master/examples/ATdebug/ATdebug.ino
This Arduino framework code for esp32, the sim7600 module is connected to uart1 , we are sending messages to module trough the uart 0, good Luck.
GitHub
T-SIM7600X/examples/ATdebug/ATdebug.ino at master · Xinyuan-LilyGO/...
Contribute to Xinyuan-LilyGO/T-SIM7600X development by creating an account on GitHub.
Yes just copy from dr1 to dr2 when you handle the interrupt or when data is available, this is also a super nice use case for DMA if you got to engineering hours yesterday