<?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>AT Commands from Application Space</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74461/at-commands-from-application-space</link><description>I have my first custom nRF9160 prototype boards back and they seem to be working pretty well. One question I do have is that I have been unable to find a clear concise description of how to send an AT command from within main.c in the application space</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Apr 2021 13:38:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74461/at-commands-from-application-space" /><item><title>RE: AT Commands from Application Space</title><link>https://devzone.nordicsemi.com/thread/307280?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 13:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:917cce78-da6a-4d1b-bc58-ae8596f0efea</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello Joe,&lt;/p&gt;
&lt;p&gt;In general, the modem will start automatically if the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrfxlib/nrf_modem/README.html"&gt;modem library&lt;/a&gt; is initialised.&lt;/p&gt;
&lt;p&gt;To able to use the function &lt;em&gt;at_cmd_write&lt;/em&gt;, the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/include/modem/at_cmd.html"&gt;AT command interface library&lt;/a&gt; must be initialised first.&lt;/p&gt;
&lt;p&gt;The AT Client sample uses the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/lib/at_host/lib_at_host.html#lib-at-host"&gt;AT Host library&lt;/a&gt; which includes the above-mentioned steps.&lt;/p&gt;
&lt;p&gt;So yes, if you are going to use the AT Host together with your application it is as simple as you described.&lt;/p&gt;
&lt;p&gt;I hope this will help you!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>