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

AWS FOTA

Hello, 

through figuring out how AWS FOTA works and following the instructions of this page

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_fota/README.html#testing

I got problem at step 11 ( create job document ). here if I use the same template of the example then I got a JSON error at step 15 ( create job ). 

my document job JSON is 

{
  "operation""app_fw_update",
  "fwversion""v2.0.0",
  "size"184800,
  "location"
  {
    "protocol""http:",
    "host""myfota.s3.eu-central-1.amazonaws.com",
    "path""app_update.bin"
   }
}
 
the error message is 
  • Hi,

    Due to the fast approaching Christmas, we are a bit short on staff in the coming weeks, which unfortunately meant that I did not have time to look at your case today.

    The JSON you posted looks valid, but if you copied it directly from a website (or similar), it might not be ASCII formatted. Do you get the same error if you type it all manually, making sure that the document is saved in ASCII format?

    For reference, here is a job-file I have used successfully myself:

    {
      "operation": "app_fw_update",
      "fwversion": "v1.0.2",
      "size": 181124,
      "location": {
        "protocol": "http:",
        "host": "aws-fota-sample-bucket.s3-us-west-2.amazonaws.com",
        "path": "app_update.bin"
      }
    }

    One difference I noticed is that you have <bucketname>.s3.<region>.amazonaws.com, while I have <bucketname>.s3-<region>.amazonaws.com.

    The difference might be hard to spot, but you used a '.' between 's3' and '<region>', while I have '-'. It might be that is correct, but it is a difference.

    I will try to take a closer look at your issue tomorrow.

    Best regards,

    Didrik

  • I copied your JSON into notepad, and saved it as a .json file.

    I then uploaded the file to my S3 bucket, and successfully used it to create a new job.

    Here is the file I uploaded:

    {
      "operation": "app_fw_update",
      "fwversion": "v2.0.0",
      "size": 184800,
      "location": 
      {
        "protocol": "http:",
        "host": "myfota.s3.eu-central-1.amazonaws.com",
        "path": "app_update.bin"
       }
    }
    

  • Thank u for ur time, it was a problem with the copying from the browser. 

Related