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
  • Hi, My main challenge is I want to pass the parameters like

    p_adv_report->peer_addr.addr[4], p_adv_report->peer_addr.addr[3], p_adv_report->peer_addr.addr[2], p_adv_report->peer_addr.addr[1], p_adv_report->peer_addr.addr[0] in my function uart_loopback_test();. In my uart_loopback test there is one function to send data for example:

    	    for (uint32_t i = 0; i < 40; i++)
    {
        tx_DATA[i] =  p_adv_report->peer_addr.addr[i],
        while (app_uart_put(tx_DATA[i]) != NRF_SUCCESS);
     }
    	 nrf_delay_ms(10000);
    

    So how should I implement this? Thats why I was trying to call uart_loopback_test in BLE_GAP_EVT_ADV_REPORT. Thanks,

Reply
  • Hi, My main challenge is I want to pass the parameters like

    p_adv_report->peer_addr.addr[4], p_adv_report->peer_addr.addr[3], p_adv_report->peer_addr.addr[2], p_adv_report->peer_addr.addr[1], p_adv_report->peer_addr.addr[0] in my function uart_loopback_test();. In my uart_loopback test there is one function to send data for example:

    	    for (uint32_t i = 0; i < 40; i++)
    {
        tx_DATA[i] =  p_adv_report->peer_addr.addr[i],
        while (app_uart_put(tx_DATA[i]) != NRF_SUCCESS);
     }
    	 nrf_delay_ms(10000);
    

    So how should I implement this? Thats why I was trying to call uart_loopback_test in BLE_GAP_EVT_ADV_REPORT. Thanks,

Children
No Data
Related