<?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>Use the Debug in connector P3 on nrf9160DK to read/write AT commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77469/use-the-debug-in-connector-p3-on-nrf9160dk-to-read-write-at-commands</link><description>Hi! 
 I am developing on a custom board and only have the Debug in connector P3 from nrf9160dk to debug the board. I want to send AT commands to configure the modem and will be using the AT_client sample to do this. What configuration do I need to use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Jul 2021 14:15:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77469/use-the-debug-in-connector-p3-on-nrf9160dk-to-read-write-at-commands" /><item><title>RE: Use the Debug in connector P3 on nrf9160DK to read/write AT commands</title><link>https://devzone.nordicsemi.com/thread/320301?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 14:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de93bb6b-26f5-49f1-a5c1-9802d96118aa</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="erumed"]And also, does this mean that you cannot read or send to the serial line through P3?[/quote]
&lt;p&gt;&amp;nbsp;As the connector is only connected to the debug pins of the nRF9160, no you can not use it to send UART.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="erumed"]Is there any information or links on how to use RTT to recieve and then send to the modem?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;You can find the RTT API in modules/debug/segger/SEGGER/SEGGER_RTT.h.&lt;/p&gt;
&lt;p&gt;Segger seems to have some more documentation for the API here: &lt;a href="https://wiki.segger.com/RTT#API_functions"&gt;RTT API functions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In addition, you can use the RTT backend for Zephyr&amp;#39;s shell as inspiration: zephyr/subsys/shell/shell_rtt.c&lt;/p&gt;
&lt;p&gt;That should let you send and receive data to the application core.&lt;/p&gt;
&lt;p&gt;Then, you want to re-write nrf/lib/at_host/at_host.c to use RTT instead of UART (or, add an alternative implementation and use a Kconfig symbol to choose which one is used).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use the Debug in connector P3 on nrf9160DK to read/write AT commands</title><link>https://devzone.nordicsemi.com/thread/320001?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 12:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3a89fa-baf6-4514-99f8-b972acb63dfb</guid><dc:creator>erumed</dc:creator><description>&lt;p&gt;Ok, thank you!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any information or links on how to use RTT to recieve and then send to the modem?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And also, does this mean that you cannot read or send to the serial line through P3?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any help&amp;nbsp;in code to this would be so helpful, thanks!&lt;/p&gt;
&lt;p&gt;/Ellinor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use the Debug in connector P3 on nrf9160DK to read/write AT commands</title><link>https://devzone.nordicsemi.com/thread/319992?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 11:55:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0b243b0-3171-46aa-825b-b6c2b39255b3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, you can not use the at_client sample to receive AT commands over P3.&lt;/p&gt;
&lt;p&gt;As it is currently written, the at_client sample only supports UART.&lt;/p&gt;
&lt;p&gt;However, you should be able to write a program that receives the AT commands over RTT, and sends them to the modem. You can then connect a debugger to P3, and use that connection to send AT commands.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>