NRF9160 DK UART configuration

Hi

I am currently running and adjusting the zephyr echo_bot uart sample
on my nrf9160 DK. Currently , the sample makes use of UART0 to send a receive information which I have made compatible with an external device and the nrf terminal. My issue is that configuring the exact code to UART1 or UART0 has been difficult to achieve. Please assist.

Parents Reply Children
  • Hi Hassan Khan,

    I am attaching complete project folder in the zip format. Once you unzip and analyze files, you will see that I have only included the overlay file. Rest of the project is exactly same.

    echo_bot2.zip

    Another thing is connecting to the right COM port with correct baudrate / configuration. I am also attaching snapshots of connecting to COM port using nRF terminal, and the sample output of the project after it has been flashed on the DK and COM port is connected to the terminal output. 

    Two things to note here is that: (1) you will not see any output if you are connected to wrong port or with wrong configurations, and (2) if everything is correct, and you start typing in the terminal, you will not see characters as you type in, but rather you will see the echo back (the same message) from the echo-bot on DK once you press ENTER key.

    I hope it will be helpful.

    With regards,

    Naeem

  • Thank you Naeem! this has helped.

    The entire project is to collect a data from an Arduino and send it to an mqtt server.  I'm currently using the mqtt_simple code as well as the echo_bot code.  The intention is to collect the data a d UART1 and send it to the console(UART 0).  The issue is, when I begin to use UART0 as the shell, the LTE connection fails.

    does this make sense? if so, is there a way around it?

    Thank you !   

Related