-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not receiving DHCP Offer Packet #9
Comments
I also just checked the same sketch with the UIPEthernet library. With it, it seems to work...
|
yes. EthernetENC requests the DHCP response to be send as unicast, not as broadcast, because broadcasts are filter out (except of ARP). |
Ah I see. Adding |
this puts constant load on the memory and processing. every broadcast packet on network is stored in RX buffer and processed. and all this for one DHCP packet. |
Would there be a way to enable Broadcast only when needed? Like, enable it just before sending DHCP and disabeling it afterwards? |
why does you DHCP server send the response as broadcast? for me the unicast didn't work only when I used an Ethernet to WiFi adapter.
You could try it. The datasheet doesn't constrain when the filter can be set. But I didn't test. I didn't put time into this since I didn't know how common is the issue. |
I don't know. I'm using a Huawei Router in it's default config.
I'll try when I find some time. Since the router I'm using is the one provided by my ISP, I think the issue might be more common, than expected. |
Where do you added this peace of code? Edit: I added it to src/utility/Enc28J60Network.cpp:90 And DHCP starts to work fine. |
hi @Craft4Cube, I am working on interfacing the ENC with a nucleo using mbed, I am currently stuck because its not working, using DHCP, would you please share with me exactly where I need to edit in the code so that DHCP can work? |
For anyone interested in the change I made, you can find it here: NetCube-Systems-Austria@faaf3f2 |
I've just tried to use the EthernetENC library with the DHCP Address Printer example, and get the following output:
But I can see in Wireshark that the module is sending it's DHCP Discover, and the Router is responding with a DHCP Offer.
I also check in the DHCP.c file. It seems that
_dhcpUdpSocket.parsePacket()
inDhcpClass::parseDHCPResponse
never get's a packet.The text was updated successfully, but these errors were encountered: