<?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: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70193/nrf9160-not-retrieving-dns-servers-with-ipv6</link><description>I am currently working on a project with a nRF9160 and in the very early stages of evaluation. 
 I have a few, hope not too many questions that I hope can be answered here, if it is not too much trouble. I am starting fresh with the nRF9120SK, but do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Feb 2021 12:47:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70193/nrf9160-not-retrieving-dns-servers-with-ipv6" /><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/292214?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2021 12:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16473720-5d3a-49bb-a9a3-43d1b253de68</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I finally got a hold of a device that works with the SIM chip in question above, of course it was an issue with the APN information. &amp;nbsp;Although I thought LTE did not require authentication, this SIM chip does, and so does another that I have. &amp;nbsp;Maybe authentication is still something used by providers in Japan?&lt;/p&gt;
&lt;p&gt;It was not an IPv6 issue, this runs IPv4, and retrieves an IPv4 address.&lt;br /&gt;For some reason the nRF9160 automatically retrieves the APN &amp;quot;ims&amp;quot; and that IPv6 address, I don&amp;#39;t know why, but would be happy to share modem traces if you would like to try to track down the issue. &amp;nbsp;It is possible the network is providing this &amp;quot;ims&amp;quot; APN, but it is intentionally incorrect?&lt;/p&gt;
&lt;p&gt;Anyway, for reference in addition to the&amp;nbsp;AT+CGDCONT to set the APN, I also needed to use the AT+CGAUTH to set the authentication information.&lt;/p&gt;
&lt;p&gt;Here is some information from the manual, I will copy here...&lt;/p&gt;
&lt;p&gt;This is from this manual, I think it is not the current SDK, but this command appears to not have changed.&lt;br /&gt;I changed a little of the information below, instead of using &amp;quot;PAP&amp;quot;/&amp;quot;CHAP&amp;quot; I put a 1 in place, and changed the CID number to 0. &amp;nbsp;I hope this information helps some other developers who run into needing to use authentication for their&amp;nbsp;SIM chips.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nrf91_at_commands_v1.2.pdf"&gt;infocenter.nordicsemi.com/.../nrf91_at_commands_v1.2.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;6.16 Define PDN connection authentication parameters&lt;br /&gt;+CGAUTH&lt;br /&gt;The +CGAUTH command specifies authentication parameters. For reference, see 3GPP 27.007 Ch. 10.1.31.&lt;br /&gt;6.16.1 Set command&lt;br /&gt;The set command specifies authentication parameters for a PDN connection specified by parameter &amp;lt;cid&amp;gt;.&lt;br /&gt;Syntax:&lt;br /&gt; +CGAUTH=&amp;lt;cid&amp;gt;[,&amp;lt;auth_prot&amp;gt;[,&amp;lt;userid&amp;gt;[,&amp;lt;password&amp;gt;]]]&lt;br /&gt;The set command parameters and their defined values are the following:&lt;br /&gt;&amp;lt;cid&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;0&amp;ndash;11&lt;br /&gt;&amp;lt;auth_prot&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;0 &amp;ndash; None. Username and password are removed if they have been specified.&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp;1 &amp;ndash; PAP&lt;br /&gt;&amp;nbsp; &amp;nbsp;2 &amp;ndash; CHAP&lt;br /&gt;&amp;lt;userid&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;String&lt;br /&gt;&amp;lt;password&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;String&lt;br /&gt;&lt;br /&gt;The following command example sets authentication parameters for CID=0 context:&lt;br /&gt; AT+CGAUTH=0,2,&amp;quot;username&amp;quot;,&amp;quot;password&amp;quot;&lt;/p&gt;
&lt;p&gt;This resolves this issue, after all it was not a DNS issue, it was an issue of not supplying the correct APN information to the nRF9160.&lt;/p&gt;
&lt;p&gt;It appears the nRF9160 can not automatically figure out these APN settings, if you would like to add this to the nRF9160 so it can correctly auto configure these devices please let me know and I will be more than happy to share information about the SIM chips that I run across during development.&lt;/p&gt;
&lt;p&gt;I am leaving this case open for a little bit so this final message is seen, I will mark it as resolved soon. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for all the support on this topic!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/289482?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 15:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc3130da-f7f4-42ed-9ff0-7b4ae73f2270</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="aldras"]I have identified two APNs from the iPhone, do you see the APN information in the trace?[/quote]
&lt;p&gt;&amp;nbsp;The trace shows that you are connected to ims:&amp;nbsp; +CGDCONT: 0,&amp;quot;IPV6&amp;quot;,&amp;quot;ims&amp;quot;,&amp;quot;0000:0000:0000:0000:0000:0027:5BE5:6E01&amp;quot;,0,0\r\nOK\r\n&lt;/p&gt;
&lt;p&gt;Note that the phone is using &amp;quot;regular&amp;quot; 4G LTE, while the nRF9160 is using LTE-M (Cat-M1).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/289011?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 17:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e97f6b-dbfd-472f-ac5b-e3802dbb2fd8</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad that the trace data is valid, thank you for the insights. &amp;nbsp;You might mention to the team who takes care of the Trace Collector application on MacOS that it does not connect to the correct VCP device if &amp;quot;Auto device/port filter&amp;quot; is enabled. &amp;nbsp;I can also create a new ticket myself if that helps so it can be tracked in the ticket system.&lt;/p&gt;
&lt;p&gt;I needed to manually select the third enumerated VCP device in order to collect the data.&lt;/p&gt;
&lt;p&gt;I am doing more testing with this SIM card, and I am having similar trouble while testing in an iPhone, it does not retrieve an IP address. &amp;nbsp;We have a working phone at the office that successfully retrieves a valid IPv4 IP address, I don&amp;#39;t know how it does it, I will have to look into it.&lt;/p&gt;
&lt;p&gt;I am not sure what the IPv6 address of anything on the network is, I am not sure that the IPv6 address it is retrieving somehow is actually valid for anything, it might not even have a valid gateway, does it?&lt;/p&gt;
&lt;p&gt;Since it retrieves an IPv4 address using the phone in the office (its a special use case Android based IoT smart phone) I am not sure that following this IPv6 is the correct route to resolve this issue.&lt;/p&gt;
&lt;p&gt;I have identified two APNs from the iPhone, do you see the APN information in the trace?&lt;/p&gt;
&lt;p&gt;These are the two APNs that I see, one is auto detected in the nRF9160.&lt;/p&gt;
&lt;p&gt;This information was retrieved using the iPhone diagnonstics feature mentioned in this URL.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ios.gadgethacks.com/how-to/100-secret-dialer-codes-for-your-iphone-0161875/"&gt;https://ios.gadgethacks.com/how-to/100-secret-dialer-codes-for-your-iphone-0161875/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Context 0 =&amp;nbsp;uniz.au-net.ne.jp&lt;/p&gt;
&lt;p&gt;Context 1 = IMS&lt;/p&gt;
&lt;p&gt;Give me a little time to investigate and examine the working smart phone at the office and I will reply on this ticket within the next couple days.&lt;/p&gt;
&lt;p&gt;Thank you for the assistance so far, it has been appreciated. &amp;nbsp;I am sure I am not the only one who might run into this issue with this specific SIM card so it would be good if we can trace the issue down and resolve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288963?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 14:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de7bb630-8b6a-457d-8b6c-3b4ec2796d4e</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Thanks. This last trace was valid.&lt;/p&gt;
&lt;p&gt;It shows that the network doesn&amp;#39;t provide a DNS address, which explains the failure when using the hostname.&lt;/p&gt;
&lt;p&gt;The modem trace also shows that the modem tries to find neighboring routers with ICMPv6 router solicitation messages, but doesn&amp;#39;t get any replies.&lt;/p&gt;
&lt;p&gt;It also sends a TCP SYN packet to your server, but doesn&amp;#39;t get any reply.&lt;/p&gt;
&lt;p&gt;The TCP SYN packet is sent over IPv4. The modem uses the address 0.0.0.0, which indicates that it hasn&amp;#39;t been provided with any IPv4 address by the network. This is probably why the server isn&amp;#39;t able to respond, if the packet arrives at all.&lt;/p&gt;
&lt;p&gt;Could you try to use the IPv6 address of the server, or use nrf_setdnsaddr() to set the DNS server manually?&lt;/p&gt;
&lt;p&gt;The best place to add the call to nrf_setdnsaddr() is probably in start_execute(), right after the call to handle_bsd_lib_init_ret() in main.c.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I forgot to mention it in my last reply, but you should be able to upload files to devzone. You should find the option here:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610548546250v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288760?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 19:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c867a443-ea84-4e02-b99d-5e0839915963</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Ok I think I have a valid trace, this is modem firmware v1.2.3.&lt;/p&gt;
&lt;p&gt;The problem I had is that the nRF Connect v3.6.1 - Trace Collector on MacOS does not connect to the correct serial device when &amp;quot;Auto device/port filter&amp;quot; is turned on. &amp;nbsp;I had to turn that off and manually connect to the third serial port. &amp;nbsp;Please let me know if this data is valid.&lt;a href="https://www.drassal.net/filestore/trace-2021-01-12T19-09-49.821Z.bin"&gt;www.drassal.net/.../trace-2021-01-12T19-09-49.821Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288755?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 18:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b904cb-47ca-4db9-9075-0dad8c587eda</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Ah, it occurred to me that perhaps the UART is not connected that is outputting the modem trace.&lt;/p&gt;
&lt;p&gt;I was under the impression that there are three UARTs (uart0, uart1, uart2) on the nRF9160, but I only see UART1 and UART2 on the schematic for the nRF9160DK. &amp;nbsp;Which UART is the trace supposed to come out of? &amp;nbsp;I have not changed any jumpers or such on the board, but this is also an engineering sample version, perhaps there are some hardware differences? &amp;nbsp;I could not find detailed schematics for different board versions to compare.&lt;/p&gt;
&lt;p&gt;Also I was not specific about which hex file I am programming, I am programming the merged.hex file, but that has never given me problems with the below command.&lt;/p&gt;
&lt;p&gt;/usr/local/bin/nrfjprog -f NRF91 --program build/zephyr/merged.hex --sectorerase&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288749?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 17:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b189fb76-be90-4ab9-b8a8-c4774b02a517</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;I am not sure what is going on with by build, it is not outputting a trace it seems, do you have a prebuilt hex file that I can upload to it? &amp;nbsp;Also please tell me which modem firmware I should run to match with it. &amp;nbsp;I was on 1.2.3, downgraded to 1.2.2 to see if that was the issue. &amp;nbsp;I have tried SDK 1.4.1 and 1.4.99 with the same results, here is the prj.conf file for the applications/serial_lte_modem application that I used to build with. &amp;nbsp;Any recommendations? &amp;nbsp;A different application perhaps?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can just provide me with a verified working hex file it should get things going also. &amp;nbsp;Please tell me which modem firmware version I should use with it.&lt;/p&gt;
&lt;p&gt;#&lt;br /&gt;# Copyright (c) 2020 Nordic Semiconductor ASA&lt;br /&gt;#&lt;br /&gt;# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic&lt;br /&gt;#&lt;br /&gt;# General config&lt;br /&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_DEFAULT_LEVEL=3&lt;br /&gt;CONFIG_STACK_SENTINEL=y&lt;br /&gt;CONFIG_NEWLIB_LIBC=y&lt;br /&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y&lt;br /&gt;CONFIG_RING_BUFFER=y&lt;/p&gt;
&lt;p&gt;# Segger RTT&lt;br /&gt;CONFIG_USE_SEGGER_RTT=y&lt;br /&gt;CONFIG_RTT_CONSOLE=y&lt;br /&gt;CONFIG_UART_CONSOLE=n&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=y&lt;br /&gt;CONFIG_LOG_BACKEND_UART=n&lt;/p&gt;
&lt;p&gt;# Network&lt;br /&gt;CONFIG_NETWORKING=y&lt;br /&gt;CONFIG_NET_SOCKETS=y&lt;br /&gt;CONFIG_NET_NATIVE=n&lt;/p&gt;
&lt;p&gt;# BSD library&lt;br /&gt;CONFIG_BSD_LIBRARY=y&lt;br /&gt;# Align the max FD entry to BSD_MAX_SOCKET_COUNT(8)&lt;br /&gt;CONFIG_POSIX_MAX_FDS=8&lt;br /&gt;# Enable below for modem trace&lt;br /&gt;CONFIG_BSD_LIBRARY_TRACE_ENABLED=y&lt;/p&gt;
&lt;p&gt;# Use GPIO&lt;br /&gt;CONFIG_GPIO=y&lt;br /&gt;CONFIG_GPIO_NRFX=y&lt;br /&gt;CONFIG_GPIO_NRF_P0=y&lt;/p&gt;
&lt;p&gt;# UART interface&lt;br /&gt;CONFIG_SERIAL=y&lt;br /&gt;CONFIG_UART_ASYNC_API=y&lt;br /&gt;CONFIG_NRFX_TIMER2=y&lt;/p&gt;
&lt;p&gt;# LTE link control&lt;br /&gt;CONFIG_LTE_LINK_CONTROL=y&lt;br /&gt;CONFIG_LTE_AUTO_INIT_AND_CONNECT=n&lt;/p&gt;
&lt;p&gt;# Stacks and heaps&lt;br /&gt;CONFIG_MAIN_STACK_SIZE=4096&lt;br /&gt;CONFIG_HEAP_MEM_POOL_SIZE=16384&lt;br /&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192&lt;/p&gt;
&lt;p&gt;# AT_CMD&lt;br /&gt;# Enable AT_CMD debug for details&lt;br /&gt;CONFIG_AT_CMD_LOG_LEVEL_DBG=y&lt;/p&gt;
&lt;p&gt;# Device power management&lt;br /&gt;CONFIG_DEVICE_POWER_MANAGEMENT=y&lt;/p&gt;
&lt;p&gt;# Enable SUPL client support&lt;br /&gt;#CONFIG_SUPL_CLIENT_LIB=y&lt;/p&gt;
&lt;p&gt;# FOTA&lt;br /&gt;CONFIG_HTTP_PARSER_URL=y&lt;br /&gt;CONFIG_FOTA_DOWNLOAD=y&lt;br /&gt;CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y&lt;br /&gt;CONFIG_DFU_TARGET=y&lt;br /&gt;CONFIG_DOWNLOAD_CLIENT=y&lt;br /&gt;CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096&lt;br /&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;br /&gt;CONFIG_IMG_MANAGER=y&lt;br /&gt;CONFIG_FLASH=y&lt;br /&gt;CONFIG_IMG_ERASE_PROGRESSIVELY=y&lt;/p&gt;
&lt;p&gt;#&lt;br /&gt;# SLM-specific configurations&lt;br /&gt;#&lt;br /&gt;CONFIG_SLM_LOG_LEVEL_INF=y&lt;br /&gt;# Enable GPIO wakeup if sleep is expected&lt;br /&gt;#CONFIG_SLM_GPIO_WAKEUP=y&lt;br /&gt;# Use UART_0 (when working with PC terminal)&lt;br /&gt;CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2&lt;br /&gt;# Use UART_2 (when working with external MCU)&lt;br /&gt;#CONFIG_SLM_CONNECT_UART_2=y&lt;br /&gt;#CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2&lt;/p&gt;
&lt;p&gt;# Use optional GPS service&lt;br /&gt;#CONFIG_SLM_GPS=y&lt;br /&gt;# Use optional FTP client service&lt;br /&gt;#CONFIG_SLM_FTPC=y&lt;br /&gt;# Use optional MQTT client service&lt;br /&gt;#CONFIG_SLM_MQTTC=y&lt;br /&gt;# Use optional HTTP client service&lt;br /&gt;CONFIG_SLM_HTTPC=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288744?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 17:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1b658ee-5210-40b9-9cbc-7b2b80f1d496</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hm, I ran the two commands below and restarted, the nRF9160 is in a restart loop somehow, I will try to enable some more debug options to see if I can find out why...&lt;/p&gt;
&lt;p&gt;I only enabled&amp;nbsp;CONFIG_BSD_LIBRARY_TRACE_ENABLED=y and then rebuilt, programmed.&lt;/p&gt;
&lt;p&gt;I as soon as I did the two commands...&lt;/p&gt;
&lt;p&gt;&lt;span&gt;AT%XMODEMTRACE=1,2&lt;br /&gt;AT+CFUN=0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I pressed the hardware reset key on the dev kit and now it just loops &amp;quot;Ready&amp;quot; about once a second, and I also checked the trace file, it is empty I think.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288742?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 17:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:304cdc6e-5a4e-46d0-99ba-1ce9577d1aae</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Ah, ok I am going to try again, here is another attempt with the above options enabled.&lt;/p&gt;
&lt;p&gt;I deleted the entire build folder and rebuilt with &amp;quot;west build -b nrf9160dk_nrf9160ns&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.drassal.net/filestore/trace-2021-01-12T17-09-05.020Z.bin"&gt;www.drassal.net/.../trace-2021-01-12T17-09-05.020Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288739?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 16:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1182333-3562-4471-b4c8-5f1658c6e640</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to decode both of your traces, but neither of them contains any information.&lt;/p&gt;
&lt;p&gt;A valid trace is typically several hundred kilobytes large.&lt;/p&gt;
&lt;p&gt;Did you enable modem traces in the application with CONFIG_BSD_LIBRARY_TRACE_ENABLED=y in your prj.conf (if you are building the application with SES, you must re-open the project or use Project-&amp;gt;Run CMake for the changes to take effect).&lt;/p&gt;
&lt;p&gt;In addition, you must use AT%XMODEMTRACE=1,2 to enable modem traces in the modem. You can then store the setting with AT+CFUN=0, so that the modem will output traces also after reboots. The %XMODEMTRACE AT command can only be used when the modem is offline (CFUN=0 or 4).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288537?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 07:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86f97f9d-c4c0-475a-9bff-f56fe2aade9e</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Ah, I didn&amp;#39;t attempt to connect in the first trace, here is another one where I attempted to connect with both the hostname and then with a direct IP, it froze after the direct IP attempt connect, hope the modem trace shows why.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.drassal.net/filestore/trace-2021-01-12T07-43-28.792Z.bin"&gt;www.drassal.net/.../trace-2021-01-12T07-43-28.792Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288533?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 07:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:925b5442-1c75-425f-aa7d-a9b5783c92bf</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I am uploading a modem trace, it is with the 1.4.99-dev1 version of the SDK, serial_lte_modem application. &amp;nbsp;This is the IPv6 SIM that does not retrieve DNS servers.&lt;/p&gt;
&lt;p&gt;I hope this trace helps provide some insight.&lt;/p&gt;
&lt;p&gt;Ah I can&amp;#39;t find a way to upload a file, I will host it on my VPS server, it would be better if I could upload it so it is always available on these forms for alter use, did I just miss the upload feature?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.drassal.net/filestore/trace-2021-01-12T07-30-20.914Z.bin"&gt;www.drassal.net/.../trace-2021-01-12T07-30-20.914Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288340?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 10:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1de8a7d0-912b-4b59-8cd3-17c9bb6e7fd1</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="aldras"]There is a v1.4.99-dev1 version, but because of the word &amp;quot;dev&amp;quot; it appears it is not yet stable and in development.[/quote]
&lt;p&gt;&amp;nbsp;The dev tag is better tested than other commits on the master branch, but not as much as a &amp;quot;proper&amp;quot; release.&lt;/p&gt;
&lt;p&gt;This dev tag is primarily for the nRF5340, and I don&amp;#39;t think there are any changes that are relevant for us in this case.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="aldras"]I would like to see what is going on inside the modem, is there a way to see a debug output of the modem during the connection process? &amp;nbsp;I found a &amp;quot;trace collector&amp;quot; but I can&amp;#39;t make sense of is captured, it appears a binary dump of sorts[/quote]
&lt;p&gt;&amp;nbsp;Unfortunately, that is not possible at the moment. We are working on a tool for our customers to gain some insight on what is happening on the modem side, but I cannot comment on when that will be available.&lt;/p&gt;
&lt;p&gt;For now, you will have to send the traces to us for analysis.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="aldras"]Is it possible that the APN is incorrect?[/quote]
&lt;p&gt;&amp;nbsp;The network usually provides the APN, so I assume that it is correct. However, you could try to contact your network provider (those you got the SIM from), and ask.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;As you weren&amp;#39;t able to connect using the HTTP commands either, it doesn&amp;#39;t seem to be just a IPv4 vs IPv6 problem.&lt;/p&gt;
&lt;p&gt;Can you send me the modem trace you took?&lt;/p&gt;
&lt;p&gt;That should tell us where it went wrong in both the DNS lookup, and the direct IP address cases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288261?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2021 14:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75690e93-065b-4084-b29a-4474e7cdd38b</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you for the reply and the above answers.&lt;/p&gt;
&lt;p&gt;I attempted the following commands first to the SIM that retrieves an IPv4 address, then to the SIM that retrieves an IPv6 address.&lt;/p&gt;
&lt;p&gt;These are the commands that I used.&lt;/p&gt;
&lt;p&gt;AT+CGMR&lt;br /&gt;AT+CGPADDR&lt;br /&gt;AT+CGDCONT?&lt;br /&gt;AT+CGCONTRDP=0&lt;/p&gt;
&lt;p&gt;AT#XHTTPCCON=1,&amp;quot;google.com&amp;quot;,80&lt;br /&gt;AT#XHTTPCREQ=&amp;quot;GET&amp;quot;,&amp;quot;/get?foo1=bar1&amp;amp;foo2=bar2&amp;quot;,&amp;quot;&amp;quot;&lt;br /&gt;AT#XHTTPCCON=0,&amp;quot;google.com&amp;quot;,80&lt;/p&gt;
&lt;p&gt;AT#XHTTPCCON=1,&amp;quot;172.217.161.196&amp;quot;,80&lt;br /&gt;AT#XHTTPCREQ=&amp;quot;GET&amp;quot;,&amp;quot;/get?foo1=bar1&amp;amp;foo2=bar2&amp;quot;,&amp;quot;&amp;quot;&lt;br /&gt;AT#XHTTPCCON=0,&amp;quot;172.217.161.196&amp;quot;,80&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here are the results, first the IPv4 card, prefixed with some other network information.&lt;/p&gt;
&lt;p&gt;AT+CGMR&lt;br /&gt;mfw_nrf9160_1.2.3&lt;br /&gt;OK&lt;br /&gt;AT+CGPADDR&lt;br /&gt;+CGPADDR: 0,&amp;quot;100.64.163.216&amp;quot;&lt;br /&gt;OK&lt;br /&gt;AT+CGDCONT?&lt;br /&gt;+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;iijmio.jp&amp;quot;,&amp;quot;100.64.163.216&amp;quot;,0,0&lt;br /&gt;OK&lt;br /&gt;AT+CGCONTRDP=0&lt;br /&gt;+CGCONTRDP: 0,,&amp;quot;iijmio.jp&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;202.232.2.2&amp;quot;,&amp;quot;202.232.2.3&amp;quot;,,,,,1500&lt;br /&gt;OK&lt;br /&gt;AT#XHTTPCCON=1,&amp;quot;google.com&amp;quot;,80&lt;br /&gt;#XHTTPCCON:1&lt;br /&gt;OK&lt;br /&gt;%CESQ: 61,3,19,2&lt;br /&gt;%CESQ: 60,3,24,3&lt;br /&gt;AT#XHTTPCREQ=&amp;quot;GET&amp;quot;,&amp;quot;/get?foo1=bar1&amp;amp;foo2=bar2&amp;quot;,&amp;quot;&amp;quot;&lt;br /&gt;OK&lt;br /&gt;#XHTTPCREQ:0&lt;br /&gt;#XHTTPCRSP:576,1&lt;br /&gt;HTTP/1.1 301 Moved Permanently&lt;br /&gt;Location: &lt;a href="https://www.google.com/get?foo1=bar1&amp;amp;foo2=bar2"&gt;www.google.com/get&lt;/a&gt;&lt;br /&gt;Content-Type: text/html; charset=UTF-8&lt;br /&gt;X-Content-Type-Options: nosniff&lt;br /&gt;Date: Sat, 09 Jan 2021 14:03:57 GMT&lt;br /&gt;Expires: Sat, 09 Jan 2021 14:33:57 GMT&lt;br /&gt;Cache-Control: public, max-age=1800&lt;br /&gt;Server: sffe&lt;br /&gt;Content-Length: 247&lt;br /&gt;X-XSS-Protection: 0&lt;br /&gt;&amp;lt;HTML&amp;gt;&amp;lt;HEAD&amp;gt;&amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html;charset=utf-8&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;TITLE&amp;gt;301 Moved&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;BODY&amp;gt;&lt;br /&gt;&amp;lt;H1&amp;gt;301 Moved&amp;lt;/H1&amp;gt;&lt;br /&gt;The document has moved&lt;br /&gt;&amp;lt;A HREF=&amp;quot;&lt;a href="https://www.google.com/get?foo1=bar1&amp;amp;amp;foo2=bar2"&gt;&amp;quot;&amp;gt;www.google.com/get&lt;/a&gt;&lt;br /&gt;&amp;lt;/BODY&amp;gt;&amp;lt;/H#XHTTPCRSP:6,0&lt;br /&gt;TML&amp;gt;&lt;br /&gt;AT#XHTTPCCON=0,&amp;quot;google.com&amp;quot;,80&lt;br /&gt;#XHTTPCCON:0&lt;br /&gt;OK&lt;br /&gt;AT#XHTTPCCON=1,&amp;quot;172.217.161.196&amp;quot;,80&lt;br /&gt;#XHTTPCCON:1&lt;br /&gt;OK&lt;br /&gt;AT#XHTTPCREQ=&amp;quot;GET&amp;quot;,&amp;quot;/get?foo1=bar1&amp;amp;foo2=bar2&amp;quot;,&amp;quot;&amp;quot;&lt;br /&gt;OK&lt;br /&gt;#XHTTPCREQ:0&lt;br /&gt;#XHTTPCRSP:576,1&lt;br /&gt;HTTP/1.1 404 Not Found&lt;br /&gt;Content-Type: text/html; charset=UTF-8&lt;br /&gt;X-Content-Type-Options: nosniff&lt;br /&gt;Date: Sat, 09 Jan 2021 14:04:15 GMT&lt;br /&gt;Server: sffe&lt;br /&gt;Content-Length: 1588&lt;br /&gt;X-XSS-Protection: 0&lt;br /&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;&amp;lt;html lang=en&amp;gt;&lt;br /&gt; &amp;lt;meta charset=utf-8&amp;gt;&lt;br /&gt; &amp;lt;meta name=viewport content=&amp;quot;initial-scale=1, minimum-scale=1, width=device-width&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;title&amp;gt;Error 404 (Not Found)!!1&amp;lt;/title&amp;gt;&lt;br /&gt; &amp;lt;style&amp;gt;&lt;br /&gt; *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* &amp;gt; #XHTTPCRSP:576,1&lt;br /&gt;body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% #XHTTPCRSP:576,1&lt;br /&gt;0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}&lt;br /&gt; &amp;lt;/style&amp;gt;&lt;br /&gt; &amp;lt;a href=//www.google.com/&amp;gt;&amp;lt;span id=logo aria-label=Google&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt; &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;404.&amp;lt;/b&amp;gt; &amp;lt;ins&amp;gt;That&amp;acirc;s an error.&amp;lt;/ins&amp;gt;&lt;br /&gt; &amp;lt;p&amp;gt;The requested URL &amp;lt;code&amp;gt;/get?foo1=bar1&amp;amp;amp;foo2=bar2&amp;lt;/code&amp;gt; was not fou#XHTTPCRSP:53,0&lt;br /&gt;nd on this server. &amp;lt;ins&amp;gt;That&amp;acirc;s all we know.&amp;lt;/ins&amp;gt;&lt;br /&gt;AT#XHTTPCCON=0,&amp;quot;172.217.161.196&amp;quot;,80&lt;br /&gt;#XHTTPCCON:0&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now the same commands with the IPv6 SIM card&lt;/p&gt;
&lt;p&gt;AT+CGMR&lt;br /&gt;mfw_nrf9160_1.2.3&lt;br /&gt;OK&lt;br /&gt;AT+CGPADDR&lt;br /&gt;+CGPADDR: 0,&amp;quot;0000:0000:0000:0000:0000:0035:B7B2:D201&amp;quot;&lt;br /&gt;OK&lt;br /&gt;AT+CGDCONT?&lt;br /&gt;+CGDCONT: 0,&amp;quot;IPV6&amp;quot;,&amp;quot;ims&amp;quot;,&amp;quot;0000:0000:0000:0000:0000:0035:B7B2:D201&amp;quot;,0,0&lt;br /&gt;OK&lt;br /&gt;AT+CGCONTRDP=0&lt;br /&gt;+CGCONTRDP: 0,,&amp;quot;ims&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,,,,,,,1500&lt;br /&gt;OK&lt;br /&gt;AT#XHTTPCCON=1,&amp;quot;google.com&amp;quot;,80&lt;br /&gt;#XHTTPCCON:0&lt;br /&gt;ERROR&lt;br /&gt;AT#XHTTPCREQ=&amp;quot;GET&amp;quot;,&amp;quot;/get?foo1=bar1&amp;amp;foo2=bar2&amp;quot;,&amp;quot;&amp;quot;&lt;br /&gt;ERROR&lt;br /&gt;AT#XHTTPCCON=0,&amp;quot;google.com&amp;quot;,80&lt;br /&gt;ERROR&lt;br /&gt;AT#XHTTPCCON=1,&amp;quot;172.217.161.196&amp;quot;,80&lt;br /&gt;%CESQ: 61,3,19,2&lt;/p&gt;
&lt;p&gt;It this point the nRF9160 appears to hang and needs a hard reset to recover, that or it is waiting for something and not responsive to AT commands. &amp;nbsp;Even while it is hung the&amp;nbsp;%CESQ: 61,3,19,2 continues to be sent from the nRF9160.&lt;/p&gt;
&lt;p&gt;I is running the serial_lte_modem application, unmodified from the&amp;nbsp;v1.4.1 SDK.&lt;br /&gt;There is a v1.4.99-dev1 version, but because of the word &amp;quot;dev&amp;quot; it appears it is not yet stable and in development.&lt;/p&gt;
&lt;p&gt;Is there any other information that I provide that might help troubleshoot this issue?&lt;/p&gt;
&lt;p&gt;I would like to see what is going on inside the modem, is there a way to see a debug output of the modem during the connection process? &amp;nbsp;I found a &amp;quot;trace collector&amp;quot; but I can&amp;#39;t make sense of is captured, it appears a binary dump of sorts.&lt;/p&gt;
&lt;p&gt;Is it possible that the APN is incorrect? &amp;nbsp;The APN information appears to be stored in the nRF9160 since I do not have to enter it. &amp;nbsp;This is for the &amp;quot;KDDI by au&amp;quot; network in Japan. &amp;nbsp;Although this is an MVNO SIM chip, I am not sure of the MVNO company. &amp;nbsp;I can try to search on portions of the number printed on the SIM card, maybe a portion of that number specifies the MVNO company.&lt;/p&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/288173?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 12:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8037abc-ff9d-4d23-a4cb-fad74bee7f1a</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I looked through the SLM implementation, and it does not look like the TCP socket commands supports IPv6, but always assumes IPv4.&lt;/p&gt;
&lt;p&gt;Could you try to use the HTTP commands instead, as they seem to handle IPv6 as well?&lt;/p&gt;
&lt;p&gt;It that works, the problem is the missing IPv6 support in the TCP commands. If it still doesn&amp;#39;t work, setting the DNS server might be necessary.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="aldras"]Should I be able to connect to an IPV4 address if I received an IPV6 address? Will DNS resolutions work correctly?[/quote]
&lt;p&gt;As far as I know, most networks supports routing of IPv4 packets over IPv6, so you should still be able to use IPv4 even if you have an IPv6 connection to the APN.&lt;/p&gt;
&lt;p&gt;DNS also works over IPv6, so that should not be a problem.&lt;/p&gt;
&lt;p&gt;But, in the TCP socket commands, they currently only handle IPv4 addresses, and if the address returned from the DNS lookup does not match an IPv4 address, it will be dropped.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="aldras"]it appears the three dev kit boards I received are engineering samples[/quote]
&lt;p&gt;&amp;nbsp;Yes, that is an engineering sample. You can find the erratas for that version here: &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF9160_EngA/ERR/nRF9160/EngineeringA/latest/err_160.html"&gt;nRF9160 Engineering A Errata&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also, that means you have an old DK version, so you might be affected by this errata: &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF9160_DK_Errata_v0.7.pdf?cp=2_0_6"&gt;nRF9160DK Errata&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So the DK and SiP should not be used for any power or (especially GPS) performance measurements.&lt;/p&gt;
&lt;p&gt;So the best would be to get a new DK.&lt;/p&gt;
&lt;p&gt;But, while it is not really suitable for performance measurements, it should be fine to use it for developments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/287996?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 15:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc47147e-d2a3-4d34-a974-0b47fb16ed9a</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;I forgot to add the procedure I am using to connect to google.com, it is below, copied mostly from&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53208/updating-nrf9160-modem-firmware-through-the-command-line"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/53208/updating-nrf9160-modem-firmware-through-the-command-line&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;AT#XSOCKET=1,1,0&lt;br /&gt;#XSOCKET: 1, 1, 0, 6&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT#XCONNECT=&amp;quot;google.com&amp;quot;,80&lt;br /&gt;#XCONNECT: 1&lt;br /&gt;OK&lt;br /&gt;Send an HTTP request to the server.&lt;/p&gt;
&lt;p&gt;AT#XSEND=1,&amp;quot;HEAD / HTTP/1.1&amp;quot;&lt;br /&gt;#XSEND: 15&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT#XSEND=0,&amp;quot;0D0A&amp;quot;&lt;br /&gt;#XSEND: 2&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT#XSEND=1,&amp;quot;Host: www.google.com:443&amp;quot;&lt;br /&gt;#XSEND: 24&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT#XSEND=0,&amp;quot;0D0A&amp;quot;&lt;br /&gt;#XSEND: 2&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT#XSEND=1,&amp;quot;Connection: close&amp;quot;&lt;br /&gt;#XSEND: 17&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT#XSEND=0,&amp;quot;0D0A0D0A&amp;quot;&lt;br /&gt;#XSEND: 4&lt;br /&gt;OK&lt;br /&gt;Receive the response from the server.&lt;/p&gt;
&lt;p&gt;AT#XRECV&lt;br /&gt;HTTP/1.1 200 OK&lt;br /&gt;Content-Type: text/html; charset=ISO-8859-1&lt;br /&gt;[...]&lt;br /&gt;#XRECV: 1, 576&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;AT#XRECV&lt;br /&gt;[...]&lt;br /&gt;Connection: close&lt;br /&gt;#XRECV: 1, 147&lt;br /&gt;OK&lt;br /&gt;Close the socket.&lt;/p&gt;
&lt;p&gt;AT#XSOCKET=0&lt;br /&gt;#XSOCKET: 0, closed&lt;br /&gt;OK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/287995?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 14:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e90d0083-f8d0-4e16-afee-250a263832b4</guid><dc:creator>aldras</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you for the quick reply.&lt;/p&gt;
&lt;p&gt;I seem to have forgotten to copy some information, here is the output of AT+CGDCONT along with the others listed above.&lt;/p&gt;
&lt;p&gt;%XSYSTEMMODE: 1,0,1,0&lt;br /&gt;+CGDCONT: 0,&amp;quot;IPV6&amp;quot;,&amp;quot;ims&amp;quot;,&amp;quot;0000:0000:0000:0000:0000:000F:3752:C101&amp;quot;,0,0&lt;br /&gt;+CGPADDR: 0,&amp;quot;0000:0000:0000:0000:0000:000F:3752:C101&amp;quot;&lt;br /&gt;+CGCONTRDP: 0,,&amp;quot;ims&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,,,,,,,1500&lt;/p&gt;
&lt;p&gt;With the SYSTEMMODE response, it appears to be in&amp;nbsp;LTE-M1 mode.&lt;/p&gt;
&lt;p&gt;Should I be able to connect to an IPV4 address if I received an IPV6 address? Will DNS resolutions work correctly?&lt;/p&gt;
&lt;p&gt;Are IPV4 and IPV6 DNS servers the same?&lt;/p&gt;
&lt;p&gt;I may have to modify the SLM application to provide a way to add DNS addresses by hand.&lt;/p&gt;
&lt;p&gt;One more concern, it appears the three dev kit boards I received are engineering samples, I am not sure where the company purchased them from. &amp;nbsp;Digikey was out of stock and they found another source. &amp;nbsp;DIgikey is back in stock now though.&lt;br /&gt;The markings on the SiP are as follows:&lt;br /&gt;nRF9160-SCA&lt;br /&gt;BAA-E2.1.5&lt;br /&gt;11LKK&lt;br /&gt;&lt;br /&gt;Can you confirm this? I was able to update the firmware to 1.2.3 so it seems to be okay as long as there are no issues in the silicon for this hardware version. &amp;nbsp;I also have an Actinius Icarus IoT board here, it should have&amp;nbsp;something more recent in it:&lt;br /&gt;nRF9160-SCA&lt;br /&gt;B0&lt;br /&gt;2013E7&lt;/p&gt;
&lt;p&gt;Thank you for your assistance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: not retrieving DNS servers with IPV6</title><link>https://devzone.nordicsemi.com/thread/287957?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 12:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbe185af-941a-49ef-b0e5-1bf4b4aa0150</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there a difference between these two commands? &amp;nbsp;Does it result in the same build?[/quote]
&lt;p&gt;&amp;nbsp;The board name was changed from nrf9160_pca10090(ns) to nrf9160dk_nrf9160(ns).&lt;/p&gt;
&lt;p&gt;For now, the two commands should be the same, but the old name (nrf9160_pca10090(ns)) will eventually be deprecated, so you should use nrf9160dk_nrf9160(ns).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]It appears that this SIM only supports IPV6, is there such a thing?[/quote]
&lt;p&gt;&amp;nbsp;I can&amp;#39;t remember hearing about such SIM at the moment, but it doesn&amp;#39;t sound impossible. Your network provider should be able to answer the question.&lt;/p&gt;
&lt;p&gt;What commands do you use to connect to google.com?&lt;/p&gt;
&lt;p&gt;What is the response to AT+CGDCONT? when you use the &amp;quot;IPv6 SIM&amp;quot;?&lt;/p&gt;
&lt;p&gt;Are you using LTE-M or NB-IoT?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I found information that I can manually specify DNS servers, but I don&amp;#39;t know how to do this with AT commands.[/quote]
&lt;p&gt;&amp;nbsp;There are currently no way of doing this with AT commands.&lt;/p&gt;
&lt;p&gt;Instead, you will have to modify the SLM application.&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>