<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MCUMgr failed to connect to peer after 10 sec</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87479/mcumgr-failed-to-connect-to-peer-after-10-sec</link><description>Hello! 
 I am trying out the SMP Server sample. I have it all built and flashed on my nRF52DK and have tried the echo command using the nRF Device Manager on iOS which worked. 
 
 I now want to try it on MACos running the following command: 
 
 Upon running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 May 2022 20:07:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87479/mcumgr-failed-to-connect-to-peer-after-10-sec" /><item><title>RE: MCUMgr failed to connect to peer after 10 sec</title><link>https://devzone.nordicsemi.com/thread/365850?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 20:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c68b5908-b8ba-4bc9-8c66-fd948e3eeacf</guid><dc:creator>Markus Arnoldsson</dc:creator><description>&lt;p&gt;I decided to try Linux ubuntu instead. This worked, so something wrong on the Mac, will not delve further into it tho.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMgr failed to connect to peer after 10 sec</title><link>https://devzone.nordicsemi.com/thread/365830?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 15:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:061e7bb3-b808-47a9-b966-1998a2360396</guid><dc:creator>Markus Arnoldsson</dc:creator><description>&lt;p&gt;&lt;span&gt;Hey! I tried using --loglevel debug quickly. Maybe you can find something useful here?&lt;br /&gt;&lt;br /&gt;I am going to try reinstalling the SMP server and doing exactly as you did&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;markusarnoldsson@Markuss-MacBook-Air ~ % sudo go/bin/mcumgr --loglevel debug --conntype ble --connstring ctlr_name=hci0,peer_name=&amp;#39;Zephyr&amp;#39; echo hello&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DEBU&lt;/span&gt;&lt;span&gt;[2022-05-02 17:19:41.851] Using connection profile: name=unnamed type=ble connstring=ctlr_name=hci0,peer_name=Zephyr&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DEBU&lt;/span&gt;&lt;span&gt;[2022-05-02 17:19:41.898] CentralManagerDidUpdateState: cmgr=0x6000030003f0&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DEBU&lt;/span&gt;&lt;span&gt;[2022-05-02 17:19:41.912] PeripheralManagerDidUpdateState: pmgr=0x600003504000&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DEBU&lt;/span&gt;&lt;span&gt;[2022-05-02 17:19:41.912] Connecting to peer&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DEBU&lt;/span&gt;&lt;span&gt;[2022-05-02 17:19:51.914] goroutine 1 [running]:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mynewt.apache.org/newt/util.NewNewtError({0xc0002261e0, 0x23})&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/mynewt.apache.org/newt@v0.0.0-20201028015609-b57111dbd19f/util/util.go:77 +0xc5&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mynewt.apache.org/newt/util.ChildNewtError({0x44e4080, 0xc00020c2e0})&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/mynewt.apache.org/newt@v0.0.0-20201028015609-b57111dbd19f/util/util.go:103 +0x6b&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mynewt.apache.org/newtmgr/newtmgr/cli.GetSesn()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/newtmgr/cli/common.go:339 +0x1f8&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mynewt.apache.org/newtmgr/newtmgr/cli.echoRunCmd(0xc00025a000, {0xc000260000, 0x1, 0xc})&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/newtmgr/cli/echo.go:37 +0x4a&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;github.com/spf13/cobra.(*Command).execute(0xc00025a000, {0xc00025e000, 0x7, 0xc})&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x5f8&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;github.com/spf13/cobra.(*Command).ExecuteC(0xc000224000)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fc&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;github.com/spf13/cobra.(*Command).Execute(...)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;main.main()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/github.com/apache/mynewt-mcumgr-cli@v0.0.0-20220314100811-4ca672d31f82/mcumgr/mcumgr.go:94 +0x173&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;goroutine 20 [syscall]:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;os/signal.signal_recv()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/usr/local/go/src/runtime/sigqueue.go:166 +0x28&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;os/signal.loop()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/usr/local/go/src/os/signal/signal_unix.go:24 +0x19&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;created by os/signal.Notify.func1.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/usr/local/go/src/os/signal/signal.go:151 +0x2c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;goroutine 34 [chan receive]:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;main.main.func1()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/github.com/apache/mynewt-mcumgr-cli@v0.0.0-20220314100811-4ca672d31f82/mcumgr/mcumgr.go:82 +0x38&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;created by main.main&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;/Users/markusarnoldsson/go/pkg/mod/github.com/apache/mynewt-mcumgr-cli@v0.0.0-20220314100811-4ca672d31f82/mcumgr/mcumgr.go:80 +0x169&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error: Failed to connect to peer after 10s&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMgr failed to connect to peer after 10 sec</title><link>https://devzone.nordicsemi.com/thread/365812?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 14:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfbec1e2-5968-46f8-b342-6b1e4be88a11</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a Mac to test on, but I just tested this on Linux Ubuntu an was able to get it to work, I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Built and programmed the smp_svr (NCS v1.9.0) onto the nRF52840 DK using the command under &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#building-the-sample-application"&gt;SMP SVR --&amp;gt; Building the sample&lt;/a&gt;:
&lt;ul&gt;
&lt;li&gt;west build -b nrf52840dk_nrf52840 -d build_ble_52840 -- -DOVERLAY_CONFIG=overlay-bt.conf&lt;/li&gt;
&lt;li&gt;cd build_ble_52840 &amp;amp;&amp;amp; west flash&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tested the echo command using the command under &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#sample-image-hello-world"&gt;SMP SVR --&amp;gt; Sample image: hello world!&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;sudo /home/simon/go/bin/mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name=&amp;#39;Zephyr&amp;#39; echo hello
&lt;ul&gt;
&lt;li&gt;Got the response &amp;quot;hello&amp;quot; back&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Not sure why it doesn&amp;#39;t work for you. Could try to add &lt;code&gt;--loglevel debug&lt;/code&gt;&amp;nbsp;to the mcumgr command? Could you also try to debug the nRF52 DK and enable logs, to see what&amp;#39;s happening on that side.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>