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

It is possible to send data from nrf9160sip to ESP32 using UART communication?

Hi All

We have to send GPS data to Cloud but we do not have network so is this possible to send GPS data from nRF9160sip to ESP32 via UART communication

and after using MQTT send those data to cloud from ESP32.

so our quires are

[1] It is possible to send data from nRF9160sip to ESP32 ? if yes then can you guide us.

[2] It is possible to send data from ESP32 to Cloud via MQTT?

Thanks & Regards 

Shital

  • Hi! This should absolutely be possible!

    [1] It is possible to send data from nRF9160sip to ESP32 ?

     Yes. Take a look at this UART-sample for the nRF9160. Use this as the base for the UART-communication from the nRF9160 to the ESP32.

     

    [2] It is possible to send data from ESP32 to Cloud via MQTT?

     The ESP32 is not a Nordic product, so you will have to ask on another forum for any specifics. However, from my understanding, it should be possible to use the ESP32 to post to an MQTT broker. 

    As a general statement, it seems like you are only using the nRF91 DK for its GPS antenna. If this is the case, a simpler solution could be just using a GPS module with the ESP32 itself.

    Best regards,

    Heidi

  • Hi

    Thanks for your replay,

    I use this example of UART for Transmit data but in this example is only about Rx receive data i beat confuse about how transmit my GPS data to other device.

    Can you suggest me for any UART Transmit example code  from nf9160 to other peripheral?

    Thank you

    Shital

  • Hi, I cannot find any examples that explicitly demonstrate this. However, it is quite easy to implement.

    Take a look at the uart.h file in Zephyr, which explains how to transmit things via UART. Additionally, you will need to add an overlay-file defining the rx, tx, rts and cts pins. I recommend reading through the NCS tutorials, both part one and part two.

  • Thank you for your valueble replay 

    I just want to send data from nRF9160 to other module ( a standard USB to serial FTDI converter ) using UART and data show in serial terminal so how can we do it ?

  • shital said:
    so how can we do it

     Exactly how I explained. Use the UART-sample as a base, add the overlay file defining your pins and then look at the uart.h-file to know which function you should use to transmit data.

1 2