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

i want to upload data to the internet by interfacing nrf52 dk to ESp8266 and using At commands?

I tried using the serial code in peripheral/examples to transmit At commands to the esp module but did no get any reply.Is there any reference example which I can use to connect the nrf52 kit to the internet using the esp8266 wifi module.

Parents
  • Hi,

    Unfortunately we don't have any AT commands examples. The UART example in our SDK is probably the best starting point, and you should make sure to read the ESP's datasheet and understand the AT protocol it uses. 

  • i could configure the arduino to send At commands to the esp8266, Now i want to replicate the same using the nrf52840dk to uplaod data.

Reply Children
  • You don't give us much to go on. If you can show us comparison between your Arduino and Nordic code, then maybe we will be able to provide you with some help. 

  • Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    #include<SoftwareSerial.h>
    String apiKey = "-------------"; // Edit this API key according to your Account from thingsspeak
    String Host_Name = "Digisol" ; // Edit Host_Name Wifi Access point
    String Password = "-----------"; // Edit Password wifi password
    SoftwareSerial ser(2, 3); // RX, TX define rx ana tx to transmit data to the esp8266
    int i=1;
    void setup() {
    Serial.begin(115200); // enable software serial
    ser.begin(115200); // baud rate for esp8266
    ser.println("AT+RST"); // Resetting ESP8266
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    This is the code I used to upload data to the thingspeak site using arduino and esp8266. SoftwareSerial.h is an header file inbuilt in arduino.

  • Can you also show us your code running on the nRF52?

  • I have not written a code on nrf52, i could not send data to the esp8266 using the uart of nrf52.

    Can you give an equivalent code to the arduino used above.I am programming using segger studio.I am not fluent with nrf52 hence i test it on the arduino first.But since the board has an rx and tx i assume the same thing can be done on the nrf board.

  • Unfortunately I don't have time to port your Arduino code for you, but if you show me your work on the nRF52 I might be able to spot your errors. We can make this case private if you don't want to post it publically.