Re: newtmgr OTA error: slice bounds out of range [:-62]

2022-12-07 Thread Szymon Janc
Hi, We are able to reproduce this on newtmgr master (1.11-dev), will try to fix this before next release On Fri, 16 Sept 2022 at 03:22, Mo Chen wrote: > Hi there, > > I encountered errors when using mynewt to DFU OTA. > > Environment: > Intel Macbook pro > MacOS: Mon

newtmgr OTA error: slice bounds out of range [:-62]

2022-09-15 Thread Mo Chen
Hi there, I encountered errors when using mynewt to DFU OTA. Environment: Intel Macbook pro MacOS: Monterey 12.5.1 newt version: 1.10.0 newtmgr version: tried with v1.10.0 and v1.9.0. Neither works with the same error. Any clues or help are highly appreciated! error message: mndrive@Mos-MBP

Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Łukasz Rymanowski
Hi Ondrej, I think you should look into apache-mynewt-core/mgmt/smp I think it is now smp_transport_init() but I'm not sure. Best Łukasz On Fri, 14 Aug 2020 at 10:48, Ondrej Pilat wrote: > Hi Łukasz, > > Is there a porting manual from newtmgr API to mcumgr? > &g

Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Ondrej Pilat
Hi Łukasz, Is there a porting manual from newtmgr API to mcumgr? We are using nmgr_transport_init and newtmgr_process what are mcumgr equivalents? Regards Ondrej Dne 8/14/2020 v 9:46 AM Łukasz Rymanowski napsal(a): > Hi Ondrej, > > Newtmgr has been removed as we moved to mcumgr

Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Ondrej Pilat
Hi Łukasz, thank you for explanation. Is there a documentation describing  the NMP (plain newtmgr protocol)? I know that CBOR is well defined RFC standard but what about 8B header? I can only find mcumgr source code. Best regards Ondrej Dne 8/14/2020 v 9:46 AM Łukasz Rymanowski napsal

Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Łukasz Rymanowski
Hi Ondrej, Newtmgr has been removed as we moved to mcumgr ( https://github.com/apache/mynewt-mcumgr) , which is basically an extracted version of newtmgr. It is in release notes: https://cwiki.apache.org/confluence/display/MYNEWT/RN-1.8.0 Best Łukasz On Fri, 14 Aug 2020 at 09:32, Ondrej Pilat

missing "newtmgr/newtmgr.h"

2020-08-14 Thread Ondrej Pilat
Hi all, we used newtmgr in application for image update and its management. When we upgrade apache-mynewt-core to the latest version 1.8.0 newtmgr.h and newtmgr.c is missing. What we should use instead or why newtmgr support was removed from the 1.8.0? We need to upgrade apache-mynewt-core

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-17 Thread Mo Chen
ne else reported the same issue with Catalina. Their >> `-ldebug` log looked identical to yours. I'll upgrade to catalina and >> let you know what I find out. >> >> Chris >> >> On Sat, May 16, 2020 at 10:10:34AM -0500, Mo Chen wrote: >> > Hi Chris,

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-16 Thread Christopher Collins
I believe I have fixed the Catalina hang. You can try out the fix at https://github.com/apache/mynewt-newtmgr/pull/164, or you can wait for it to be merged. On Sat, May 16, 2020 at 12:03:41PM -0500, Mo Chen wrote: > Great. > > Two more questions: > > Version 1.8.0 has alread

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-16 Thread Mo Chen
n wrote: > > Hi Chris, > > > > thanks for the clarification. > > > > I tried with the following debug info returned: > > > > newtmgr image upload -c mybleprph -ldebug > > > /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bl

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-16 Thread Christopher Collins
; > I tried with the following debug info returned: > > newtmgr image upload -c mybleprph -ldebug > /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img > > DEBU[2020-05-16 10:03:28.615] Using connection profile: name=mybleprph > typ

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-16 Thread Mo Chen
Hi Chris, thanks for the clarification. I tried with the following debug info returned: newtmgr image upload -c mybleprph -ldebug /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img DEBU[2020-05-16 10:03:28.615] Using connection profile: name=mybleprph

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-15 Thread Christopher Collins
gt; > Under v1.9.0 dev, without '--ldebug': > Nothing happens. No message, no response. > > Under v1.9.0 with '--ldebug': > I guess I did not get what you meant by "with the '--ldebug' switch". I > tried the following but with an error telling me unknown flag. > > n

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-15 Thread Mo Chen
with '--ldebug': I guess I did not get what you meant by "with the '--ldebug' switch". I tried the following but with an error telling me unknown flag. newtmgr image upload -c mybleprph '--ldebug' /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-15 Thread Christopher Collins
to use install mynewt-newtmgr --HEAD. The 1.9.0 dev version did not > solve the BLE connection issue. > > Any clue? The 1.9.0 dev version of newtmgr should work with Catalina. Can you please try the upload again with the `--ldebug` switch? Then please paste the output in a response. Chris

How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-15 Thread Mo Chen
I am currently using 1.7.0 on MacOS Catalina. There is a BLE connection issue. I cannot upload img via OTA. I searched online, it seems in verison 1.8.0, this problem has been solved? I tried to use install mynewt-newtmgr --HEAD. The 1.9.0 dev version did not solve the BLE connection issue

Re: Unifying Newtmgr (NMP) protocol and MCUmgr (SMP) into the MCUmgr repo

2019-10-10 Thread Vipul Rahane
Hi Marko, Not a problem. I re-added smp_uart and fixed the build. Thanks. On Thu, Oct 10, 2019 at 1:30 AM marko kiiskila wrote: > Sorry for being difficult here, but.. > > To be exact nmgr_uart came after newtmgr-over-shell. The reason > it came to be was smaller memory footpri

Re: Unifying Newtmgr (NMP) protocol and MCUmgr (SMP) into the MCUmgr repo

2019-10-10 Thread marko kiiskila
Sorry for being difficult here, but.. To be exact nmgr_uart came after newtmgr-over-shell. The reason it came to be was smaller memory footprint platforms, and assumption was that folks might still want option to newtmgr-over-uart after their dev was done. It got picked up for serial bootloader

Re: Unifying Newtmgr (NMP) protocol and MCUmgr (SMP) into the MCUmgr repo

2019-10-09 Thread Vipul Rahane
> Regards, > > Vipul Rahane > > > > On Fri, Sep 27, 2019 at 11:38 AM Vipul Rahane wrote: > > > >> Hello fellow developers :-) > >> > >> So, Miguel and I have been working on unifying Newtmgr into the MCUmgr > >> repo (https://github.com/apache/m

Re: Unifying Newtmgr (NMP) protocol and MCUmgr (SMP) into the MCUmgr repo

2019-10-09 Thread will sanfilippo
ul Rahane > > On Fri, Sep 27, 2019 at 11:38 AM Vipul Rahane wrote: > >> Hello fellow developers :-) >> >> So, Miguel and I have been working on unifying Newtmgr into the MCUmgr >> repo (https://github.com/apache/mynewt-mcumgr). There are no protocol >> le

Re: Unifying Newtmgr (NMP) protocol and MCUmgr (SMP) into the MCUmgr repo

2019-10-09 Thread Christopher Collins
think the old serial boot loader used to use this package. Now that we have switched to mcuboot, there is nothing that depends on it. It looks like mcuboot's serial boot loader just implements its own minimal newtmgr server and UART transport. So I say go ahead and remove it :). Chris

Re: Unifying Newtmgr (NMP) protocol and MCUmgr (SMP) into the MCUmgr repo

2019-10-09 Thread Vipul Rahane
for .a quick turn around on this question, so, any input would be fine. Thanks. Regards, Vipul Rahane On Fri, Sep 27, 2019 at 11:38 AM Vipul Rahane wrote: > Hello fellow developers :-) > > So, Miguel and I have been working on unifying Newtmgr into the MCUmgr > repo (https://github.com/a

Unifying Newtmgr (NMP) protocol and MCUmgr (SMP) into the MCUmgr repo

2019-09-27 Thread Vipul Rahane
Hello fellow developers :-) So, Miguel and I have been working on unifying Newtmgr into the MCUmgr repo (https://github.com/apache/mynewt-mcumgr). There are no protocol level changes, since MCUmgr(SMP) and Newtmgr(NMP) were the same and so, everything should work off the bat for everybody

newtmgr connect to BLE device using static random address

2018-08-28 Thread Daniele Biagetti
Hello everyone, I'm trying to connect to a Bluetooth mesh node running the Zephyr OS using the newtmgr. I'm able to correctly connect to the device while it is advertising with a given name, for example BLEDimmer01, with the command: sudo newtmgr --conntype ble --connstring 'peer_name

Re: newtmgr

2018-08-08 Thread Timo Kolthoff
Thx, Do you have any input on my next question in the previous mail? /BR Den 8 aug. 2018 19:37 skrev aditi hilbert : Hi Timo, That is correct - currently, newtmgr is only point to point capable. It is possible to extend it to work over mesh and that would be useful ... but such functionality

Re: newtmgr

2018-08-08 Thread aditi hilbert
Hi Timo, That is correct - currently, newtmgr is only point to point capable. It is possible to extend it to work over mesh and that would be useful ... but such functionality is not planned for a release yet. thanks, aditi > On Aug 7, 2018, at 4:55 AM, Timo Kolthoff wrote: >

newtmgr

2018-08-07 Thread Timo Kolthoff
Hi, Is it correct that newtmgr is only ble point to point capable, so no ble mesh support? Is it something that has been concidered or possible to be implemented? This implies that there will not be support for log fetching, statistics or software upgrading in a ble mesh network

Re: newtmgr fs command fails in sim

2018-07-10 Thread Kevin Townsend
Hi Jacob, But Kevins code snippet brings up something im thinking about. In his comments he has CONFIG_NFFS: 1# Initialize and configure NFFS into the system I dont agree with that comment, whats thats actually doing is turning on the config subsystem and telling it to create its

Re: newtmgr fs command fails in sim

2018-07-07 Thread Kevin Townsend
Hi Jacob, Excellent point about the flash usage, and figuring out how to perhaps make it easier for packages to play well together in a single filesystem without hijacking the config system out of necessity. I dont agree with that comment, whats thats actually doing is turning on the config

Re: newtmgr fs command fails in sim

2018-07-06 Thread Jacob Rosenthal
rote: > Hi, > > On Fri, Jul 6, 2018 at 6:24 PM marko kiiskila wrote: > > > > > > > > > On Jul 6, 2018, at 5:49 PM, Kevin Townsend > wrote: > > > > > > Hi Chris, > > >> The error codes that come back in newtmgr responses are alw

Re: newtmgr fs command fails in sim

2018-07-06 Thread Andrzej Kaczmarek
Hi, On Fri, Jul 6, 2018 at 6:24 PM marko kiiskila wrote: > > > > > On Jul 6, 2018, at 5:49 PM, Kevin Townsend > > wrote: > > > > Hi Chris, > >> The error codes that come back in newtmgr responses are always (or at > >> least should be) MGMT_ER

Re: newtmgr fs command fails in sim

2018-07-06 Thread marko kiiskila
> On Jul 6, 2018, at 5:49 PM, Kevin Townsend wrote: > > Hi Chris, >> The error codes that come back in newtmgr responses are always (or at >> least should be) MGMT_ERR codes: >> https://github.com/apache/mynewt-core/blob/42bb5acc2f049d346c81f25e8c354bc3c6afefd4/mg

Re: newtmgr fs command fails in sim

2018-07-06 Thread Kevin Townsend
Hi Chris, The error codes that come back in newtmgr responses are always (or at least should be) MGMT_ERR codes: https://github.com/apache/mynewt-core/blob/42bb5acc2f049d346c81f25e8c354bc3c6afefd4/mgmt/mgmt/include/mgmt/mgmt.h#L65 `MGMT_ERR_ENOENT` is indicated when the newtmgr command isn't

Re: newtmgr fs command fails in sim

2018-07-06 Thread Christopher Collins
Hi Kevin, On Fri, Jul 06, 2018 at 02:41:17PM +0200, Kevin Townsend wrote: > I'm doing some initial development using only the simulator (for > convenience sake), and was testing out 'newtmgr fs' support to quickly > get data to and from the simulator. > > My sim target is se

newtmgr fs command fails in sim

2018-07-06 Thread Kevin Townsend
I'm doing some initial development using only the simulator (for convenience sake), and was testing out 'newtmgr fs' support to quickly get data to and from the simulator. My sim target is setup to use NFFS using mostly default values:     # NFFS filesystem     FS_CLI: 1

Re: newtmgr on Android

2018-06-27 Thread Brian Giori
Hi Andrey, I have built Android and iOS NewtMgr implementations which are currently in a "private beta" (if you will) and are still under active development. The plan is to release these libraries (Apache 2.0) when they have stabilized, which for Android should be soon. If you'd l

Re: newtmgr on Android

2018-06-27 Thread Jacob Rosenthal
I dont know if that runtime sensors app has firmware update, but it has oic which would get you close https://github.com/runtimeco/android_sensor Also I have a web bluetooth solution that would work on a lot of android phones https://github.com/jacobrosenthal/web-newtmgr On Wed, Jun 27, 2018

Re: [mynewt-newtmgr] 01/01: Merge pull request #46 from mkiiskila/lora

2017-10-27 Thread marko kiiskila
eway. > > root@mtcdt:~# ./newtmgr conn show mt > Connection profiles: > mt: type=oic_mtech, connstring='' > root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 taskstat > > task pri tid runtime cswstksz stkuse last_checkin > next_c

Fwd: [mynewt-newtmgr] 01/01: Merge pull request #46 from mkiiskila/lora

2017-10-27 Thread marko kiiskila
Hi, added CoAP over LoRa option when running on Multitech gateway. root@mtcdt:~# ./newtmgr conn show mt Connection profiles: mt: type=oic_mtech, connstring='' root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 taskstat task pri tid runtime cswstksz stkuse

Re: newtmgr 'image confirm' returns 'Error: 1'

2017-08-22 Thread Kevin Townsend
?mt=8) I'll try with the newtmgr commands again on a clean machine. It may well be that the error message is an artifact of some previous system or tool configuration. Kevin On 22/08/17 20:00, Christopher Collins wrote: Hi Kevin, On Wed, Aug 16, 2017 at 11:45:52PM +0200, Kevin Townsend

