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.

AM2434: AM2434

Part Number: AM2434

Hi Team,

I am using this code ethernetip_adapter_generic_device_rgmii_demo_am243x-lp_r5fss0-0_freertos_ti-arm-clang from the SDK ind_comms_sdk_am243x_09_00_00_03 version in our custom board with AM2434.

I want to change the IP address of the device and make it as static. For this I have changed the code as shown below -

configurationControl.configurationMethod = 0;

In EI_API_ADP_setIpConfig() passed the new ip address 0x0A4ED7D8.

Using this I am able to change the IP address of my custom board. But when I am checking configuration control for the device (IP address 10.78.215.216), it is showing dynamic.

I am not able to understand how this pRuntimeData->adapter.configurationMethod is setting the value and how can we change this pRuntimeData for any other parameter like hostname.

Could you please help me to resolve this issue asap. How can we change IP address and configuration method. 

Thanks,

Surabhi

  • Hi Surabhi,

    Thank you for your query.

    Allow me some time to look into this and get back to you.

    Regards,

    Nitika

  • Hi Surabhi,

    Please find the response from our EIP Stack expert as follows.

    About process of configuration:
    1.  The configuration is read from non-volatile memory (in the example it is EEPROM) to runtime configuration data (pRuntimeData). See EI_APP_CFG_read.
    2.  Then the configuration is applied. See EI_APP_CFG_apply.
    3.  The EI_APP_CFG_setTcpip is called to set communication parameters on side of stack.

    The static IP address is used per default as defined in factory reset values.
    Please look to appRst.c file to structure definition EI_APP_RST_adapterFactoryDefaultValues.

    It’s more convenient to change the values in the structure directly.
    When changed, you need to:
    •   trigger factory reset as remote request on Identity object or
    •   call EI_APP_RST_execute(1) – There is already implemented call inside of EI_APP_CFG_read function. Just change condition the way that EI_APP_RST_execute(1) is called.

    Both possibilities will lead in process to write new factory reset data inside of non-volatile memory.

    Of course you can change the values also via API function:

    EI_API_ADP_setIpConfig

    But I will propose to set it first in pRuntimeData and than use the function.

    Regards
    Archit Dev