<?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 custom board AT client not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61098/nrf9160-custom-board-at-client-not-working</link><description>Greetings, 
 we are developing a custom board that holds a nrf9160 chip. We have uart lines out on pins 28 and 29, as on the DK. We need to use the AT client in order to flash certificates to the modem. This used to work and we successfully flashed certificates</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 May 2020 09:25:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61098/nrf9160-custom-board-at-client-not-working" /><item><title>RE: nrf9160 custom board AT client not working</title><link>https://devzone.nordicsemi.com/thread/249637?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 09:25:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3af2c88-ec5b-4b23-8d12-5cc16f528141</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I am happy to hear that you got something working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Tjaz"]This now raises the question why LTE Link Monitor works with the nrf9160 DK, and not our custom board (sometimes).[/quote]
&lt;p&gt;&amp;nbsp;How do you connect your custom device to the computer? Have you ruled that out as a source of your problem?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Tjaz"]That is, I get no responses to AT commands in LTE Link Monitor, and also no responses using minicom.[/quote]
&lt;p&gt;&amp;nbsp;Have you tried to see if the AT command reaches the nRF9160? If it does not, that would explain why you do not get a reply. One way you might be able to check is to check the pin/trace used for the UART signals with an oscilloscope or logic analyzer.&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><item><title>RE: nrf9160 custom board AT client not working</title><link>https://devzone.nordicsemi.com/thread/249102?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 07:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5201d49-84fb-4559-9a79-200e4cc0ce61</guid><dc:creator>Tjaz</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have since found out, that communicating with the AT client does not work &lt;em&gt;only with some applications&lt;/em&gt; (terminals) on my computer. So, it is not the AT client that is at fault, but the software interfacing with it.&lt;/p&gt;
&lt;p&gt;That is, I get no responses to AT commands in LTE Link Monitor, and also no responses using minicom. But writing a python script using Serial, I get correct responses from the AT client.&lt;/p&gt;
&lt;p&gt;For example, a script like this works:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;#!/usr/bin/env python3
import serial
import time

ser = serial.Serial(&amp;quot;/dev/ttyUSB0&amp;quot;, 115200, timeout=2)  # open serial port
print(ser.name)         # check which port was really used

ser.write(b&amp;#39;AT\r\n&amp;#39;)     # write a string
s = ser.readline()        # read line
print(s.decode(&amp;quot;ascii&amp;quot;))  # prints OK

time.sleep(1)

ser.write(b&amp;#39;AT+CFUN=4\r\n&amp;#39;)
s = ser.readline()
print(s.decode(&amp;quot;ascii&amp;quot;))  # prints OK

time.sleep(1)

ser.write(b&amp;#39;AT+CFUN?\r\n&amp;#39;)
s = ser.readline()
print(s.decode(&amp;quot;ascii&amp;quot;))   # prints +CFUN=4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This now raises the question why LTE Link Monitor works with the nrf9160 DK, and not our custom board (sometimes).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Tjaž&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom board AT client not working</title><link>https://devzone.nordicsemi.com/thread/248861?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 08:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13074eda-3a05-424c-acf1-9eee4264e75d</guid><dc:creator>Tjaz</dc:creator><description>&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Do you know what is different between then and now?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Sorry, I was maybe a bit unclear in my first post. As far as I am aware, nothing has changed. But due to the corona-virus and remote-work, I can not 100 % verify the situation.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Does the computer that does not work have something in common?&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Is there anything that separates&amp;nbsp;them from the computers that does work?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It works on a specific windows machine, but not on another windows machine and neither on 2 separate Linux machines.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;What AT commands did you test?&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;What does the terminal window say? Did you get a response from the device at all, even though it came &amp;quot;too late for the Link Monitor&amp;quot;?&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Are you able to read any application output on the computers that does not work?&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Is the behaviour consistent across all your custom devices?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I testes simple commands such as &amp;quot;AT&amp;quot;, &amp;quot;AT+CFUN?&amp;quot; and &amp;quot;AT+CFUN=1&amp;quot;, ... They all time out and there is no response from the at client at all (not even after a bigger delay, as you suggested). I get application output at the beginning - the booting message and then &amp;quot;The host AT client has started&amp;quot; (or something like that). Flashing some other application, I can also see LOG/printk output.&lt;/p&gt;
&lt;p&gt;The behavior was observed on 2 devices. I will be able to check more in the next week, but probably never all of them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I maybe suspect this has something to do with UART configs -&amp;gt; we use UART0 for outward communication and UART1&amp;nbsp;for takling to&amp;nbsp;nrf52. Maybe UART0 is blocking the UART0 line? is this possible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Tjaž&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom board AT client not working</title><link>https://devzone.nordicsemi.com/thread/248699?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 11:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a483ee0-575e-48f4-b7bf-63e650e65ec5</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]We need to use the AT client in order to flash certificates to the modem. This used to work and we successfully flashed certificates on some 10 or so devices[/quote]
&lt;p&gt;&amp;nbsp;Do you know what is different between then and now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]For some unknown reason, the LTE link monitor could successfully communicate only on some PCs (on others, all AT commands timed out, but only for our boards. Communicating with the DK worked OK).[/quote]
&lt;p&gt;&amp;nbsp;Does the computer that does not work have something in common?&lt;/p&gt;
&lt;p&gt;Is there anything that sepparates them from the computers that does work?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]all AT commands timed out[/quote]
&lt;p&gt;&amp;nbsp;What AT commands did you test?&lt;/p&gt;
&lt;p&gt;What does the terminal window say? Did you get a response from the device at all, even though it came &amp;quot;too late for the Link Monitor&amp;quot;?&lt;/p&gt;
&lt;p&gt;Are you able to read any application output on the computers that does not work?&lt;/p&gt;
&lt;p&gt;Is the behaviour consistent across all your custom devices?&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>