Re: How to upgrade to 1.8.0 for both newt and newtmgr?
hi all, I managed to install 1.8.0. On Linux and the BLE OTA seems working fine. Just one thing, the bluetooth can be randomly turned off right after the OTA or the Confirm of the image. Also, be careful, the nrfx saadc drivers has been changed in version 1.8.0. Previously working adc drivers is not working. Needs to be modified. I am working on it now. Thanks, On Sat, May 16, 2020 at 12:03 PM Mo Chen wrote: > Great. > > Two more questions: > > Version 1.8.0 has already been released, why when we try to install the > latest version, it still installs 1.7.0? Can we fix that? > > > On Ubuntu Linux, under version 1.7.0, with Nordic-pca10040, the IRS works > fine. However, with the adafruit feather nrf52, the OTA disconnects at > 99.92% and shows error: disconnected. Any clue? > > I was trying to get rid of it by upgrading to a newer version. But on > Linux, it doesn't seem there is such an instruction on how to install 1.9.0 > dev. Would you please guide me on this? > > > Many thanks! > > > > > Mo Chen > > On Sat, May 16, 2020, 10:43 Christopher Collins > wrote: > >> Thanks Mo. Someone 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, >> > >> > 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 >> > type=ble connstring=peer_name=nimble-bleprph >> > DEBU[2020-05-16 10:03:28.621] CentralManagerDidUpdateState: >> cmgr=0x5804b50 >> > >> > No further responses shown. No signs of connection. Under this status, I >> > checked the BLE advertise using my phone, the device is still >> advertising, >> > meaning the connection is not established. >> > >> > Would you please help interpret what the message code means? >> > >> > other details: >> > >> > newt version: 1.9.0 >> > newtmgr version: 1.9.0 >> > Device: nordic pca10040 >> > >> > The same method works under version 1.7.0 on Ubuntu Linux. So we can >> > confirm the device works. >> > >> > Thanks, >> > >> > >> > On Fri, May 15, 2020 at 9:15 PM Christopher Collins < >> ccollins47...@gmail.com> >> > wrote: >> > >> > > On Fri, May 15, 2020 at 07:47:22PM -0500, Mo Chen wrote: >> > > > Hi Chris, >> > > > >> > > > Thank you for your timely response. >> > > > >> > > > Under v1.7.0, the error message is: >> > > > *Unhandled event: xpc.Dict{"kCBMsgId":4, >> > > > "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}}* >> > > > >> > > > 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. >> > > > >> > > > newtmgr image upload -c mybleprph '--ldebug' >> > > > >> > > >> /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img >> > > > Error: unknown flag: --ldebug >> > > > >> > > > Would you please guide me on how to implement the --ldebug switch? >> > > >> > > Ah, sorry, I meant `-ldebug` (one dash only)! >> > > >> > > Thanks, >> > > Chris >> > > >> > >> > >> > -- >> > Mo Chen >> > -- Mo Chen
Re: How to upgrade to 1.8.0 for both newt and newtmgr?
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 already been released, why when we try to install the > latest version, it still installs 1.7.0? Can we fix that? It looks like we forgot to upload deb packages for 1.8.0. I will try to get to this soon. > On Ubuntu Linux, under version 1.7.0, with Nordic-pca10040, the IRS works > fine. However, with the adafruit feather nrf52, the OTA disconnects at > 99.92% and shows error: disconnected. Any clue? I recall seeing issues like this in the past. The problem occurred when the device performed a slow flash operation (usually an erase). Since the code is executing from flash, flash operations cause the MCU to momentarily stall. If the stall takes too long or occurs at the wrong time, the BLE controller misses too many consecutive transmissions and the connection terminates. I would expect this to happen on the first upload request though, not the last one. The device erases the image slot when it receives the first request and this erase can be quite slow. I don't see anything special in the code that happens while processing the final upload request, so I'm afraid I'm at a loss here. > I was trying to get rid of it by upgrading to a newer version. But on > Linux, it doesn't seem there is such an instruction on how to install 1.9.0 > dev. Would you please guide me on this? I don't think upgrading will solve this problem (of course I could be wrong). Do you want to upgrade the firmware (Mynewt itself) or the tools (newt and newtmgr)? If you want to upgrade Mynewt, running `newt upgrade` from your project directory should do that. > Many thanks!
Re: How to upgrade to 1.8.0 for both newt and newtmgr?
Great. Two more questions: Version 1.8.0 has already been released, why when we try to install the latest version, it still installs 1.7.0? Can we fix that? On Ubuntu Linux, under version 1.7.0, with Nordic-pca10040, the IRS works fine. However, with the adafruit feather nrf52, the OTA disconnects at 99.92% and shows error: disconnected. Any clue? I was trying to get rid of it by upgrading to a newer version. But on Linux, it doesn't seem there is such an instruction on how to install 1.9.0 dev. Would you please guide me on this? Many thanks! Mo Chen On Sat, May 16, 2020, 10:43 Christopher Collins wrote: > Thanks Mo. Someone 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, > > > > 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 > > type=ble connstring=peer_name=nimble-bleprph > > DEBU[2020-05-16 10:03:28.621] CentralManagerDidUpdateState: > cmgr=0x5804b50 > > > > No further responses shown. No signs of connection. Under this status, I > > checked the BLE advertise using my phone, the device is still > advertising, > > meaning the connection is not established. > > > > Would you please help interpret what the message code means? > > > > other details: > > > > newt version: 1.9.0 > > newtmgr version: 1.9.0 > > Device: nordic pca10040 > > > > The same method works under version 1.7.0 on Ubuntu Linux. So we can > > confirm the device works. > > > > Thanks, > > > > > > On Fri, May 15, 2020 at 9:15 PM Christopher Collins < > ccollins47...@gmail.com> > > wrote: > > > > > On Fri, May 15, 2020 at 07:47:22PM -0500, Mo Chen wrote: > > > > Hi Chris, > > > > > > > > Thank you for your timely response. > > > > > > > > Under v1.7.0, the error message is: > > > > *Unhandled event: xpc.Dict{"kCBMsgId":4, > > > > "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}}* > > > > > > > > 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. > > > > > > > > newtmgr image upload -c mybleprph '--ldebug' > > > > > > > > /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img > > > > Error: unknown flag: --ldebug > > > > > > > > Would you please guide me on how to implement the --ldebug switch? > > > > > > Ah, sorry, I meant `-ldebug` (one dash only)! > > > > > > Thanks, > > > Chris > > > > > > > > > -- > > Mo Chen >
Re: How to upgrade to 1.8.0 for both newt and newtmgr?
Thanks Mo. Someone 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, > > 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 > type=ble connstring=peer_name=nimble-bleprph > DEBU[2020-05-16 10:03:28.621] CentralManagerDidUpdateState: cmgr=0x5804b50 > > No further responses shown. No signs of connection. Under this status, I > checked the BLE advertise using my phone, the device is still advertising, > meaning the connection is not established. > > Would you please help interpret what the message code means? > > other details: > > newt version: 1.9.0 > newtmgr version: 1.9.0 > Device: nordic pca10040 > > The same method works under version 1.7.0 on Ubuntu Linux. So we can > confirm the device works. > > Thanks, > > > On Fri, May 15, 2020 at 9:15 PM Christopher Collins > wrote: > > > On Fri, May 15, 2020 at 07:47:22PM -0500, Mo Chen wrote: > > > Hi Chris, > > > > > > Thank you for your timely response. > > > > > > Under v1.7.0, the error message is: > > > *Unhandled event: xpc.Dict{"kCBMsgId":4, > > > "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}}* > > > > > > 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. > > > > > > newtmgr image upload -c mybleprph '--ldebug' > > > > > /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img > > > Error: unknown flag: --ldebug > > > > > > Would you please guide me on how to implement the --ldebug switch? > > > > Ah, sorry, I meant `-ldebug` (one dash only)! > > > > Thanks, > > Chris > > > > > -- > Mo Chen
Re: How to upgrade to 1.8.0 for both newt and newtmgr?
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 type=ble connstring=peer_name=nimble-bleprph DEBU[2020-05-16 10:03:28.621] CentralManagerDidUpdateState: cmgr=0x5804b50 No further responses shown. No signs of connection. Under this status, I checked the BLE advertise using my phone, the device is still advertising, meaning the connection is not established. Would you please help interpret what the message code means? other details: newt version: 1.9.0 newtmgr version: 1.9.0 Device: nordic pca10040 The same method works under version 1.7.0 on Ubuntu Linux. So we can confirm the device works. Thanks, On Fri, May 15, 2020 at 9:15 PM Christopher Collins wrote: > On Fri, May 15, 2020 at 07:47:22PM -0500, Mo Chen wrote: > > Hi Chris, > > > > Thank you for your timely response. > > > > Under v1.7.0, the error message is: > > *Unhandled event: xpc.Dict{"kCBMsgId":4, > > "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}}* > > > > 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. > > > > newtmgr image upload -c mybleprph '--ldebug' > > > /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img > > Error: unknown flag: --ldebug > > > > Would you please guide me on how to implement the --ldebug switch? > > Ah, sorry, I meant `-ldebug` (one dash only)! > > Thanks, > Chris > -- Mo Chen
Re: How to upgrade to 1.8.0 for both newt and newtmgr?
On Fri, May 15, 2020 at 07:47:22PM -0500, Mo Chen wrote: > Hi Chris, > > Thank you for your timely response. > > Under v1.7.0, the error message is: > *Unhandled event: xpc.Dict{"kCBMsgId":4, > "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}}* > > 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. > > newtmgr image upload -c mybleprph '--ldebug' > /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img > Error: unknown flag: --ldebug > > Would you please guide me on how to implement the --ldebug switch? Ah, sorry, I meant `-ldebug` (one dash only)! Thanks, Chris
Re: How to upgrade to 1.8.0 for both newt and newtmgr?
Hi Chris, Thank you for your timely response. Under v1.7.0, the error message is: *Unhandled event: xpc.Dict{"kCBMsgId":4, "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}}* 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. newtmgr image upload -c mybleprph '--ldebug' /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img Error: unknown flag: --ldebug Would you please guide me on how to implement the --ldebug switch? Thanks, On Fri, May 15, 2020 at 5:45 PM Christopher Collins wrote: > Hi Mo, > > On Fri, May 15, 2020 at 05:11:36PM -0500, Mo Chen wrote: > > 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. > > > > 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 > -- Mo Chen
Re: How to upgrade to 1.8.0 for both newt and newtmgr?
Hi Mo, On Fri, May 15, 2020 at 05:11:36PM -0500, Mo Chen wrote: > 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. > > 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?
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. Any clue? many thanks. -- Mo