Skip to content

* Received DHCP Message is not OFFER #17

Closed
@bytelinker

Description

@bytelinker

Hi dherrada,
with
adafruit-circuitpython-grandcentral_m4_express-en_US-5.3.0.uf2 and
adafruit-circuitpython-grandcentral_m4_express-en_US-5.4.0-beta.0.uf2

I run:
import board
import busio
from digitalio import DigitalInOut
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
import adafruit_requests as requests
cs = DigitalInOut(board.D10)
spi_bus = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)

Initialize ethernet interface with DHCP

eth = WIZNET5K(spi_bus, cs,is_dhcp=True,debug=True)

I get

  • Received DHCP Message is not OFFER,
    and
  • DNS ERROR: Invalid flags, 33155
  • DNS ERROR: Failed to resolve DNS response, retrying...
  • socket_available called with protocol 2
  • socket_available called with protocol 2

But the adafruit_wiznet5k answers ping.

On DNS server (Windows Server 2008R2) I get:
11,05/22/20,14:07:52,renew,10.70.74.45,WIZnetÌ¡¥´¦¦.xxxx.local,DEADCDEFFEED,,2701393920,0,,,

There shouldn't be the non ascii symbols (tÌ¡¥´¦¦).

It would be great if the hostname could be set to custom values.
eth = WIZNET5K(spi_bus, cs,is_dhcp=True,debug=True,hostname='mydevice')

Where to find the documentation, to set the config for static IP, DNS, Route, Subnet mask, please?

Regards bytelinker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions