<?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 uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114144/at-uart</link><description>I am trying to set up the AT library to directly talk to the modem through a uart on the nrf9160DK. But when I enter the commands to test &amp;quot;AT+CFUN?&amp;quot; I just get it echoed back I have a USB to UART converter connected to P0.00 and P0.01 to talk to the modem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Sep 2024 10:41:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114144/at-uart" /><item><title>RE: AT uart</title><link>https://devzone.nordicsemi.com/thread/500739?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 10:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93c65455-ce83-4a11-910e-b2824d22a2e2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am not sure if this answers your question, but the Note in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/hardware/pinctrl/index.html#pin_configuration"&gt;Pin configuration&lt;/a&gt;&amp;nbsp;discourages adding pin configuration defaults in pre-defined nodes.&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: AT uart</title><link>https://devzone.nordicsemi.com/thread/500495?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 01:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5f41129-486e-424b-9bfa-7b042f11905f</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;With respect to pin ctrl, are you saying that the current way I have them defined in the overlay file is not recommended?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT uart</title><link>https://devzone.nordicsemi.com/thread/500409?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 11:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9848ea0a-ccce-463b-a836-f9f2bfacdfb2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/modem/at_host.html"&gt;AT Host&lt;/a&gt;&amp;nbsp;library uses UART0 by default but this can be changed using&amp;nbsp;&lt;span&gt;ncs&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;at-host-uart choice in devicetree. &lt;br /&gt;Regarding the pins, there is likely pin conflict in your configuration, i.e. pins are not chosen correctly. You can check GPIO pin usage in the default pin settings table in the chapter 4.6 (GPIO interfaces) of the nRF9160-dk hardware user guide. &lt;br /&gt;You could try to use pins for buttons or leds which are routed to the pin header.&amp;nbsp;&lt;br /&gt;You should also use your own pinctrl instances instead of matching ones already set up in the board. For example,&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
   my_pin_configuration: my_pin_configuration {
      group1 {
         psels = &amp;lt;NRF_PSEL(UART_TX, 0, 14)&amp;gt;,
                 &amp;lt;NRF_PSEL(UART_RX, 0, 16)&amp;gt;;
      };
   };
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;and&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
  pinctrl-0 = &amp;lt;&amp;amp;my_pin_configuration&amp;gt;;
  pinctrl-names = &amp;quot;default&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT uart</title><link>https://devzone.nordicsemi.com/thread/500088?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 01:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78f1cc1a-44fd-4d58-8299-9060a0b149e9</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;Right now I have uart0 set up for P0.016/P0.17 which should be for the AT uart, and then uart 1 set up with P0.00/P0.01 for logging / shell.&lt;br /&gt;&lt;br /&gt;If I don&amp;#39;t have the AT host library enabled the shell and logging works ok.. but if I enable the AT host library, neither works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT uart</title><link>https://devzone.nordicsemi.com/thread/500020?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 13:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a66740c3-3cf4-4922-a2cf-0522b8e34643</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Information about&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf9160_dk/page/UG/nrf91_DK/hw_description/if_connector.html"&gt;GPIO pins&lt;/a&gt;&amp;nbsp;on the nRF9160-dk hardware can be found in the documentation.&lt;/p&gt;
[quote user="dave_s"]I tried building the AT_client sample but it was giving build errors.&amp;nbsp; I&amp;#39;ll try again[/quote]
&lt;p&gt;If you still experience an issue, please provide your build log.&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: AT uart</title><link>https://devzone.nordicsemi.com/thread/499826?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 17:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e2fe43-edc9-46d8-96be-239cf6d72faf</guid><dc:creator>mark.blackburn.orpyx</dc:creator><description>&lt;p&gt;I think&amp;nbsp;P0.16 and P0.17 would be safe to use. They are on the nRF52 interface, but those should not be driven if the default firmware on that chip is left as is or erased.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT uart</title><link>https://devzone.nordicsemi.com/thread/499824?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 17:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:727eb23e-2da4-423c-b0a7-a7de24a36813</guid><dc:creator>mark.blackburn.orpyx</dc:creator><description>&lt;p&gt;I think you are running into a contention because the IC there a a MCU that is driving the VCOM lines&amp;nbsp;on the DK. I think you should change which pins you are using for your UART on pins P0.00 and P0.01 if you want to use the Arduino connectors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT uart</title><link>https://devzone.nordicsemi.com/thread/499802?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 14:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8377ef89-6489-485e-bec7-d8b19746a6f5</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;I tried building the AT_client sample but it was giving build errors.&amp;nbsp; I&amp;#39;ll try again&lt;br /&gt;&lt;br /&gt;But either way, I need to use regular GPIO pins for the uart since that is what I&amp;#39;ll use in production and not a virtual com port over the USB&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT uart</title><link>https://devzone.nordicsemi.com/thread/499595?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 13:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f584d10f-bcc1-4451-989d-94c8d09e3121</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Here is the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/at_client/README.html"&gt;link&lt;/a&gt;&amp;nbsp;to Cellular AT client sample documentation page.&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: AT uart</title><link>https://devzone.nordicsemi.com/thread/499451?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 00:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7c97d50-6a46-471b-b0b7-97fd7d1a18ce</guid><dc:creator>mark.blackburn.orpyx</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to connect USB to UART convertor to any pins. The DK already has VCOM ports over the USB connection.&lt;/p&gt;
&lt;p&gt;I recommend trying the at_client sample.&lt;/p&gt;
&lt;p&gt;In VS Code &amp;quot;Create a new application&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1724372768710v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Copy a sample&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1724372814064v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Start typing &amp;quot;at_client&amp;quot; and select at_client Sample&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1724372851876v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Create a build configuration for nrf9160 dk and&amp;nbsp;don&amp;#39;t make any changes to the device tree configuration. The DK has 3 UARTs. Two of them are for the nRF9160. Try connecting to all of them at 115200, and keep type AT&amp;lt;ENTER&amp;gt; util one of them responds with &amp;quot;OK&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>