12 Replies Latest reply on Aug 10, 2015 9:57 AM by ghmoc_2134696

    Problem with SNTP while using Static IP

      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