Problem with SNTP while using Static IP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

When I use SN8200xx as WICED_USE_EXTERNAL_DHCP_SERVER, I get synct to SNTP server.

When I use SB8200xx as static IP WICED_USE_STATIC_IP, I can not get any data from the SNTP server.

The connection my network is OK in both cases.

I work with version wiced sdk ver 2.4.1

Example:

static const wiced_ip_setting_t MNap_ip_settings =

{

    INITIALISER_IPV4_ADDRESS( .ip_address, MAKE_IPV4_ADDRESS( 10,0,0,9)),

    INITIALISER_IPV4_ADDRESS( .netmask,    MAKE_IPV4_ADDRESS( 255,0,0,0)),

    INITIALISER_IPV4_ADDRESS( .gateway,    MAKE_IPV4_ADDRESS( 10,0,0,138)),

};

//=============================================================================================

void application_start(void)

{

     /* Initialise the device and WICED framework */

    wiced_init( );

    /* Bring up the network interface */

   //Work

   // wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL );

  //Do not work

   wiced_network_up( WICED_STA_INTERFACE, WICED_USE_STATIC_IP, &MNap_ip_settings);

     sntp_start_auto_time_sync( 1 * DAYS );

Why SNTP server do not response while I use Static IP ?

thanks

0 Likes
12 Replies
Anonymous
Not applicable

I'd like to make sure that MNap_ip_settings works properly. Please try ping first.

Is SNTP packet on the air when static IP?

Comparing air captures between DHCP and static would help.

0 Likes
Anonymous
Not applicable

Ping work fine in both.

Only SNTP do not work.

How can I check the packet on the air ?

Do you have any phone application for that ?

0 Likes
Anonymous
Not applicable

Do you have wireless capture tool like AirPcap?

Some useful tools for Wi-Fi debugging

If SNTP server runs on your local PC(Windows/Linux), Wireshark can get wired capture on the PC.

WICED <---(wireless)---> AP <---(wired)--->PC(SNTP server)

0 Likes
Anonymous
Not applicable

I do not have wireless capture tool.

Why Broadcom engineers do not check this bug in there software. Its very easy to observe this bug.

any way..

Thanks for your support.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I did try to reproduce this issue. But I couldn't.

SNTP library gets time from server when static IP.

Used code and console log is attached (WICED SDK 2.4.1).

Could I have console log for both DHCP and static IP?

0 Likes
Anonymous
Not applicable

I try to run your example

It does not work . The only different is that I need to change the security line in wifi_config_dct.h to WPA2 so I can join to my wireless network.

//#define CLIENT_AP_SECURITY   WICED_SECURITY_OPEN

#define CLIENT_AP_SECURITY   WICED_SECURITY_WPA2_MIXED_PSK

When I switch to WICED_USE_EXTERNAL_DHCP_SERVER, everything is OK.

Is it related to Security ? You use open network , and use my secured network.

My log file is:

Starting Wiced v2.4.1

Platform SN8200x initialised

Started ThreadX v5.5

Initialising NetX_Duo v5.6

Creating Packet pools

WWD SDIO interface initialised

WLAN MAC Address : 00:0B:6C:41:84:DB

WLAN Firmware    : wl0: Feb 10 2014 11:29:55 version 5.90.230.7 FWID 01-555f783e

Joining : nisani

Failed to join: nisani

Joining : nisani

Successfully joined : nisani

Setting IPv6 link-local address

IPv4 network ready IP: 10.0.0.9

Getting NTP time... DNS lookup start @ 6890

DNS ends @ 21894

failed, trying again...

DNS lookup start @ 21898

DNS ends @ 36900

failed, trying again...

DNS lookup start @ 36904

0 Likes

Is there a way to confirm this is specific to the module?  Are you both using the same module?

0 Likes
Anonymous
Not applicable

I only have several SN8200x modules.

0 Likes
Anonymous
Not applicable

Hi michanisani

Did you solved this issue ? I'm also facing the same one here......

0 Likes
Anonymous
Not applicable

Hi dmiya

I'm also facing the same situvation, cant use SNTP while using the STATIC IP , but with the DHCP (external) it is working fine...

Please help...

0 Likes
Anonymous
Not applicable

Hi All

        i am also getting the same problem, can any one provide me the solution,  but here i am using different platform.

My setting:  #define CLIENT_AP_SECURITY   WICED_SECURITY_WPA2_MIXED_PSK

/* Bringup the network interface */

    wiced_network_up( WICED_STA_INTERFACE,WICED_USE_EXTERNAL_DHCP_SERVER, NULL );

logs:

Starting WICED v3.1.2

Platform BCM9WCDPLUS114 initialised

Started ThreadX v5.6

Initialising NetX_Duo v5.7_sp1

Creating Packet pools

WWD SDIO interface initialised

WLAN MAC Address : FC:4D:D4:FF:C3:7A

WLAN Firmware    : wl0: Nov  7 2014 16:03:45 version 5.90.230.12 FWID 01-4b73cbac

Starting WICED Bluetooth

Bluetooth MAC Address : FC:4D:D4:ED:0D:30

Bluetooth Firmware    : BCM20702B0_002.001.014.0487.0000_Generic_UART_Class1_20MHz.hcd

Initialising WICED SmartBridge ...

Joining : SMART

Successfully joined : SMART

Obtaining IPv4 address via DHCP

Setting IPv6 link-local address

IPv4 network ready IP: 10.100.10.64

Getting NTP time...

failed, trying again...

failed, trying again...

failed, trying again...

Give up getting NTP time

skerr yfang@murata.com hhyogo keith ghouse

0 Likes
Anonymous
Not applicable

Since the problem seem to be between SNTP support on Static Vs Dynamic IP, I am not sure if there is any module specific issue that we can look into.

0 Likes