+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Newbie level 4
    Points: 22, Level: 1

    Join Date
    Apr 2019
    Posts
    5
    Helped
    0 / 0
    Points
    22
    Level
    1

    Ethernet(ENC28J60) Interfaced Arduino - DHCP Failed

    Hi All,
    I would like to try the following project on my machine, however when I run the simulation I got a DHCP failed message.
    https://askembedded.blogspot.com/201...68603009236965

    Can anyone help with an advise what should I install to my machine to make it happen?

    Thank you.

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 79,832, Level: 68
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,069
    Helped
    4372 / 4372
    Points
    79,832
    Level
    68

    Re: Ethernet(ENC28J60) Interfaced Arduino - DHCP Failed

    Simulations are often wrong!

    Did you change the line:
    #define STATIC 0 // set to 1 to disable DHCP (adjust myip/gwip values below)
    as advised in the program? also check your MAC isn't blacklisted by your router.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 4
    Points: 22, Level: 1

    Join Date
    Apr 2019
    Posts
    5
    Helped
    0 / 0
    Points
    22
    Level
    1

    Re: Ethernet(ENC28J60) Interfaced Arduino - DHCP Failed

    Hi Brian,
    Thank you for the quick reply.
    I tried in both ways, also set up my IP address for my network.
    I checked my router, there is no MAC address blacklisted.
    I have only 1 alert message from Proteus while simulating which says "Simulation is not running in real time due to excessive CPU load."
    Would it be possible that this is causing me this issue?
    If not the only thing what I can think of is that Proteus is unable to get connection with my LAN card through WINCAP

    - - - Updated - - -

    Just to clarify.
    #define STATIC 0
    - On the console it gives me a DHCP Failed message, and the IP, GW, DNS are 0.0.0.0

    #define STATIC 1
    - On the console it gives me back the IP and the GW what I defined, however the DNS comes back with 0.0.0.0, and the simulation is unavailable through the web-browser.



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 79,832, Level: 68
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,069
    Helped
    4372 / 4372
    Points
    79,832
    Level
    68

    Re: Ethernet(ENC28J60) Interfaced Arduino - DHCP Failed

    I can't see why the CPU should be overloaded and I suspect it is a limitation of Proteus. I do not use Windows so I cannot use Proteus to check myself but as far as I know, the ENC28J60 should do all the connecting to the network by itself and as the interface is SPI, meaning it is driven from the CPU, I doubt it is capable of overloading it.

    Can you try real hardware to confirm the simulation?

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  5. #5
    Newbie level 4
    Points: 22, Level: 1

    Join Date
    Apr 2019
    Posts
    5
    Helped
    0 / 0
    Points
    22
    Level
    1

    Re: Ethernet(ENC28J60) Interfaced Arduino - DHCP Failed

    Quote Originally Posted by betwixt View Post
    Can you try real hardware to confirm the simulation?
    The real hardware is on it's way, due to Easter is will take a few days to arrive :)
    I wanted to simulate it first to have a bit or prep before the real project.
    I will send my update once the hardware arrived.

    - - - Updated - - -

    My additional details:
    - OS: WIN10
    - WIN10CAP installed
    - Arduino loaded to Proteus https://www.theengineeringprojects.c...%20Proteus.rar
    - Hex file loaded to the board

    1st resolution:
    - VirtualBox installed
    - Windows XP SP3 added
    - I made the same steps as under the Win10
    - It is working, getting the IP address and giving the base HTML on the preset IP



--[[ ]]--