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.

  • thanks for your reply!!! yes man i have successfully complied and run that program but the program is transmitting and receiving the same thing ..actually i want to interface quectel ec25 withnrf51422 and want to send AT commands for gsm communication between nrf51422 and ec25 modem...but this program is just sending and receiving the same thing i want some reply from that board through ec25 through uart tell what the changes i have to do in this code that you have mentioned earlier.i just want to send something and receive some response ...how to do that using this code? thanks for your help!! your help appreciated!!

    cheers, Abhijeet

Reply
  • thanks for your reply!!! yes man i have successfully complied and run that program but the program is transmitting and receiving the same thing ..actually i want to interface quectel ec25 withnrf51422 and want to send AT commands for gsm communication between nrf51422 and ec25 modem...but this program is just sending and receiving the same thing i want some reply from that board through ec25 through uart tell what the changes i have to do in this code that you have mentioned earlier.i just want to send something and receive some response ...how to do that using this code? thanks for your help!! your help appreciated!!

    cheers, Abhijeet

Children
No Data
Related