• AVR Freaks

Hot!DHCP Problem

Author
prasanth R
Starting Member
  • Total Posts : 75
  • Reward points : 0
  • Joined: 2017/01/10 04:46:37
  • Location: 0
  • Status: offline
2019/11/11 22:26:48 (permalink)
0

DHCP Problem

Dear all,
    I'm using PIC18F97J60 microcontroller for ethernet communication and the stack version is V2010 october 19. I need to use DHCP for this controller. I tried from different routers to assign IP address to controller. But most of the time controller didn't gets an IP address.
    I need to know is there any configuration or rules to gets an IP address from DHCP server except assigning board as a DHCP Client. Please assist me to solve this issue.
 
Thanks & Regards,
Prasanth.
#1

14 Replies Related Threads

    Jim Nickerson
    User 452
    • Total Posts : 6376
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: DHCP Problem 2019/11/12 09:01:08 (permalink)
    +1 (1)
    prasanth R
    Dear all,
        I'm using PIC18F97J60 microcontroller for ethernet communication and the stack version is V2010 october 19. I need to use DHCP for this controller. I tried from different routers to assign IP address to controller. But most of the time controller didn't gets an IP address.
        I need to know is there any configuration or rules to gets an IP address from DHCP server except assigning board as a DHCP Client. Please assist me to solve this issue.
     
    Thanks & Regards,
    Prasanth.


    I am unclear as to where the DHCP server is located ?
    #2
    prasanth R
    Starting Member
    • Total Posts : 75
    • Reward points : 0
    • Joined: 2017/01/10 04:46:37
    • Location: 0
    • Status: offline
    Re: DHCP Problem 2019/11/12 21:16:34 (permalink)
    0
    DHCP Server located in a router. Actually the problem was happened in one the france hotel. I'm in India. Is there any issue due to this. Because it was working here but not at there.
    #3
    prasanth R
    Starting Member
    • Total Posts : 75
    • Reward points : 0
    • Joined: 2017/01/10 04:46:37
    • Location: 0
    • Status: offline
    Re: DHCP Problem 2019/11/12 21:27:19 (permalink)
    0
    I need one more clarification. This Product is 10Mbps standard so is it works with other speeds like 100/1000Mbps or not?
    #4
    ric
    Super Member
    • Total Posts : 24638
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: DHCP Problem 2019/11/12 21:28:03 (permalink)
    +2 (2)
    Are you saying that your device is able to get an IP address from a DHCP server on your own network, but it failed when connected to a network in this French hotel?
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    Jim Nickerson
    User 452
    • Total Posts : 6376
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: DHCP Problem 2019/11/13 10:02:02 (permalink)
    +1 (1)
    prasanth R
     
        I need to know is there any configuration or rules to gets an IP address from DHCP server except assigning board as a DHCP Client.

    If you are not running the DHCP Client module on your PIC you would have to code the sequence to get an IP address from the DHCP server just as the DHCP Client does.
    I am guessing the default IP address is within your Home LAN DHCP range making it seem to work at home.
    #6
    Jim Nickerson
    User 452
    • Total Posts : 6376
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: DHCP Problem 2019/11/13 10:05:03 (permalink)
    0
    prasanth R
    I need one more clarification. This Product is 10Mbps standard so is it works with other speeds like 100/1000Mbps or not?


    this depends on the other devices on the 100/1000 Mbps network.
    Most 100/1000 Mbps are backwards compatible with 10 Mbps.
    Do note the PIC18F97J60 is not auto polarity.
    #7
    prasanth R
    Starting Member
    • Total Posts : 75
    • Reward points : 0
    • Joined: 2017/01/10 04:46:37
    • Location: 0
    • Status: offline
    Re: DHCP Problem 2019/11/13 20:44:36 (permalink)
    0
    Okay Thank you very much for your response.
    #8
    prasanth R
    Starting Member
    • Total Posts : 75
    • Reward points : 0
    • Joined: 2017/01/10 04:46:37
    • Location: 0
    • Status: offline
    Re: DHCP Problem 2019/11/13 21:59:02 (permalink)
    0
    Dear ric,
            Yes. This is my exact problem. How to solve this?
     
    Thanks & Regards,
    Prasanth
    post edited by prasanth R - 2019/11/13 22:00:34
    #9
    ric
    Super Member
    • Total Posts : 24638
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: DHCP Problem 2019/11/13 22:10:11 (permalink)
    0
    I assume Jim's suggestion in post#6 describes your problem.
    ARE you running a DHCP client?
    If not, how do you expect to get an IP address in a "strange" network?
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #10
    prasanth R
    Starting Member
    • Total Posts : 75
    • Reward points : 0
    • Joined: 2017/01/10 04:46:37
    • Location: 0
    • Status: offline
    Re: DHCP Problem 2019/11/13 22:15:05 (permalink)
    0
    I'm running DHCP Client in my controller. So its works on my network but not in French hotel.
    #11
    ric
    Super Member
    • Total Posts : 24638
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: DHCP Problem 2019/11/13 22:20:08 (permalink)
    +1 (1)
    As Jim said, are you sure it is working?
    What if you change your DHCP server to use a different pool of addresses, does it still work?
     
    e.g. shift your entire network from 192.168.0.xxx to 192.168.2.xxx
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #12
    prasanth R
    Starting Member
    • Total Posts : 75
    • Reward points : 0
    • Joined: 2017/01/10 04:46:37
    • Location: 0
    • Status: offline
    Re: DHCP Problem 2019/11/13 22:27:30 (permalink)
    0
    Yes actually i tried different IP address class 10.10.xxx.xxx and 192.168.1.xxx. Its works fine here.
    #13
    Aussie Susan
    Super Member
    • Total Posts : 3638
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: DHCP Problem 2019/11/14 18:19:17 (permalink)
    +1 (1)
    One point of clarification please: so you are in India, I assume with a device that is running your software.
    For the test in the French hotel, is this the SAME device running the SAME firmware or is it is another device that us running your software - correct?
    What debugging capabilities do you have built into your firmware, especially during the French hotel tests?
    What do you mean by 'it doesn't get an IP address'? There are a number of stages in the DCHP protocol - do you have any idea which one is failing?
    Susan
    #14
    prasanth R
    Starting Member
    • Total Posts : 75
    • Reward points : 0
    • Joined: 2017/01/10 04:46:37
    • Location: 0
    • Status: offline
    Re: DHCP Problem 2019/11/14 20:57:21 (permalink)
    0
    Dear Aussie Susan,
            SAME device with a SAME firmware(what i was tested here) was tested in a French Hotel. I have PICKIT3 debugger.
            We didn't debug the device in a french hotel. We thought it's worked here so it should work at there also. Just we tried to connect our device with their network and if it is gets an IP address it can send data to cloud. But that was not happened. We tried TCPIP Discover Utility that also didn't discovers an IP Address. Then we tried static IP which was suitable in that network that also not work.
           Finally we tried to share the mobile hotspot to our laptop wifi and wifi shared to ethernet. It was worked once. But while working we gets a call and that time internet was interrupted. Then we never gets a connection back.
          Is there any testing tools are available for check our device to whether it can gets an IP address from all kinds of DHCP Server or not?
     
    Thanks & Regards,
    Prasanth.
    #15
    Jump to:
    © 2019 APG vNext Commercial Version 4.5