This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to write simple uart program for sending and receiving data

hello there,

i am using nrf51422 but dont know how to write a program for uart. i want to send AT commands to Quectel M95 using uart . good help appriciated!!

cheers, Abhijeet

Parents
  • Hi,

    I recommend that you take a look at the UART example in the SDK. You can find the source code and the project file of the example in the following folder: <SDK_InstallFolder>\examples\peripheral\uart.

    You can download the SDK 12.3 here.

  • When you use the terminal on the PC, you are probably interfering with the UART connection between the nRF5x and the ec25 if you are using the default UART pins. The UART signals are also routed directly to the interface MCU(on-board Segger J-link). The UART pins connected to the interface MCU are tri-stated when no terminal is connected to the virtual COM port on the computer. I.e. You should not use the PC terminal if you have connected the nRF5x and the ec25 together using UART.

Reply
  • When you use the terminal on the PC, you are probably interfering with the UART connection between the nRF5x and the ec25 if you are using the default UART pins. The UART signals are also routed directly to the interface MCU(on-board Segger J-link). The UART pins connected to the interface MCU are tri-stated when no terminal is connected to the virtual COM port on the computer. I.e. You should not use the PC terminal if you have connected the nRF5x and the ec25 together using UART.

Children
No Data
Related