This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using RTT viewer and Uart to send ESP8266 AT commands

Hello , I am using sdk12.2 and pca10028. I have implemented rtt viewer so that I dont need uart to debug or to print something. I am using uart to send AT commands to esp8266. I have tested individually and my uart code can send AT commands and I am getting response back. Now I am combining this code with ble_app_uart_c(central ) for scanning nearby ble devices.

scan function - New Text Document (3).txt.

Uart_loopback_test - New Text Document (3).txt

Uart_terminal - uart_terminal.PNG

RTT_Terminal - rtt_terminal.PNG

main.c - New Text Document (3).txt

Thanks, Shailav

Parents
  • I'm not suggesting this to be your final product, I'm trying to suggest something that will solve the problem you are having. To figure out why it is not working. Can you please try stop scanning and see if you are able to return to main(), and then call uart_loopback_test() from there? Or try to increase the UART priority to 1? Or try to disable the uart interrupt so that it will poll the register instead? Or you can upload your complete project so I can test it here.

Reply
  • I'm not suggesting this to be your final product, I'm trying to suggest something that will solve the problem you are having. To figure out why it is not working. Can you please try stop scanning and see if you are able to return to main(), and then call uart_loopback_test() from there? Or try to increase the UART priority to 1? Or try to disable the uart interrupt so that it will poll the register instead? Or you can upload your complete project so I can test it here.

Children
No Data
Related