<?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>Time from NTP server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80189/time-from-ntp-server</link><description>Hi, 
 Im using nrf9160 based custom board, nrf sdk 1.5.1. 
 I want to get the time from NTP servers, for that i connected to CATM1 n/w, connected to NTP server using UDP Protocol, but im not understanding what is the request i should make for NTP server</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Oct 2021 08:30:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80189/time-from-ntp-server" /><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332754?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 08:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb961659-b804-4090-90e5-c59103288e0e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Rajender"]&lt;p&gt;How can i know that?&lt;/p&gt;
&lt;p&gt;I tried sending at%xtime=1, its just sending ok, nothing more than that, so how can i make sure that my SDR supports this?&lt;/p&gt;[/quote]
&lt;p&gt;In the top of the at command doc, it states how this information should be sent over:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/xtime_set.html?cp=2_1_7_9_0"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/xtime_set.html?cp=2_1_7_9_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could ask the vendor of your SDR software suite to hear if this feature is supported.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332700?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 18:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65ecbebd-3bed-4487-8fec-d06d9fdcea20</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/80189/time-from-ntp-server/332654#332654"]The network will provide the time using XTIME. Does your SDR support this?[/quote]
&lt;p&gt;How can i know that?&lt;/p&gt;
&lt;p&gt;I tried sending at%xtime=1, its just sending ok, nothing more than that, so how can i make sure that my SDR supports this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Rajender&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332654?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6105e3ff-fc65-4c68-8b9c-12720a602772</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Rajender"]note: Iam not on actual catm1 network, i am connecting through SDR(simulation based n/w station).[/quote]
&lt;p&gt;The network will provide the time using XTIME. Does your SDR support this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332609?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 12:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0ea53f-5587-45a7-bfe4-139301e94e39</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was connecting the network through main only, and please take a look at my network connecting function.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; int nRF_Radio_configure(void) {
  int err = 0;
  int reqTAU, reqActiveTime;
  float NetWrkEdrx = 0.0, Pagingtw = 0.0, ReqEdrxVal = 0.0;

#if defined(CONFIG_BSD_LIBRARY)
  if (IS_ENABLED(CONFIG_LTE_AUTO_INIT_AND_CONNECT)) {
    /* Do nothing, modem is already turned on */
    /* and connected */
    goto connected;
  }

  LOG_INF(&amp;quot;Connecting to LTE network.&amp;quot;);
  LOG_INF(&amp;quot;This may take several minutes.&amp;quot;);

#if defined(CONFIG_LWM2M_CARRIER)
  /* Wait for the LWM2M carrier library to configure the */
  /* modem and set up the LTE connection. */
  k_sem_take(&amp;amp;lte_connected, K_FOREVER);
#else /* defined(CONFIG_LWM2M_CARRIER) */

  err = setSystemMode();
  if (err) {
    LOG_ERR(&amp;quot;System mode set:%d \n&amp;quot;, err);
    return err;
  }

  err = enablePsm(false);

  if (err) {
    LOG_ERR(&amp;quot;PSM not enabled \n&amp;quot;);
    return err;
  }

  err = eDRXsetting(false);

  if (err) {
    LOG_ERR(&amp;quot;eDRX not enabled \n&amp;quot;);
    return err;
  }

  err = lte_lc_init_and_connect();

  if (err) {
    LOG_ERR(&amp;quot;LTE link could not be established.\n&amp;quot;);
    return err;
  } else {

    u8_radio_lte_conn_flag = true;
    LOG_INF(&amp;quot;Connected to LTE network.\n&amp;quot;);
  }
#endif /* defined(CONFIG_LWM2M_CARRIER) */

connected:

  if (RADIO_PSM_MODE == u8_Psm_eDrx_Status_flag) {
    err = lte_lc_psm_get(&amp;amp;reqTAU, &amp;amp;reqActiveTime);
    if (err &amp;lt; 0) {
      LOG_INF(&amp;quot;Error reading PSM parameter: %d Errno: %d\n&amp;quot;, err, errno);
    }
  }

  if (RADIO_EDRX_MODE == u8_Psm_eDrx_Status_flag) {

    err = readEdrxParameter(&amp;amp;NetWrkEdrx, &amp;amp;Pagingtw, &amp;amp;ReqEdrxVal);
    if (err &amp;lt; 0) {
      LOG_INF(&amp;quot;Error reading eDrx parameter: %d,Errno: %d\n&amp;quot;, err, errno);
    }
  }

#endif /* defined(CONFIG_BSD_LIBRARY) */
  return 0;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this is my prj file, here i already done this,&amp;nbsp;&lt;span&gt;CONFIG_LTE_AUTO_INIT_AND_CONNECT=n.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_GPIO=n
CONFIG_GPIO_NRFX=y
CONFIG_GPIO_NRF_P0=y
CONFIG_NRFX_GPIOTE=y

CONFIG_NRFX_RTC=y
CONFIG_NRFX_RTC0=y
CONFIG_NRFX_RTC1=y
CONFIG_NRFX_RTC2=y

CONFIG_UART_ASYNC_API=y

CONFIG_NEWLIB_LIBC=y
#######################################
# SNTP
CONFIG_SNTP=y

# enable to use thread names
CONFIG_THREAD_NAME=y

# Network
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_NATIVE=n

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_PSM_REQ_RPTAU=&amp;quot;00000011&amp;quot;
CONFIG_LTE_PSM_REQ_RAT=&amp;quot;00100001&amp;quot;
CONFIG_LTE_PDP_CMD=y
CONFIG_LTE_LOCK_BANDS=n
CONFIG_LTE_LOCK_BAND_MASK=&amp;quot;10000001000000001100&amp;quot;
CONFIG_LTE_PDP_CONTEXT=&amp;quot;0,\&amp;quot;IP\&amp;quot;,\&amp;quot;default\&amp;quot;&amp;quot;

# BSD library
CONFIG_BSD_LIBRARY=y

# AT host library
CONFIG_AT_HOST_LIBRARY=y
#CONFIG_UART_INTERRUPT_DRIVEN=y

# Stacks and heaps
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_HEAP_MEM_POOL_SIZE=1024

# Disable native network stack to save some memory
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n
CONFIG_NET_UDP=y
CONFIG_NET_TCP=y

###gpio related###
#CONFIG_GPIO=y

###UART CONFIGURATION###
#Enables serial driver
#CONFIG_SERIAL=y

#Needed for enabling ISRs
#CONFIG_UART_INTERRUPT_DRIVEN=y

#UART RAM buffer allocation, see TXD.MAXCNT on nRF9160
CONFIG_UART_0_NRF_TX_BUFFER_SIZE=1024
CONFIG_UART_2_NRF_TX_BUFFER_SIZE=1024

###power management###
CONFIG_DEVICE_POWER_MANAGEMENT=y

###RTOS###
#enables polling
CONFIG_POLL=y

#PP---???
#CONFIG_DYNAMIC_OBJECTS=y

#enables ring buffer
CONFIG_RING_BUFFER=y

#this macro enabled for u8_t to work
CONFIG_DEPRECATED_ZEPHYR_INT_TYPES=y


#CONFIG_NRFX_UARTE=y
#CONFIG_NRFX_UARTE0=y
#CONFIG_NRFX_UARTE2=y


CONFIG_ADC=y
#CONFIG_ADC_0=y
#CONFIG_ADC_NRFX_SAADC=y

#SPI
CONFIG_SPI=y
CONFIG_SPI_3=y
CONFIG_SPI_NRFX=y
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SPI_NOR=y


#I2C
CONFIG_I2C=y
CONFIG_I2C_NRFX=y
CONFIG_I2C_1=y



#DebugLogs
CONFIG_BOOT_BANNER=n
###################################
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

CONFIG_PRINTK=y
CONFIG_CONSOLE=y

CONFIG_LOG=y

CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_IMMEDIATE=y

CONFIG_SERIAL=y
CONFIG_STDOUT_CONSOLE=y

CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=y

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;note: Iam not on actual catm1 network, i am connecting through SDR(simulation based n/w station).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332494?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 07:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26f0e59e-721a-4b41-9795-4b7dd2b23285</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Rajender"]&lt;p&gt;Now i can get the time from ntp server (time1.google.com) using sntp, but i want to get the time from at%xtime=1 also,&lt;/p&gt;
&lt;p&gt;I am sending this %xtime command after network connected and got ip address, but still im getting nothing but &amp;quot;OK&amp;quot; as a response, what would be the reason for this?&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m glad to hear that you got ntp running.&lt;/p&gt;
&lt;p&gt;The %XTIME&amp;nbsp;enables&amp;nbsp;a notification, so it is important that you&amp;nbsp;enable this notification early in the process.&lt;/p&gt;
&lt;p&gt;This can require that you enable the notification prior to connecting to the modem, ie. by setting&amp;nbsp;CONFIG_LTE_AUTO_INIT_AND_CONNECT=n in your prj.conf and connecting to the network in main, something similar to this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.7.0/samples/nrf9160/mqtt_simple/src/main.c#L506-L545"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.7.0/samples/nrf9160/mqtt_simple/src/main.c#L506-L545&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332460?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 06:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed1c16a4-973a-4401-857c-05141357a5fa</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Now i can get the time from ntp server (time1.google.com) using sntp, but i want to get the time from at%xtime=1 also,&lt;/p&gt;
&lt;p&gt;I am sending this %xtime command after network connected and got ip address, but still im getting nothing but &amp;quot;OK&amp;quot; as a response, what would be the reason for this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Rajender&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332319?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 11:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c79e2b-2da5-4740-8864-7bdba4d677c9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Rajender"]&lt;p&gt;In this example i haven&amp;#39;t seen any network connectivity code, so where i can find the same, and how i can check my IP address after network connection.&lt;/p&gt;
&lt;p&gt;Now my Control not even entering into src/main file, may be its waiting for the Connectivity, so how can i check that?&lt;/p&gt;[/quote]
&lt;p&gt;When&amp;nbsp;CONFIG_LTE_AUTO_INIT_AND_CONNECT=y is set, it will wait in the lte_lc driver on boot-up before main is entered. Once main is entered, the link shall be up and running.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Rajender"]In this example i haven&amp;#39;t seen any network connectivity code, so where i can find the same, and how i can check my IP address after network connection.[/quote]
&lt;p&gt;&amp;nbsp;You can use this library to obtain this information:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/libraries/modem/modem_info.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/libraries/modem/modem_info.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but then I would also recommend that you look at&amp;nbsp;date_time&amp;nbsp;library as well, which I linked to in my former post.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332245?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 07:29:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ab641b-8506-428d-84ba-9f9646cc29b9</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;after adding &amp;quot;CONFIG_LTE_AUTO_INIT_AND_CONNECT=y&amp;quot; my prj.conf file looks like this.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NCS_SAMPLES_DEFAULTS=y
CONFIG_SERIAL=n

# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n

# Modem library
CONFIG_NRF_MODEM_LIB=y

# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# SNTP
CONFIG_SNTP=y

CONFIG_LTE_AUTO_INIT_AND_CONNECT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In this example i haven&amp;#39;t seen any network connectivity code, so where i can find the same, and how i can check my IP address after network connection.&lt;/p&gt;
&lt;p&gt;Now my Control not even entering into src/main file, may be its waiting for the Connectivity, so how can i check that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332244?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 07:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf11a5fd-864a-424b-97d3-c5d60242bcc5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;My apologies. I forgot to add:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_AUTO_INIT_AND_CONNECT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332243?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 06:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0a4129f-7913-4db0-9c91-0def6d48c8a4</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried again, but now its getting error as &amp;quot;Failed to send over UDP socket -1&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time from NTP server</title><link>https://devzone.nordicsemi.com/thread/332149?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 12:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa2c714c-5630-4b53-960d-0b066956ca51</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You have two options for fetching NTP:&lt;/p&gt;
&lt;p&gt;* Use the DATE_TIME library:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/libraries/others/date_time.html?highlight=date_time"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/libraries/others/date_time.html?highlight=date_time&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can find a reference implementation in asset_tracker (look at &amp;quot;date_time&amp;quot; references):&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/applications/asset_tracker/src/main.c"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/applications/asset_tracker/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;* Use SNTP directly, by adjusting the configuration.&lt;/p&gt;
&lt;p&gt;Replace the sntp_client/prj.conf with these lines:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/samples/nrf9160/udp/prj.conf#L7-L29"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/samples/nrf9160/udp/prj.conf#L7-L29&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then set the IP to the ntp server here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/net/sockets/sntp_client/src/config.h#L17-L19"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/net/sockets/sntp_client/src/config.h#L17-L19&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;example: ntp.uio.no resolves to ipv4 address &amp;quot;129.240.2.6&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;i have tried sntp_client example (zephyr/samples/net/sockets/sntp_client) but when i run my code its directly going into fault_s.S after spm_jump() function.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This is due to the default configuration of the zephyr samples, where they assume native network. You have to adjust the configuration as mentioned above.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>