Wiznet5k WebClient Test found 5500 * Initializing DHCP Initialising DHCP client instance. Requesting DHCP lease. DHCP FSM called with blocking = True FSM initial state is 1 FSM state is INIT. Resetting DHCP state machine. Releasing socket. Socket released. Setting up connection for DHCP. *** Get socket. Allocated socket # 0 + Connection OK, port set. Incrementing transaction ID FSM state is SELECTING. Processing SELECTING or REQUESTING state. Generating DHCP message type 1 0000 01 01 06 00 06 6b 68 01 00 00 00 00 00 00 00 00 .....kh......... 0010 00 00 00 00 00 00 00 00 00 00 00 00 de ad be ef ................ 0020 fe ed 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00e0 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc 00f0 35 01 01 0c 12 57 49 5a 6e 65 74 44 45 41 44 42 5....WIZnetDEADB 0100 45 45 46 46 45 45 44 3d 07 01 de ad be ef fe ed EEFFEED=........ 0110 37 03 01 03 06 33 04 00 76 a7 00 ff 7....3..v... Calculating next retry time and incrementing retries. Receiving a DHCP response. + Beginning to receive… socket_available called on socket 0, protocol 2 Bytes avail. on sock: 308 * Processing 8 bytes of data Bytes avail. on sock: 300 * Processing 300 bytes of data + Bytes read so far 300 0000 02 01 06 00 06 6b 68 01 00 00 00 00 00 00 00 00 .....kh......... 0010 c0 a8 01 d0 c0 a8 01 01 00 00 00 00 de ad be ef ................ 0020 fe ed 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00e0 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc 00f0 35 01 02 36 04 c0 a8 01 01 33 04 00 01 51 80 3a 5..6.....3...Q.: 0100 04 00 00 a8 c0 3b 04 00 01 27 50 01 04 ff ff ff .....;...'P..... 0110 00 1c 04 c0 a8 01 ff 03 04 c0 a8 01 01 06 04 c0 ................ 0120 a8 01 01 ff 00 00 00 00 00 00 00 00 ............ Received 300 bytes 0000 02 01 06 00 06 6b 68 01 00 00 00 00 00 00 00 00 .....kh......... 0010 c0 a8 01 d0 c0 a8 01 01 00 00 00 00 de ad be ef ................ 0020 fe ed 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00e0 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc 00f0 35 01 02 36 04 c0 a8 01 01 33 04 00 01 51 80 3a 5..6.....3...Q.: 0100 04 00 00 a8 c0 3b 04 00 01 27 50 01 04 ff ff ff .....;...'P..... 0110 00 1c 04 c0 a8 01 ff 03 04 c0 a8 01 01 06 04 c0 ................ 0120 a8 01 01 ff 00 00 00 00 00 00 00 00 ............ Parsing DHCP message. Msg Type: 2 Subnet Mask: b'\xff\xff\xff\x00' DHCP Server IP: b'\xc0\xa8\x01\x01' DNS Server IP: b'\xc0\xa8\x01\x01' Gateway IP: b'\xc0\xa8\x01\x01' Local IP: b'\xc0\xa8\x01\xd0' T1: 43200 T2: 75600 Lease Time: 86400 Received message type 2 FSM state is SELECTING with valid OFFER. FSM state is REQUESTING. Processing SELECTING or REQUESTING state. Generating DHCP message type 3 0000 01 01 06 00 06 6b 68 01 00 03 00 00 00 00 00 00 .....kh......... 0010 00 00 00 00 00 00 00 00 00 00 00 00 de ad be ef ................ 0020 fe ed 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00e0 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc 00f0 35 01 03 0c 12 57 49 5a 6e 65 74 44 45 41 44 42 5....WIZnetDEADB 0100 45 45 46 46 45 45 44 3d 07 01 de ad be ef fe ed EEFFEED=........ 0110 37 03 01 03 06 33 04 00 76 a7 00 32 04 c0 a8 01 7....3..v..2.... 0120 d0 36 04 c0 a8 01 01 ff .6...... Calculating next retry time and incrementing retries. Receiving a DHCP response. + Beginning to receive… socket_available called on socket 0, protocol 2 Bytes avail. on sock: 308 * Processing 8 bytes of data Bytes avail. on sock: 300 * Processing 300 bytes of data + Bytes read so far 300 0000 02 01 06 00 06 6b 68 01 00 03 00 00 00 00 00 00 .....kh......... 0010 c0 a8 01 d0 c0 a8 01 01 00 00 00 00 de ad be ef ................ 0020 fe ed 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00e0 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc 00f0 35 01 05 36 04 c0 a8 01 01 33 04 00 01 51 80 3a 5..6.....3...Q.: 0100 04 00 00 a8 c0 3b 04 00 01 27 50 01 04 ff ff ff .....;...'P..... 0110 00 1c 04 c0 a8 01 ff 03 04 c0 a8 01 01 06 04 c0 ................ 0120 a8 01 01 ff 00 00 00 00 00 00 00 00 ............ Received 300 bytes 0000 02 01 06 00 06 6b 68 01 00 03 00 00 00 00 00 00 .....kh......... 0010 c0 a8 01 d0 c0 a8 01 01 00 00 00 00 de ad be ef ................ 0020 fe ed 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00e0 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc 00f0 35 01 05 36 04 c0 a8 01 01 33 04 00 01 51 80 3a 5..6.....3...Q.: 0100 04 00 00 a8 c0 3b 04 00 01 27 50 01 04 ff ff ff .....;...'P..... 0110 00 1c 04 c0 a8 01 ff 03 04 c0 a8 01 01 06 04 c0 ................ 0120 a8 01 01 ff 00 00 00 00 00 00 00 00 ............ Parsing DHCP message. Msg Type: 5 Subnet Mask: b'\xff\xff\xff\x00' DHCP Server IP: b'\xc0\xa8\x01\x01' DNS Server IP: b'\xc0\xa8\x01\x01' Gateway IP: b'\xc0\xa8\x01\x01' Local IP: b'\xc0\xa8\x01\xd0' T1: 43200 T2: 75600 Lease Time: 86400 Received message type 5 FSM state is REQUESTING. Message is ACK, setting FSM state to BOUND. Incrementing transaction ID No timers have expired. Exiting FSM. Releasing socket. Socket released. Found DHCP Server: IP: bytearray(b'\xc0\xa8\x01\xd0') Subnet Mask: bytearray(b'\xff\xff\xff\x00') GW Addr: bytearray(b'\xc0\xa8\x01\x01') DNS Server: b'\xc0\xa8\x01\x01' Chip Version: w5500 MAC Address: ['0xde', '0xad', '0xbe', '0xef', '0xfe', '0xed'] My IP address is: 192.168.1.208 Get host by name *** Get socket. Reserved sockets: [False, False, False, False, False, False, False] W5K socket connect, protocol=2, port=53, ip=192.168.1.1 *** Opening socket 1 * Opening W5k Socket, protocol=2 * DNS: Sending request packet... socket_available called on socket 1, protocol 2 Bytes avail. on sock: 70 * Processing 8 bytes of data Bytes avail. on sock: 62 * Processing 62 bytes of data DNS Packet Received: bytearray(b"v:\x81\x80\x00\x01\x00\x02\x00\x00\x00\x00\x08adafruit\x03com\x00\x00\x01\x00\x01\xc0\x0c\x00\x01\x00\x01\x00\x00\x00`\x00\x04h\x14'\xf0\xc0\x0c\x00\x01\x00\x01\x00\x00\x00`\x00\x04h\x14&\xf0") Parsing packet with ID 0x763a * DNS Answer Count: 2. Type A, class IN found in answer 1 of 2. IPv4 address found : 0x681427f0. *** Closing socket 1 Waiting for close command to process… Waiting for socket to close… Socket has closed. * Resolved IP: bytearray(b"h\x14'\xf0") IP lookup adafruit.com: 104.20.39.240 Fetching text from http://wifitest.adafruit.com/testwifi/index.html Get host by name *** Get socket. Reserved sockets: [False, False, False, False, False, False, False] W5K socket connect, protocol=2, port=53, ip=192.168.1.1 *** Opening socket 1 * Opening W5k Socket, protocol=2 * DNS: Sending request packet... socket_available called on socket 1, protocol 2 Bytes avail. on sock: 63 * Processing 8 bytes of data Bytes avail. on sock: 55 * Processing 55 bytes of data DNS Packet Received: bytearray(b'\xb92\x81\x80\x00\x01\x00\x01\x00\x00\x00\x00\x08wifitest\x08adafruit\x03com\x00\x00\x01\x00\x01\xc0\x0c\x00\x01\x00\x01\x00\x00\x00_\x00\x044\xcf\xdb\x88') Parsing packet with ID 0xb932 * DNS Answer Count: 1. Type A, class IN found in answer 1 of 1. IPv4 address found : 0x34cfdb88. *** Closing socket 1 Waiting for close command to process… Waiting for socket to close… Socket has closed. * Resolved IP: bytearray(b'4\xcf\xdb\x88') *** Get socket. Reserved sockets: [False, False, False, False, False, False, False] Allocated socket # 1. W5K socket connect, protocol=33, port=80, ip=52.207.219.136 *** Opening socket 1 * Opening W5k Socket, protocol=33 SNSR: 21 socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 314 * Processing 1 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 313 * Processing 32 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 281 * Processing 24 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 257 * Processing 29 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 228 * Processing 31 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 197 * Processing 25 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 172 * Processing 20 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 152 * Processing 15 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 137 * Processing 31 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 106 * Processing 30 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 76 * Processing 30 bytes of data ---------------------------------------- socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 46 * Processing 32 bytes of data socket_available called on socket 1, protocol 33 socket_available called on socket 1, protocol 33 Bytes avail. on sock: 14 * Processing 14 bytes of data This is a test of Adafruit WiFi! If you can read this, its working :) ---------------------------------------- Fetching json from http://api.coindesk.com/v1/bpi/currentprice/USD.json Get host by name *** Get socket. Reserved sockets: [True, False, False, False, False, False, False] W5K socket connect, protocol=2, port=53, ip=192.168.1.1 *** Opening socket 2 * Opening W5k Socket, protocol=2 * DNS: Sending request packet... socket_available called on socket 2, protocol 2 Bytes avail. on sock: 106 * Processing 8 bytes of data Bytes avail. on sock: 98 * Processing 98 bytes of data DNS Packet Received: bytearray(b'P\xc8\x81\x80\x00\x01\x00\x04\x00\x00\x00\x00\x03api\x08coindesk\x03com\x00\x00\x01\x00\x01\xc0\x0c\x00\x01\x00\x01\x00\x00\x00<\x00\x04l\x9d\x8e\x80\xc0\x0c\x00\x01\x00\x01\x00\x00\x00<\x00\x04l\x9d\x8ej\xc0\x0c\x00\x01\x00\x01\x00\x00\x00<\x00\x04l\x9d\x8e}\xc0\x0c\x00\x01\x00\x01\x00\x00\x00<\x00\x04l\x9d\x8e\x07') Parsing packet with ID 0x50c8 * DNS Answer Count: 4. Type A, class IN found in answer 1 of 4. IPv4 address found : 0x6c9d8e80. *** Closing socket 2 Waiting for close command to process… Waiting for socket to close… Socket has closed. * Resolved IP: bytearray(b'l\x9d\x8e\x80') *** Get socket. Reserved sockets: [True, False, False, False, False, False, False] Allocated socket # 2. W5K socket connect, protocol=33, port=80, ip=108.157.142.128 *** Opening socket 2 * Opening W5k Socket, protocol=33 SNSR: 23 socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 902 * Processing 1 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 901 * Processing 32 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 869 * Processing 30 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 839 * Processing 24 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 815 * Processing 21 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 794 * Processing 24 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 770 * Processing 32 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 738 * Processing 27 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 711 * Processing 6 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 705 * Processing 31 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 674 * Processing 9 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 665 * Processing 31 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 634 * Processing 22 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 612 * Processing 14 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 598 * Processing 29 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 569 * Processing 27 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 542 * Processing 32 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 510 * Processing 32 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 478 * Processing 90 bytes of data ---------------------------------------- socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 388 * Processing 64 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 324 * Processing 64 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 260 * Processing 64 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 196 * Processing 64 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 132 * Processing 64 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 68 * Processing 64 bytes of data socket_available called on socket 2, protocol 33 socket_available called on socket 2, protocol 33 Bytes avail. on sock: 4 * Processing 4 bytes of data {'time': {'updated': 'Apr 22, 2023 15:50:00 UTC', 'updatedISO': '2023-04-22T15:50:00+00:00', 'updateduk': 'Apr 22, 2023 at 16:50 BST'}, 'disclaimer': 'This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org', 'bpi': {'USD': {'code': 'USD', 'description': 'United States Dollar', 'rate_float': 27535.8, 'rate': '27,535.7822'}}} ---------------------------------------- Done! Code done running.