This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IPNC DM368 Default Settings



Hello Team,

In  DM368  based IP Net Cam , we have a option to  load the default settings (except Network settings i.e  IP address,DNS,gateway, net mask)from the web interface , and to do a factory reset using a h/w switch including the reset of Network settings .

For Both options the sysinfodefault (Global structure) is used !! So Can u please help pointing to exact location, how  the same structure is used  for both loading default and reset settings.

Regards

Divya

  • Hi Divya,

     

    Look at  ipnc_rdk\ipnc_app\sys_server\src\file_mng.c  :    static SysInfo SysInfoDefault =
    and
    ipnc_rdk\ipnc_app\interface\inc\system_default.h

    Regards

     

  • Hello  Marko ,

    Thanks for your quick reply .

    The above two files which u mentioned  we have  referred to it, but finally we are trying  to implement the  DHCP_ENABLE_DEFAULT value to remain the same instead of resetting the value when default configuration option is provided from the web interface .So please provide your inputs for this query .

    Regards

    Divya

  • Maybe you could  look at   ipnc_app\sys_server\src\system_control.c.
    In SystemInit there is a check for DHCP GPIO pin status:  dhcp = ipnc_gio_read(GIO_DHCP);

     

    Regards.

     

  • DHCP GPIO pin status:  dhcp = ipnc_gio_read(GIO_DHCP) -----> to read the h/w pin status .

    But through web interface when we select the load default option (maintenance-->default ) why network related settings like ip address ,DNS ,Net mask,gateway values are not changed to default values as mentioned in system_default.h file .

    Regards

    Divya

  • Before loading default values in web interface, delete file  /tmp/NET.TXT.
    Then restart camera.

    Regards.

  •  In File_mng.c (ipnc_app\sys_server\src)  

    static SysInfo SysInfoDefault =
    {

        DUMMY_DEF,
            {
                {IP_DEFAULT},
                {NETMASK_DEFAULT},
                {GATEWAY_DEFAULT},
                {DNS_DEFAULT},

    }

    Why these above mentioned parameters are placed in Dummy Def ???

    I want to understand architecture-wise how this network related information is not resetting when we give load default option from web interface .Except the above mentioned four parameters all values are getting the default values .So i m curious to know how this is happening code -wise .

    We just have to implement the same concept  for DHCP_ENABLE_DEFAULT value also not to reset when we give load default option from web interface .

    Regards

    Divya