Re: Newtmgr moved to new repo

2017-07-10 Thread Paul LaCrosse
Tried option #2, which worked. Thanks Chris! On Mon, Jul 10, 2017 at 4:23 PM, Christopher Collins <ch...@runtime.io> wrote: > Hi Paul, > > On Mon, Jul 10, 2017 at 04:13:30PM -0400, Paul LaCrosse wrote: > > Pauls-MacBook-Pro-2:testgoget paul$ go get mynewt.apache.org/newtmg

Re: Newtmgr moved to new repo

2017-07-10 Thread Christopher Collins
Hi Paul, On Mon, Jul 10, 2017 at 04:13:30PM -0400, Paul LaCrosse wrote: > Pauls-MacBook-Pro-2:testgoget paul$ go get mynewt.apache.org/newtmgr/... > > # cd /Users/paul/dev/go/src/mynewt.apache.org/newt; git pull --ff-only > > fatal: repository ' > https://git-wip-us.ap

Re: Newtmgr moved to new repo

2017-07-10 Thread Paul LaCrosse
Pauls-MacBook-Pro-2:testgoget paul$ go get mynewt.apache.org/newtmgr/... # cd /Users/paul/dev/go/src/mynewt.apache.org/newt; git pull --ff-only fatal: repository ' https://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/' not found package mynewt.apache.org/newtmgr/nmxact/example

Newtmgr moved to new repo

2017-07-10 Thread Christopher Collins
Hello all, The newtmgr tool location has changed: From: https://github.com/apache/mynewt-newt/tree/master/newtmgr To: https://github.com/apache/mynewt-newtmgr/tree/master/newtmgr To download the latest newtmgr, use the following command: go get mynewt.apache.org/newtmgr

newtmgr with onboard bluetooth chip of raspberry zero W

2017-06-28 Thread Alfred Schilken
Has anybody the newtmgr working with the onboard bluetooth chip of the raspberry pi zero W? If yes: what are the settings for the blehostd and what is to configure with the hci on the linux side? I think this tiny zero-W-board could be a good gateway for IP to BLE. Regards Alf