<?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>how to integrate Modem Shell functionality with a custom application without conflicts.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119357/how-to-integrate-modem-shell-functionality-with-a-custom-application-without-conflicts</link><description>Dear Nordic Team, I would like to consult you about that, is there any way to flash modem shell to the custom PCB which already has nRF Cloud connection for location application without breaking its device credentials between nRF Cloud? We are using nRF9160</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Mar 2025 10:30:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119357/how-to-integrate-modem-shell-functionality-with-a-custom-application-without-conflicts" /><item><title>RE: how to integrate Modem Shell functionality with a custom application without conflicts.</title><link>https://devzone.nordicsemi.com/thread/525467?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 10:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57f6ede-14af-4e46-b906-8af5f464d3bf</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Semih,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Error 40100 means access denied. You need to verify that your authorization is correct. You can read more about this error in the&amp;nbsp;&lt;a href="https://api.nrfcloud.com/#section/Error-Codes"&gt;Error Codes&lt;/a&gt;&amp;nbsp;documentation. With regard to authentication, you can refer to these pages -&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/RESTOverview.html#authentication"&gt;REST API authentication&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/AccountAndTeamManagement/AuthenticationAndAuthorization/TokensAndKeys.html"&gt;managing tokens and keys&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to integrate Modem Shell functionality with a custom application without conflicts.</title><link>https://devzone.nordicsemi.com/thread/525253?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 11:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ec388b-e3a7-4fe3-bc59-4b6f2cd3acef</guid><dc:creator>SemihAydin</dc:creator><description>&lt;p data-start="230" data-end="242"&gt;Hi Dejans,&lt;/p&gt;
&lt;p data-start="244" data-end="461"&gt;In our main firmware, we are using Nordic&amp;#39;s location services for WiFi, GNSS, and Cellular location. All these features are working without any issues, and we are successfully receiving all types of location data from nRF Cloud.&lt;/p&gt;
&lt;p data-start="463" data-end="737"&gt;To test the device&amp;rsquo;s features, I wrote a Python script that sends commands to it. For this, I realized that I needed to flash Modem Shell (Mosh) onto our custom PCB to send Mosh commands. I built and flashed the firmware using nRF Connect for Desktop&amp;rsquo;s Programmer feature.&lt;/p&gt;
&lt;p data-start="739" data-end="991"&gt;After flashing, I was able to send commands to the custom PCB, such as &lt;code data-start="810" data-end="826"&gt;&amp;quot;at at+cereg?&amp;quot;&lt;/code&gt; and &lt;code data-start="831" data-end="844"&gt;&amp;quot;wifi scan&amp;quot;&lt;/code&gt;, and received clear responses. However, when I tried running location-related commands like &lt;code data-start="937" data-end="953"&gt;&amp;quot;location get&amp;quot;&lt;/code&gt;, I encountered the following error:&lt;br /&gt;&lt;br /&gt;00&amp;gt; Started to get current location...&lt;br /&gt;00&amp;gt; mosh:~$ Neighbor cell measurement results:&lt;br /&gt;00&amp;gt; Current cell:&lt;br /&gt;00&amp;gt; ID 6973709, phy ID 361, MCC 204 MNC 8, RSRP 65 : -76dBm, RSRQ 29, TAC 31502, earfcn 6400, meas time 181665&lt;br /&gt;00&amp;gt; TA 0, TA meas time 12802&lt;br /&gt;00&amp;gt; Neighbor cell 1&lt;br /&gt;00&amp;gt; phy ID 353, RSRP 54 : -87dBm, RSRQ 8, earfcn 6400, timediff 0&lt;br /&gt;00&amp;gt; RRC mode: Connected&lt;br /&gt;00&amp;gt; [00:03:02.784,362] &amp;lt;inf&amp;gt; location: Wi-Fi and cellular methods combined&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.871,063] &amp;lt;inf&amp;gt; nrf_cloud_info: Device ID: nrf-359746162076546&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.875,030] &amp;lt;inf&amp;gt; nrf_cloud_info: IMEI: 359746162076546&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.961,181] &amp;lt;inf&amp;gt; nrf_cloud_info: UUID: 50565932-3033-4b88-8014-1a284ee05fcb&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.966,766] &amp;lt;inf&amp;gt; nrf_cloud_info: Modem FW: mfw_nrf9160_1.3.7&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.966,796] &amp;lt;inf&amp;gt; nrf_cloud_info: Protocol: REST&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.966,827] &amp;lt;inf&amp;gt; nrf_cloud_info: Download protocol: HTTPS&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.966,857] &amp;lt;inf&amp;gt; nrf_cloud_info: Sec tag: 16842753&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:02.966,888] &amp;lt;inf&amp;gt; nrf_cloud_info: Host name: api.nrfcloud.com&lt;br /&gt;00&amp;gt; mosh:~$ mosh:~$ [00:03:05.969,207] &amp;lt;err&amp;gt; nrf_cloud_codec_internal: REST error msg: Auth token is malformed.&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:05.969,329] &amp;lt;err&amp;gt; nrf_cloud_rest: nRF Cloud REST error code: 40100&lt;br /&gt;00&amp;gt; mosh:~$ [00:03:05.970,428] &amp;lt;err&amp;gt; location: nRF Cloud A-GNSS request failed, error: -77&lt;br /&gt;00&amp;gt; mosh:~$ mosh:~$ RRC mode: Idle&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p data-start="1302" data-end="1445"&gt;Do you have any insights into why we are loosing nRF Cloud connection on the custom PCB, even though other commands function correctly?&lt;/p&gt;
&lt;p data-start="1447" data-end="1481"&gt;Thanks in advance for your help!&lt;/p&gt;
&lt;p data-start="1483" data-end="1512"&gt;Best regards,&lt;br /&gt;Semih&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to integrate Modem Shell functionality with a custom application without conflicts.</title><link>https://devzone.nordicsemi.com/thread/524829?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 14:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b11cbdf3-b838-45a3-8a82-1c4013cc0f00</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Semih,&lt;/p&gt;
[quote user=""]is there any way to flash modem shell to the custom PCB which already has nRF Cloud connection for location application without breaking its device credentials between nRF Cloud?[/quote]
&lt;p&gt;Can you provide more information about your concern of breaking credentials?&lt;br /&gt;&lt;br /&gt;Which application is currently running on your board?&lt;br /&gt;&lt;br /&gt;Can you elaborate on your use case?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>