Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 23 21:10
    Asakiz synchronize #11
  • Nov 23 21:10

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 21:00
    Asakiz synchronize #11
  • Nov 23 21:00

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 20:57
    Asakiz synchronize #11
  • Nov 23 20:57

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 20:46
    Asakiz synchronize #11
  • Nov 23 20:46

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 20:44
    Asakiz synchronize #11
  • Nov 23 20:44

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 20:31
    Asakiz synchronize #11
  • Nov 23 20:31

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 20:06
    Asakiz synchronize #11
  • Nov 23 20:06

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 20:02
    Asakiz synchronize #11
  • Nov 23 20:02

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 19:48
    Asakiz synchronize #11
  • Nov 23 19:48

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

  • Nov 23 19:45
    Asakiz synchronize #11
  • Nov 23 19:45

    Asakiz on migration

    Add CI tests Signed-off-by: as… (compare)

Otavio Salvador
@otavio
Yes; the CE is nice for testing
and the cloud nice for production
Hardik
@rhardik
Ok..
Cloud available for testing?
Otavio Salvador
@otavio
Yes, it is
However, the tar file need to be included in an update package
Hardik
@rhardik
Okay thanks for your kind support
I'll try once again....
Otavio Salvador
@otavio
I suggest you first check the CE as it allow you to try it and upload the uhupkg by hand and see it working at first
Hardik
@rhardik
Yes CE must be better option right now
Hardik
@rhardik

gettng permission denied error while compiling updatehub zephyr app.

command : west build -b nrf52833_pca10100 -- -DCONF_FILE="prj.conf overlay-dtls.conf"
.................................................
Error as below

Otavio Salvador
@otavio
@nandojve
Gerson Fernando Budke
@nandojve
Hi @rhardik it seems to be an issue with west tool and not UpdateHub.
I know that there are some changes with the tool zephyrproject-rtos/zephyr#27688
I don't understand why west is trying to create the privkey.der.inc at "/"
I'll try reproduce here.
Gerson Fernando Budke
@nandojve
Hi @rhardik I was wrong about west tool. I found a missing update for dtls and send a patch and new test config at zephyrproject-rtos/zephyr#27703
Please, could you give another try with above patch and tell us what happens, please?
west build -b nrf52833_pca10100 samples/subsys/mgmt/updatehub -- -DCONF_FILE="prj.conf overlay-dtls.conf"
Hardik
@rhardik
Hi @nandojve
Your solution works...Thanks a lot !
set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
I'm using v2.2.99 zephyr version so path is samples/net/updatehub
Hardik
@rhardik
I can upload package to UpdateHub CE local server using UPLOAD_PACKAGE option but I do not see any UPLOAD_PACKAGE option in UpdateHub Cloud UI
Is there any step by step guide to upload package to Cloud UI?
Otavio Salvador
@otavio
To the cloud you must use the uhu
Hardik
@rhardik

right now i do not have any target device but just wanted to see how to upload package to UpdateHub Cloud
Logs
```hardik@ub:~$ uhu

UpdateHub Utils 1.0.7

[d43089] uhu> product use
d4308954f6a30c4f114xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[d43089] uhu> package version 1.0.0

[d43089] uhu> hardware add xyz

Hardware identifier: w

[d43089] uhu> package add

Choose a mode: tarball

Filename: hcf.tar.xz

Target Type: mtdname

Target (installation set 0): 0

Target (installation set 1): 0

Target Path (installation set 0): /home/

Target Path (installation set 1): /home/

Filesystem: ext2

Mount Options:

Format Device [y/N]: N

[d43089] uhu> package push

Loading objects: -

Loading objects: ok

Starting uploading objects...Error: Could not upload metadata: Server is not available. Try again later.

[d43089] uhu>
```

Gerson Fernando Budke
@nandojve

Hi @rhardik I was wrong about west tool. I found a missing update for dtls and send a patch and new test config at zephyrproject-rtos/zephyr#27703

Got merged on master.

Hardik
@rhardik
which npm version you use with docker?
Otavio Salvador
@otavio
@rhardik where?
Hardik
@rhardik

@otavio I meant npm version for docker used for updatehub..but npm issue is resolved now. upgraded npm from 3.5.2 to 6.x.x
now I 'm running update-ce using below command line
$ updatehub-ce --http 8081

and logs I see is
http server started on [::]:8081
so need to know how to bind it with any specific IP address

Otavio Salvador
@otavio
Oh ... it'll be binding to all IP. Use --http <ip>:port
Hardik
@rhardik
@otavio binding to all ip means I just need to forward this port 8081 and access using public ip ?
Otavio Salvador
@otavio
yes
Hardik
@rhardik

Adding IP i get
updatehub-ce --http 0.0.0.0:8081
Error: invalid argument "0.0.0.0:8081" for "--http" flag: strconv.ParseInt: parsing "0.0.0.0:8081": invalid syntax
Usage:
updatehub-ce [flags]

Flags:
--coap int Coap server listen port (default 5683)
--db string Database file (default "updatehub.db")
--dir string Packages storage dir (default "./")
-h, --help help for updatehub-ce
--http int HTTP listen address (default 8080)
--password string Admin password (default "admin")
--secret string JWT secret key (default "secret")
--username string Admin username (default "admin")

2020/09/03 12:37:20 invalid argument "0.0.0.0:8081" for "--http" flag: strconv.ParseInt: parsing "0.0.0.0:8081": invalid syntax

so --http accepts only an int (port)
Alan Millen
@amillen_gitlab
Hi. What strategy does UpdateHub use for the OTA updates? Is it a full file system A/B swap symmetric / Asymmetric / single filesystem (OsTree) ?
Also, does the product do differential updates? I can't seem to find answers to either question in the docs.
Many thanks!
Otavio Salvador
@otavio
@rhardik yes, it listen to 0.0.0.0 so you need to forward it
@amillen_gitlab it uses A/B symmetric
Hardik
@rhardik
@otavio Yes Working .. Thanks !
Nehal_Rohit
@nehalrohit
HI, I want to implement OTA using thread on NRF52840dk (PCA10056) and nrf52840 dongle (PCA10059) on Zephyr. So I merge updatehub demo and openthread cli code . demo build using west build -b nrf52840dk_nrf52840 -- -DOVERLAY_CONFIG="prj.conf overlay-prj.conf " and flash using west flash --hex build/zephyr/app_signed.hex .but I have facing problem I got an error uart:~$ updatehub run
Starting UpdateHub run...
E: Could not resolve dns
Gerson Fernando Budke
@nandojve
Hi @nehalrohit , can you share the project?
There are somethings that I need look at your config to make sure everything is ok.
Gerson Fernando Budke
@nandojve
Hi @nehalrohit , I saw you project.
I would say to you try updatehub without the other COAP things. This way, you can understand how it works and what you need.
It will be easy to us help you.
Gerson Fernando Budke
@nandojve
You must have Thread Network accessing internet. UpdateHub uses sockets so, it will try resolv using Zephyr IP stack.
You need give memory to malloc to enable it.

Minimal Heap mem pool size for the updatehub working

CONFIG_HEAP_MEM_POOL_SIZE=8192
8k is uge, probably will work with 256 or even less bytes.
There is a tune that you may need check
UPDATEHUB_COAP_BLOCK_SIZE_EXP
this instructs COAP block size. Currently, the default is 1024
Gerson Fernando Budke
@nandojve
You may need adjust to < 128
this can help to avoid fragmentation
Last tip
ALWAYS use the bin file when you sign the image for UpdateHub
DON'T use --PAD when you sign the image for UpdateHub