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.

AM2432: Create a local network without disable firewall

Part Number: AM2432
Other Parts Discussed in Thread: LP-AM243, SYSCONFIG

Hi team,

My customer want to create a local network using LP-Am243, and the SDK cloud says sometimes need to disable the firewall to ensure connecting. Do we have a workaround which no need to disable the firewall?

BR

Sirui

  • Hi Sirui,

    Is customer facing the issue in connecting to evm?

    Though there is a way if they can connect the evm to their office network and connect the PC also on same network. They should be able to use it.

  • Hi  Nilabh Anand,

     I  Connect a ethernet cable to the AM243X-LP from host PC .If our customers use it the same way, may it be necessary to close the firewall? The article mentioned that sometimes it is necessary to disable the firewall when creating a network with a router, and did not mention Connecting a ethernet cable to the AM243X-LP from host PC. Is it possible to Connect a ethernet cable to the AM243X-LP from host PC  the firewamay also require to be closed? If that's the case, is there a way for the Ethernet program on the AM243 to avoid the firewall without the need for customers to disable 。

  • Hi  

     I  Connect a ethernet cable to the AM243X-LP from host PC .If our customers use it the same way, may it be necessary to close the firewall?

    Can you tell me are you using static ip or DHCP mode?

    If you are running some DHCP server on your PC then it is not necessary to disable firewall.

  • HI Nilabh Anand,

    I am using DHCP mode, but static IP will be enabled later ,Do I need to disable the firewall to enable static IP? How to avoid the firewall without the need for customers to disable it??

  • Hi  

    I have tried it on my end but I do not see the requirement on my end to disable the firewall.

    Is customer facing some issue? If yes, please ask them to try static ip mode.

  • Hi ,Nilabh Anand

    1.Nilabh Anand said :

         I have tried it on my end but I do not see the requirement on my end to disable the firewall.

        Which document are you looking at? Please provide it to me

    2.Nilabh Anand said :

       Is customer facing some issue? If yes, please ask them to try static ip mode.

       What do you mean is that static mode does not require closing the firewall?

    3.Regarding AM243X, Do you have a document analyzing the LWIP TCP Server code? Please provide it to me。 is there a guidance document for generating some  peripheral code through the sysconfig tool, including the generation of Ethernet TCP code? Please provide it to me.

                                                                                                                                                                                                                                    Thanks!

  • 1.Nilabh Anand said :

         I have tried it on my end but I do not see the requirement on my end to disable the firewall.

        Which document are you looking at? Please provide it to me

    I was mentioning regarding my test setup.

    2.Nilabh Anand said :

       Is customer facing some issue? If yes, please ask them to try static ip mode.

       What do you mean is that static mode does not require closing the firewall?

    Yes that should be the case.

    3.Regarding AM243X, Do you have a document analyzing the LWIP TCP Server code? Please provide it to me。 is there a guidance document for generating some  peripheral code through the sysconfig tool, including the generation of Ethernet TCP code? Please provide it to me.

    We have the LWIP TCP server example present in SDK at: https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/EXAMPLES_ENET_LWIP_CPSW_TCPSERVER.html

    Please refer to example code located at  mcu_plus_sdk_am243x_08_06_00_38/examples/networking/lwip/enet_cpsw_tcpserver

  • HI,Nilabh Anand

    About mcu_plus_sdk_am243x_08_06_00_38/ examples/networking/lwip/enet_cpsw_tcpserver, How to Enable Static Mode?How to modify a static IP address?

  • e2e.ti.com/.../am2434 -cpsw-dual-mac-mode   ,我看到一个关于enet_lwip_cpsw的例子,但是我需要的是enet_cpsw_tcpserver,我们需要一个以太网端口作为服务器端或客户端,server mode  is more important

  • Please modify App_setupNetif in app_main.c as follows

    static void App_setupNetif()
    {
        ip4_addr_t ipaddr[2], netmask[2], gw[2];
        uint32_t i;

         DebugP_log("Starting lwIP, local interface IP is dhcp-enabled\r\n");

         for (uint32_t i = 0U; i < ENET_SYSCFG_NETIF_COUNT; i++)
         {
            ip4_addr_set_zero(&gw[i]);
            ip4_addr_set_zero(&ipaddr[i]);
            ip4_addr_set_zero(&netmask[i]);
            IP4_ADDR((&gw[i]), 192,168,1,1);
            IP4_ADDR((&ipaddr[i]), 192,168,1,(i+1));
            IP4_ADDR((&netmask[i]), 255,255,255,0);
             /* Open the netif and get it populated*/
            LwipifEnetApp_netifOpen(NETIF_INST_ID0 + i, &ipaddr[i], &netmask[i], &gw[i]);
             g_pNetif[NETIF_INST_ID0 + i] = LwipifEnetApp_getNetifFromId(NETIF_INST_ID0);
             netif_set_status_callback(g_pNetif[NETIF_INST_ID0 + i], App_netifStatusChangeCb);
             netif_set_link_callback(g_pNetif[NETIF_INST_ID0 + i], App_netifLinkChangeCb);
             netif_set_up(g_pNetif[NETIF_INST_ID0 + i]);
        }
         LwipifEnetApp_startSchedule(g_pNetif[ENET_SYSCFG_DEFAULT_NETIF_IDX]);
    }