-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
Using this as a man-in-the-middle driver.
With 5f501fd loaded on the board.
The w5500 device I am using is a rando external w5500 i found for cheap:

(kapton tape on the bottom for safety)
With dhcp:
Adafruit CircuitPython 7.3.3 on 2022-08-29; Raspberry Pi Pico with rp2040
>>> import board
>>> from drivers.driver_w5500spi import driver_w5500spi
>>> a = driver_w5500spi()
>>> a.connect(board.GP11, board.GP12, board.GP10, board.GP13, debug=True)
w5500spi: cs&spi created
My Link is: 0
My Link is: 0
My Link is: 0
My Link is: 0
My Link is: 0
* Initializing DHCP
(hang forever)
Without dhcp:
Adafruit CircuitPython 7.3.3 on 2022-08-29; Raspberry Pi Pico with rp2040
>>> import board
>>> from drivers.driver_w5500spi import driver_w5500spi
>>> a = driver_w5500spi()
>>> a.connect(board.GP11, board.GP12, board.GP10, board.GP13, ip="192.168.1.240", gateway="192.168.1.1", dns="192.168.1.230", debug=True)
w5500spi: cs&spi created
My Link is: 0
My Link is: 0
My Link is: 0
My Link is: 0
My Link is: 0
w5500spi: Interface created
w5500spi: Interface detection done (w5500)
w5500spi: Link ok
* Initializing DHCP
*** Get socket
Allocated socket #4
* Listening on port=68, ip=0.0.0.0
*** Opening socket 4
* Opening W5k Socket, protocol=2
* w5k socket connect, protocol=2, port=67, ip=255.255.255.255
*** Opening socket 4
* Opening W5k Socket, protocol=2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "driver_w5500spi", line 1, in connect
File "adafruit_wiznet5k", line 1, in set_dhcp
File "adafruit_wiznet5k_dhcp", line 1, in request_dhcp_lease
File "adafruit_wiznet5k_dhcp", line 1, in _dhcp_state_machine
File "adafruit_wiznet5k_socket", line 1, in connect
File "adafruit_wiznet5k", line 1, in socket_connect
IndexError: list index out of range
>>>
Same on cp 8.0-latest.
Metadata
Metadata
Assignees
Labels
No labels