<?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>not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96050/not-able-to-send-at-commands-on-on-nrf9160-module</link><description>When I connect on tera term and try sending AT commands, the device doesn&amp;#39;t identify them, 
 My prj.conf file looks like this: 
 I don&amp;#39;t want to use AT_SHELL, so can u please suggest: 
 # 
 # Copyright (c) 2020 Nordic Semiconductor ASA 
 # 
 # SPDX-License</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Feb 2023 10:07:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96050/not-able-to-send-at-commands-on-on-nrf9160-module" /><item><title>RE: not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/thread/407956?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 10:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c24b909b-9d91-42a2-9aa2-de30f80af0a2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I am very confused at the moment. What is the project you are working on? Where did you get that from and how did you start with the provided configuration in the OP?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/thread/407435?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 20:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c236321c-be13-47bd-9154-66211f021a72</guid><dc:creator>vmskrshn</dc:creator><description>&lt;p&gt;I dont know what you mean by a sample. Can you explain?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/thread/407421?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 18:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9016cec0-ecae-4889-8d26-a10f52d17b4b</guid><dc:creator>vmskrshn</dc:creator><description>&lt;p&gt;Tried using both together and individually too. Doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;When i use just AT_HOST, it&amp;#39;s not recognizing AT commands.&lt;/p&gt;
&lt;p&gt;And also for one of my firmware builds, AT_HOST shows an error that it cant bind UART0.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry I&amp;#39;m new to firmware. I&amp;#39;m not sure if something else is binding UART0 already. UART1 and UART2 on our device are being used for other purposes and can&amp;#39;t be used for this.&lt;/p&gt;
&lt;p&gt;Is there a way to send a multiline command in just AT_SHELL without &amp;quot;\n&amp;quot; being considered as command termination. It should be considered as just a new line feed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/thread/407032?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 09:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039196ab-b000-4279-8e51-ad50a6fd6cc8</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="oys"]What sample are you working on? [/quote]
&lt;p&gt;Do you need to use AT_SHELL or can you use AT_HOST? In you application please add&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_AT_HOST_LIBRARY=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;Looking at the AWS IOT samples, this should already have AT Host enabled.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/thread/406736?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fff2dbdc-6b4d-490c-b73a-1c6a4418ec3d</guid><dc:creator>vmskrshn</dc:creator><description>&lt;p&gt;Adding to the above reply:&lt;/p&gt;
&lt;p&gt;I have a python script sending the command through the at.py module:&lt;/p&gt;
&lt;p&gt;The command that the script is sending looks like below:&lt;/p&gt;
&lt;p&gt;at at%%cmng=0,12345678,0,&amp;quot;&lt;br /&gt;-----BEGIN CERTIFICATE-----&lt;br /&gt;MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF&lt;br /&gt;ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6&lt;br /&gt;b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL&lt;br /&gt;MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv&lt;br /&gt;b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj&lt;br /&gt;ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM&lt;br /&gt;9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw&lt;br /&gt;IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6&lt;br /&gt;VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L&lt;br /&gt;93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm&lt;br /&gt;rqXRfboQnoZsG4q5WTP468SQvvG5&lt;br /&gt;-----END CERTIFICATE-----&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/thread/406716?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 15:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5a8ab0b-1fc2-4369-956d-ce1db625afec</guid><dc:creator>vmskrshn</dc:creator><description>&lt;p&gt;SDK-1.9.0&lt;/p&gt;
&lt;p&gt;modem FW- 1.3.2&lt;/p&gt;
&lt;p&gt;The actual problem that im facing is not being able to write aws certificates to the board. I tried using AT_SHELL, which wants me send the command in the format:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;at at%%cmng=0,12345678,0,&amp;quot;\n&lt;br /&gt;-----BEGIN CERTIFICATE-----\n&lt;br /&gt;MIIDQT....................................\n&lt;br /&gt;.................................................\n&lt;br /&gt;.........................................QVVg5\n&lt;br /&gt;-----END CERTIFICATE-----&amp;quot;\r\n&lt;/p&gt;
&lt;p&gt;But for some reason, AT_SHELL is not allowing multiline commands. As you might know each line in the command needs to end with LF (\n), which is what I&amp;#39;m doing but AT_SHELL terminates the command at \n and begins a new command, so the next command line is where the rest of the certificate gets written. The shell output looks like this:&lt;/p&gt;
&lt;p&gt;uart:~$ at at%%cmng=0,12345678,0,&amp;quot;&lt;br /&gt;not terminated: &amp;quot;&lt;br /&gt;uart:~$ -----BEGIN CERTIFICATE-----&lt;br /&gt;-----BEGIN: command not found&lt;br /&gt;Please specify a subcommand.&lt;br /&gt;uart:~$ MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG&lt;br /&gt;9w0BAQsF&lt;br /&gt;MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF: command not found&lt;br /&gt;Please specify a subcommand.&lt;br /&gt;uart:~$ ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQD&lt;br /&gt;ExBBbWF6&lt;br /&gt;ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6: command not found&lt;br /&gt;Please specify a subcommand.&lt;br /&gt;NVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv: command not found&lt;br /&gt;Please specify a subcommand.&lt;/p&gt;
&lt;p&gt;So I tried using AT_HOST and disabling AT_SHELL, it won&amp;#39;t recognise AT commands&lt;/p&gt;
&lt;p&gt;uart:~$ at at%%cmng=1&lt;br /&gt;at: command not found&lt;br /&gt;Please specify a subcommand.&lt;br /&gt;uart:~$ AT%%CMNG=1&lt;br /&gt;AT%%CMNG=1: command not found&lt;br /&gt;Please specify a subcommand.&lt;br /&gt;uart:~$ AT%CMNG=1&lt;br /&gt;AT%CMNG=1: command not found&lt;br /&gt;Please specify a subcommand.&lt;br /&gt;uart:~$ help&lt;/p&gt;
&lt;p&gt;Available commands:&lt;br /&gt; adc&lt;br /&gt; audio&lt;br /&gt; distance&lt;br /&gt; flash&lt;br /&gt; help&lt;br /&gt; i2c&lt;br /&gt; log&lt;br /&gt; mcuboot&lt;br /&gt; nrf_clock_control&lt;br /&gt; prod&lt;br /&gt; stats&lt;br /&gt; thunder&lt;br /&gt;uart:~$&lt;/p&gt;
&lt;p&gt;Can you please suggest?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to send AT commands on on nrf9160 module</title><link>https://devzone.nordicsemi.com/thread/406614?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 10:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3c6e36b-ef55-4ff5-a40b-e93aef7ecf25</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello there,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Can you please provide more information on what version of nRF Connect SDK you are running? And what modem FW on your nRF9160?&lt;/p&gt;
[quote user=""]I don&amp;#39;t want to use AT_SHELL, so can u please suggest:[/quote]
&lt;p&gt;What sample are you working on? The following is from the Asset Tracker v2 application, which uses the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/modem/at_host.html#at-host"&gt;AT Host library&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;# AT Host library - Used to send AT commands directy from an UART terminal and to allow
#                   integration with nRF Connect for Desktop LTE Link monitor application.
CONFIG_AT_HOST_LIBRARY=y&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>