Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

WIZnet5K can't obtain IP from OpenWRT.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

WIZnet5K can't obtain IP from OpenWRT.

by water35 on Fri Sep 11, 2020 9:56 am

CircuitPython 6.0.0 Alpha-3,
(use 1.4.1 library from : https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k/releases/download/1.4.1/adafruit-circuitpython-wiznet5k-py-1.4.1.zip)

initialise WIZnet5K using
Code: Select all | TOGGLE FULL SIZE
eth = WIZNET5K(spi_bus, cs, debug = True)
to enable debug.

Connect WIZnet5K to Mikrotik router, obtain IP success,

then connect to OpenWRT router, return these message below (I tested use PC can obtain IP from this OpenWRT):
How to know what's going wrong?

Wiznet5k WebClient Test
* Initializing DHCP
*** Get socket
Allocated socket #0
* w5k socket connect, protocol=2, port=67, ip=255.255.255.255
*** Opening socket 0
* Opening W5k Socket, protocol=2
* DHCP: Discover
* DHCP: Parsing OFFER
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
* socket_available called with protocol 2
Bytes avail. on sock: 308
* Processing 8 bytes of data
* Received DHCP Message is not OFFER
*** Closing socket #0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wiznet5k_simpletest.py", line 17, in <module>
File "adafruit_wiznet5k/adafruit_wiznet5k.py", line 196, in __init__
AssertionError: Failed to configure DHCP Server!


I'm not skill to configure router, so most parameter use by default, screenshot below:

Image
Image

water35
 
Posts: 22
Joined: Sun Mar 17, 2019 7:12 am

Re: WIZnet5K can't obtain IP from OpenWRT.

by siddacious on Tue Sep 22, 2020 5:09 pm

I'll forward this to someone who may be able to help!

siddacious
 
Posts: 302
Joined: Fri Apr 21, 2017 3:09 pm

Please be positive and constructive with your questions and comments.