Perform NRF52840 OTA over the NRF9160 and UART

Hello, 

I am developing a BLE - LTE sensor gateway using the NRF9160DK.

I have written code for OTA updating the 9160 chip over LTE, but I am not sure how to update the NRF52840 side. Both those chips are connected via UART so I am guessing performing an OTA over UART for BLE would be the best approach but I am not sure how to go about it. 

Are there sw examples for these? I read a few related tickets on DevZone but they weren't super clear, could you provide the right documentation to get me started as well? 

Parents Reply
  • Hei guys, Here we are.

    As  said on the other thread, we can continue here.

    Just to recap, we are here with  

    OUR TASKS are: 

    1. Generating the nrf52840 image with the right OTA header
    2. Uploading the image to our servers 
    3. Downloading the image over ( LTE nrf9160 / ESP32 with AT COMMANDS)
    4. Dividing the image into header + fixed size chunks if needed
    5. Sending the data over UART
    6. Storing the image into FLASH Secondary storage 
    7. Copying the data over to the Primary Storage 
    8. Reboot and take new image 


    So, I'm using an ESP32 with AT commands in order to get data from the cloud,
    but basically the point which will be different from   will be the point 3.

    From my side, I'm using NCS 2.1.0 with nRF52840 / 21540 (that's the same plus FEM for BLE).

Children
  • What SDK are you using on the ESP32? NCS or Zephyr?

    I assume you're not using Zephyr on the ESP32. In that case, the solution in https://github.com/nrfconnect/sdk-nrf/pull/8839 and the solution in Send dfu image between two nrf5340 will not be easy to implement for you. If you're not using NCS or Zephyr on the ESP32, would you be able to create a new separate DevZone ticket apart from this? This is because Hash5422 was the initial thread starter, and I would like to help him in this DevZone cases. If I help both of you simultaneously in the same ticket, where different solutions are required, it will be a little unorganized and messy.

    I know I told you initially to continue in this ticket, but I changed my mind and think it is better to create a brand new ticket for you (if you're not using Zephyr on the ESP32).

    Best regards,

    Simon

Related