<?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>nRF9160 proprietary AT commands (ie AT%CMNG=1) via firmware functions?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87162/nrf9160-proprietary-at-commands-ie-at-cmng-1-via-firmware-functions</link><description>I want to be able to send the &amp;quot;AT%&amp;quot; type of Nordic proprietary commands to the modem (and read the response back) via firmware on the nRF9160. I know about the 
 
 nrf_modem_at_cmd(), however that only supports &amp;quot;AT+&amp;quot; type commands, and all &amp;quot;AT%&amp;quot; type</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Apr 2022 08:22:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87162/nrf9160-proprietary-at-commands-ie-at-cmng-1-via-firmware-functions" /><item><title>RE: nRF9160 proprietary AT commands (ie AT%CMNG=1) via firmware functions?</title><link>https://devzone.nordicsemi.com/thread/364396?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 08:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a40b455-3361-4c10-8916-5d75c58cdb1d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Great to hear! Hope you have a wonderful weekend!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 proprietary AT commands (ie AT%CMNG=1) via firmware functions?</title><link>https://devzone.nordicsemi.com/thread/364293?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 14:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f71360da-59bf-4377-a87e-f3666dc4c619</guid><dc:creator>JonnyMN</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/87162/nrf9160-proprietary-at-commands-ie-at-cmng-1-via-firmware-functions/364125#364125"]How are you sending the command to the modem? &amp;quot;%&amp;quot; needs to be escaped in C, whereas you normally escape with &amp;quot;\&amp;quot;, you handle percent a bit different:&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/1860159/how-to-escape-the-percent-sign-in-cs-printf"&gt;https://stackoverflow.com/questions/1860159/how-to-escape-the-percent-sign-in-cs-printf&lt;/a&gt;[/quote]
&lt;p&gt;That fixed it! Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 proprietary AT commands (ie AT%CMNG=1) via firmware functions?</title><link>https://devzone.nordicsemi.com/thread/364125?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 08:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2992fa2d-83ed-4c54-8048-292381604def</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How are you sending the command to the modem? &amp;quot;%&amp;quot; needs to be escaped in C, whereas you normally escape with &amp;quot;\&amp;quot;, you handle percent a bit different:&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/1860159/how-to-escape-the-percent-sign-in-cs-printf"&gt;https://stackoverflow.com/questions/1860159/how-to-escape-the-percent-sign-in-cs-printf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example of a formatted string from lte_lc.c:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/lib/lte_link_control/lte_lc.c#L81"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/lib/lte_link_control/lte_lc.c#L81&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it works better?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>