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.

F28M35H52C: Getting concerto enet_Iwip example to work.

Part Number: F28M35H52C
Other Parts Discussed in Thread: CONTROLSUITE

Hi guys,

I am trying to run and understand enet_Iwip_m3 example from controlSUITE. Below is the link:

/home/controlSUITE/device_support/f28m35x/v208/F28M35x_examples_Master/enet_lwip

So my question is:

How exactly should i test this example. All it does is display the below message on the Terminal (see below) 

Ethernet with lwIP
IP: 169.254.129.0
Netmask: 255.255.0.0
Gateway: 0.0.0.0

And when i try to open this webpage using the above IP on Chrome it buffers for few minutes before it displays site cant be reached message.  

I have connected the Control card and my laptop to a router which has DHCP capability (So i have only these two devices on the Router) . 

Can anyone please let me know how should i get this example working. I did go through some threads related to this topic but none of them had any discussions as of how they got it working. 

  • Preetham,

    I would suggest you to use a wireshark to log the packets on the network.

    The device on power up will send the DHCP requests for an IP, a DHCP server connected in your network or to the host should respond back with an assigned IP address (DHCP Reply). After which you can use this IP address and browse the webpage.

    Looks like in your case the DHCP server didn't respond with a reply and the device went into AUTO IP where it assigned an IP address for itself. Now I'm not sure if your router will forward any packets destined to this Auto IP address or not. Logging the network packets using wireshark and analyzing the packets will help debug what is going on.

    Although I prefer the above method, other things you can do is directly connect the device to your laptop and see if you can get the webpage, if not try to assign the laptop and the device a fixed IP address within same subnet and try the webpage load. 

    Hope this helps.

    Best Regards

    Santosh Athuru

  • Hi Santosh,

    I think your last alternative is what i want try now. As this sounds more straight forward and simple setup.

    Can you please let me know how can i set up a fixed IP on the control card software ? I also should my network mask and gateway address on control card rite ?
  • Preetham,
    please go over the source code, you should be able to find the function which updates the IP address after the DHCP reply is received or after timeouts. You might have to modify the code there on ControlCARD.

    Best Regards
    Santosh Athuru