dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
build(deps): bump core-js from … (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
build(deps): bump core-js from … (compare)
dependabot[bot] on npm_and_yarn
@tagboxvipul you can runuhu package metadata
to check if it is consistent.
My package metadata looks like this
{
"objects": [
[
{
"filename": "app_update.bin",
"mode": "zephyr",
"sha256sum": "2a6c8d6ed71c2ab293dce3e2ef5dd03d116df387cd43fa161478cf25ffe43ddd",
"size": 328262
}
],
[
{
"filename": "app_update.bin",
"mode": "zephyr",
"sha256sum": "2a6c8d6ed71c2ab293dce3e2ef5dd03d116df387cd43fa161478cf25ffe43ddd",
"size": 328262
}
]
],
"product": "e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f",
"supported-hardware": "any",
"version": "3.0.0"
}
Valid metadata.
Hi @nandojve It was working earlier for POC we have not tried in production .
1 ) I am working on ncs v2.6.99-ncs1 tag. and harwdare is nrf52840 and quectels EC20 module over PPP
2 )
Currently Zephyr (at mainline) is changing a lot of things in JSON parser.
I dont think there is json parsing issue coap_packet reply data looks like .+.............hE...#.c.d.......{"objects":[[{"filename":"app_update.bin","mode":"zephyr","sha256sum":"443e3503fbf927fd6b89e8df18a434085f1d3e96a99b9d69226ca80cac0dae3a","size":328232}],[{"filename":"app_update.bin","mode":"zephyr","sha256sum":"443e3503fbf927fd6b89e8df18a434085f1d3e96a99b9d69226ca80cac0dae3a","size":328232}]],"product":"e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f","supported-hardware":"any","version":"3.0.0"}
Is this data looks like correct but first 32 byte looks weird does is coming from any padding header and due to this i think its failing to memcpy at line memcpy(metadata, reply.data ,reply.max_len - reply.offset);
The easy way to test UpdateHub is using local network with UpdateHub-CE and Ethernet.
right now i dont have hardware setup for this
can you help me to point stable version on this repo which is tested
You can find this answer at Zephyr discord channel at Vendors/Nordic
Hello
I'm testing the updatehub using nrf5340dk and quectel BG96 as modem.
I used the zephyr/samples/subsys/mgmt/updatehub sample and I used the updatehub cloud for update (free version for now)
1- I build and flash the version 1.0.0
2-Create and push the update package 2.0.0 to updatehub cloud using https://docs.updatehub.io/zephyr-project/zephyr-project-guide/ , steps: 8-9 then create rollout using step 11
3- start the FOTA using updatehub run command
4- the nrf5340dk connect to updatehub cloud, download the binary and update it after reboot and the firmware 2.0.0 is running.
Then I tested the updatehub with DTLS by including overlay-dtls.conf using the default certificates.
But I always got
[00:02:15.450,164] <err> net_sock_tls: TLS handshake error: -6800
[00:02:15.459,075] <err> updatehub: Could not send request
[00:02:15.473,327] <err> main: Invalid response
Is there a certificate that must upload to updatehub cloud?
Is there any config missing to make the updatehub example connect to updatehub cloud using DTLS ?