Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 27 12:03

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 27 12:03
    dependabot[bot] closed #218
  • Oct 27 12:03
    dependabot[bot] commented #218
  • Oct 27 12:03
    dependabot[bot] labeled #251
  • Oct 27 12:03
    dependabot[bot] labeled #251
  • Oct 27 12:03
    dependabot[bot] opened #251
  • Oct 27 12:03

    dependabot[bot] on npm_and_yarn

    build(deps): bump vue-router fr… (compare)

  • Oct 26 12:03

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 26 12:03
    dependabot[bot] closed #245
  • Oct 26 12:02
    dependabot[bot] commented #245
  • Oct 26 12:02
    dependabot[bot] labeled #250
  • Oct 26 12:02
    dependabot[bot] labeled #250
  • Oct 26 12:02
    dependabot[bot] opened #250
  • Oct 26 12:02

    dependabot[bot] on npm_and_yarn

    build(deps): bump axios from 0.… (compare)

  • Oct 25 12:02

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 25 12:02
    dependabot[bot] closed #244
  • Oct 25 12:02
    dependabot[bot] commented #244
  • Oct 25 12:02
    dependabot[bot] labeled #249
  • Oct 25 12:02
    dependabot[bot] labeled #249
  • Oct 25 12:02
    dependabot[bot] opened #249
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
bryan costanich
@bryancostanich
Anyone here working on a NuttX port of MCUBoot? Our interests align, maybe we can help. Ping me at bryan@wildernesslabs.co.
Otavio Salvador
@otavio
We are not but it'd be a very nice addition as it'd unlock the updatehub port for it.
@bryancostanich
Jussi Heiskanen
@wizense_gitlab
@otavio Hi, we are also interested in starting to use the system in EU region. Do you now have instance running in EU and like discussed earlier it's due EU GDPR regulation for data to not leave EU region. For the standalone instance we have noticed that instance crashes (for some reason) after getting batch of 1kb packages. Anyway cloud would be way to go for us.
@otavio also to start testing with the cloud what is the way to upload packages to the UpdateHub cloud? Uhu python script does not have an address to push into the cloud service.
Otavio Salvador
@otavio
@wizense_gitlab Hello; currently, we don't. However, if need we can handle it.
Yes, you can push with uhu
is it Zephyr or Yocto?
Jussi Heiskanen
@wizense_gitlab
@otavio we are using Zephyr and latest 2.5.0 version. Previously our engineer was not able to push to cloud with uhu due missing cloud url in examples and documentation. Is cloud url for uhu documented? We could start testing cloud with existing location asap. What is your email for direct contact?
3 replies
Gerson Fernando Budke
@nandojve

Anyone here working on a NuttX port of MCUBoot? Our interests align, maybe we can help. Ping me at bryan@wildernesslabs.co.

Hi @bryancostanich , we are considering port UpdateHub to NuttX.
Are you still interested?

1 reply