Results for "WiFi_scan_T4.ino":
Code:
Set data escan
BSSID - 10:E1:77:00:FD:D6 | Signal: -70 dBm | Channel #1 | SSID: 'catscats2'
BSSID - 0E:E1:77:00:FD:D6 | Signal: -71 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 16:E1:77:00:FD:D6 | Signal: -71 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 98:F7:81:41:DC:45 | Signal: -83 dBm | Channel #1 | SSID: 'Tree House'
BSSID - 96:F7:81:41:DC:45 | Signal: -83 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 62:9C:8E:18:A0:99 | Signal: -23 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 62:9C:8E:18:A0:9B | Signal: -23 dBm | Channel #1 | SSID: 'wswn_xf'
BSSID - 62:9C:8E:18:A0:9E | Signal: -24 dBm | Channel #1 | SSID: '[hidden]'
BSSID - DE:CD:2F:CF:6B:16 | Signal: -25 dBm | Channel #1 | SSID: 'DIRECT-pq-EPSON-XP-6100 Series'
BSSID - 16:E1:77:00:FD:D6 | Signal: -71 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 62:9C:8E:18:A0:99 | Signal: -23 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 62:9C:8E:18:A0:9B | Signal: -23 dBm | Channel #1 | SSID: 'wswn_xf'
BSSID - 62:9C:8E:18:A0:9E | Signal: -21 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 1C:61:B4:1A:0D:AB | Signal: -85 dBm | Channel #2 | SSID: 'Peaches'
BSSID - 1E:61:B4:1A:0D:AB | Signal: -84 dBm | Channel #2 | SSID: 'TP-Link_Guest_0DAC'
BSSID - 3E:61:B4:1A:0D:AB | Signal: -82 dBm | Channel #2 | SSID: '[hidden]'
BSSID - CE:6C:6D:5B:DB:B1 | Signal: -88 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 10:E1:77:00:FD:D6 | Signal: -76 dBm | Channel #1 | SSID: 'catscats2'
BSSID - 0E:E1:77:00:FD:D6 | Signal: -82 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 16:E1:77:00:FD:D6 | Signal: -83 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 62:9C:8E:18:A0:99 | Signal: -26 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 62:9C:8E:18:A0:9B | Signal: -27 dBm | Channel #1 | SSID: 'wswn_xf'
BSSID - 84:C9:B2:61:45:4A | Signal: -29 dBm | Channel #1 | SSID: 'wswn'
BSSID - 62:9C:8E:18:A0:9E | Signal: -28 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 3E:61:B4:1A:0D:AB | Signal: -84 dBm | Channel #2 | SSID: '[hidden]'
BSSID - 10:E1:77:00:FD:D6 | Signal: -74 dBm | Channel #1 | SSID: 'catscats2'
BSSID - 0E:E1:77:00:FD:D6 | Signal: -81 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 16:E1:77:00:FD:D6 | Signal: -81 dBm | Channel #1 | SSID: '[hidden]'
BSSID - 6E:5A:B0:26:E4:F2 | Signal: -82 dBm | Channel #6 | SSID: '[hidden]'
BSSID - 1C:61:B4:1A:0D:AB | Signal: -88 dBm | Channel #2 | SSID: 'Peaches'
BSSID - 1E:61:B4:1A:0D:AB | Signal: -84 dBm | Channel #2 | SSID: 'TP-Link_Guest_0DAC'
BSSID - 3E:61:B4:1A:0D:AB | Signal: -86 dBm | Channel #2 | SSID: '[hidden]'
BSSID - 40:AE:30:A6:5F:C2 | Signal: -88 dBm | Channel #5 | SSID: 'Family Wifi'
BSSID - C6:4F:D5:FB:53:79 | Signal: -93 dBm | Channel #6 | SSID: 'EthicalDilemmaViaTheInternet'
BSSID - BC:9B:68:0C:FA:93 | Signal: -85 dBm | Channel #6 | SSID: 'ryanwifi'
BSSID - BC:9B:68:0C:FA:98 | Signal: -85 dBm | Channel #6 | SSID: '[hidden]'
BSSID - 72:13:01:3F:C3:11 | Signal: -76 dBm | Channel #6 | SSID: 'Hen House'
BSSID - 72:13:01:3F:C3:16 | Signal: -76 dBm | Channel #6 | SSID: '[hidden]'
BSSID - BC:9B:68:0C:FA:96 | Signal: -86 dBm | Channel #6 | SSID: '[hidden]'
BSSID - 6C:5A:B0:16:E4:F2 | Signal: -82 dBm | Channel #6 | SSID: 'TheCatDen'
BSSID - 6E:5A:B0:26:E4:F2 | Signal: -81 dBm | Channel #6 | SSID: '[hidden]'
BSSID - 74:FE:CE:13:0D:8B | Signal: -78 dBm | Channel #9 | SSID: 'Bay Harbor Butcher'
BSSID - 76:FE:CE:23:0D:8B | Signal: -78 dBm | Channel #9 | SSID: '[hidden]'
BSSID - 94:A6:7E:1B:BB:0F | Signal: -87 dBm | Channel #11 | SSID: 'NETGEAR98'
BSSID - 6C:CD:D6:8E:63:CF | Signal: -94 dBm | Channel #10 | SSID: 'Chateau Pueget'
BSSID - 84:00:2D:4F:EE:78 | Signal: -91 dBm | Channel #11 | SSID: 'thehillsarealive'
BSSID - 38:3F:B3:39:6A:16 | Signal: -87 dBm | Channel #11 | SSID: 'CasaGirlypop'
BSSID - C6:4F:D5:C9:74:A9 | Signal: -47 dBm | Channel #11 | SSID: 'wswn_xf'
BSSID - C6:4F:D5:C9:74:AE | Signal: -48 dBm | Channel #11 | SSID: '[hidden]'
BSSID - C6:4F:D5:C9:74:AF | Signal: -45 dBm | Channel #11 | SSID: '[hidden]'
BSSID - 94:A6:7E:1B:BB:0F | Signal: -88 dBm | Channel #11 | SSID: 'NETGEAR98'
BSSID - 38:3F:B3:39:6A:1C | Signal: -89 dBm | Channel #11 | SSID: '[hidden]'
BSSID - 92:00:2D:4F:EE:78 | Signal: -92 dBm | Channel #11 | SSID: '[hidden]'
BSSID - 9A:00:2D:4F:EE:78 | Signal: -91 dBm | Channel #11 | SSID: '[hidden]'
BSSID - BA:5E:71:4B:CF:0E | Signal: -94 dBm | Channel #11 | SSID: 'Home18b23'
Number of scan entries: 56, Unfiltered scan (duplicate and hidden entries shown!)
Wait for next scan...
This is an unfiltered scan in my area showing duplicate entries and hidden entries. Normally the scan wold not show duplicates or hidden entries.
I have added some more entries to the print out. The one I am still trying to find is the security entry. Probably buried in one of the many structures.
Results for "WiFi_join_T4.ino":
Code:
CYW4343W JOIN NETWORK v1.00
CPU speed: 600 MHz
===========================
CYW4343W Card::begin: SDIO2
===========================
Attaching OOB interrupt to pin 34
Enabled CYW4343W bus high speed interface
BUS_IORDY_REG (Ready indication) returned OK
SDHC bus set to 4-bit, speed set to 33MHz
*************
CardID: 43430
*************
Set SRAM_IOCTRL_REG validated
Set SRAM_IOCTRL_REG second validation
Set SRAM_RESETCTRL_REG validated
Uploading firmware data
Uploaded firmware, 419798 of 419798 bytes
Uploading NVRAM data
Uploaded NVRAM, 680 of 680 bytes
Set BAK_CHIP_CLOCK_CSR_REG validated
Set BUS_IORDY_REG validated
Configuring WL_IRQ OOB
==============================
End W4343WCard::begin: SDIO2
==============================
Uploading CLM, size: 7222
CLM uploaded 7222/7222 result: 1
CLM version API: 12.2
Data: 9.10.39
Compiler: 1.29.4
ClmImport: 1.36.3
Creation: 2020-02-16 22:32:13
Initialization Done
MAC address - 70:87:A7:10:64:B5
Firmware wl0: Mar 30 2021 01:12:21 version 7.45.98.118 (7d96287 CY) FWID 01-32059766
Setup complete
To display network activity after network is joined,
set '#define USE_ACTIVITY_DISPLAY false' to true in
the file 'misc_defs.h'.
This can display a pretty heavy spew of information.
Especially when we are being ARP'ed by the host machine and/or multicast is enabled.
The host machine will ARP us approximately every 5 minutes or so.
You will need to set your SSID and passphrase in the
'secrets.h' file located in the src folder.
Press anykey to join network...
In joinNetworks
WiFi CPU running
Set country succesfully
Join events enabled
Joining network wswn
********************* LINK Established *********************
********************* Joined Network ***********************
This shows the ability to link to and join a local network. It establishes a link first using ARP functions then joins.
Setting "#define USE_ACTIVITY_DISPLAY" to true will display some debug activity showing the join process and then subsequent ARP activity from the router. And if multicast is is enabled that will show as well. Again a BIG spew of info.
Results for "ping_T4.ino":
Code:
CPU speed: 600 MHz
===========================
CYW4343W Card::begin: SDIO2
===========================
Attaching OOB interrupt to pin 34
Enabled CYW4343W bus high speed interface
BUS_IORDY_REG (Ready indication) returned OK
SDHC bus set to 4-bit, speed set to 33MHz
*************
CardID: 43430
*************
Set SRAM_IOCTRL_REG validated
Set SRAM_IOCTRL_REG second validation
Set SRAM_RESETCTRL_REG validated
Uploading firmware data
Uploaded firmware, 419798 of 419798 bytes
Uploading NVRAM data
Uploaded NVRAM, 680 of 680 bytes
Set BAK_CHIP_CLOCK_CSR_REG validated
Set BUS_IORDY_REG validated
Configuring WL_IRQ OOB
==============================
End W4343WCard::begin: SDIO2
==============================
Uploading CLM, size: 7222
CLM uploaded 7222/7222 result: 1
CLM version API: 12.2
Data: 9.10.39
Compiler: 1.29.4
ClmImport: 1.36.3
Creation: 2020-02-16 22:32:13
initialization done
MAC address - 70:87:A7:10:64:B5
Firmware wl0: Mar 30 2021 01:12:21 version 7.45.98.118 (7d96287 CY) FWID 01-32059766
Setup complete
In joinNetworks
WiFi CPU running
Set country succesfully
Join events enabled
Joining network wswn
********************* LINK Established *********************
********************* Joined Network ***********************
Round-trip time 100.0 ms
Round-trip time 147.8 ms
Round-trip time 147.9 ms
Round-trip time 148.0 ms
Round-trip time 148.1 ms
Round-trip time 148.2 ms
Round-trip time 148.2 ms
Round-trip time 48.3 ms
Round-trip time 48.4 ms
Round-trip time 148.5 ms
Round-trip time 48.6 ms
Round-trip time 148.7 ms
Round-trip time 48.8 ms
Round-trip time 148.9 ms
Round-trip time 49.0 ms
Round-trip time 149.1 ms
Round-trip time 49.2 ms
Round-trip time 149.3 ms
This is an example of a ping operation using an IP address of a computer of laptop on your local network. Sometimes you may see an "ARP timeout" or "ICMP timeout" This can happen when the network is busy or if "#define PING_RESP_USEC 300000" in the sketch is set to low for a slower network. You can play with this.
Results for "DHCP_T4.ino":
Code:
CPU speed: 600 MHz
===========================
CYW4343W Card::begin: SDIO2
===========================
Attaching OOB interrupt to pin 34
Enabled CYW4343W bus high speed interface
BUS_IORDY_REG (Ready indication) returned OK
SDHC bus set to 4-bit, speed set to 33MHz
*************
CardID: 43430
*************
Set SRAM_IOCTRL_REG validated
Set SRAM_IOCTRL_REG second validation
Set SRAM_RESETCTRL_REG validated
Uploading firmware data
Uploaded firmware, 419798 of 419798 bytes
Uploading NVRAM data
Uploaded NVRAM, 680 of 680 bytes
Set BAK_CHIP_CLOCK_CSR_REG validated
Set BUS_IORDY_REG validated
Configuring WL_IRQ OOB
==============================
End W4343WCard::begin: SDIO2
==============================
Uploading CLM, size: 7222
CLM uploaded 7222/7222 result: 1
CLM version API: 12.2
Data: 9.10.39
Compiler: 1.29.4
ClmImport: 1.36.3
Creation: 2020-02-16 22:32:13
initialization done
MAC address - 70:87:A7:10:64:B5
Firmware wl0: Mar 30 2021 01:12:21 version 7.45.98.118 (7d96287 CY) FWID 01-32059766
TEENSY 4.1 DHCP CLIENT
In joinNetworks
WiFi CPU running
Set country succesfully
Join events enabled
Joining network wswn
********************* LINK Established *********************
********************* Joined Network ***********************
Rx DHCP OFFER 192.168.0.103
Rx DHCP ACK 192.168.0.103 mask 255.255.255.0 router 192.168.0.1 DNS 192.168.0.1
DHCP complete, IP address 192.168.0.103 router 192.168.0.1
Example of using DHCP to get an IP address for the Teensy 4.1. This and join network are used together.
Results for "udp_server_T4.ino":
Code:
CPU speed: 600 MHz
===========================
CYW4343W Card::begin: SDIO2
===========================
Attaching OOB interrupt to pin 34
Enabled CYW4343W bus high speed interface
BUS_IORDY_REG (Ready indication) returned OK
SDHC bus set to 4-bit, speed set to 33MHz
*************
CardID: 43430
*************
Set SRAM_IOCTRL_REG validated
Set SRAM_IOCTRL_REG second validation
Set SRAM_RESETCTRL_REG validated
Uploading firmware data
Uploaded firmware, 419798 of 419798 bytes
Uploading NVRAM data
Uploaded NVRAM, 680 of 680 bytes
Set BAK_CHIP_CLOCK_CSR_REG validated
Set BUS_IORDY_REG validated
Configuring WL_IRQ OOB
==============================
End W4343WCard::begin: SDIO2
==============================
Uploading CLM, size: 7222
CLM uploaded 7222/7222 result: 1
CLM version API: 12.2
Data: 9.10.39
Compiler: 1.29.4
ClmImport: 1.36.3
Creation: 2020-02-16 22:32:13
initialization done
MAC address - 70:87:A7:10:64:B5
Firmware wl0: Mar 30 2021 01:12:21 version 7.45.98.118 (7d96287 CY) FWID 01-32059766
T4 DHCP client
In joinNetworks
WiFi CPU running
Set country succesfully
Join events enabled
Joining network wswn
UDP server on port 8080
********************* LINK Established *********************
********************* Joined Network ***********************
Rx DHCP OFFER 192.168.0.103
Rx DHCP ACK 192.168.0.103 mask 255.255.255.0 router 192.168.0.1 DNS 192.168.0.1
Client 192.168.0.105: Teensy 4.1 <---------- Results from client computer on local network.
Message sent from local computer through UDP to the Teensy 4.1.
Code:
wwatson@wwatsond1:~$ echo -n "Teensy 4.1" | nc -4u -w1 192.168.0.103 8080
Test 1 <------- Message sent back through UDP to local computer
wwatson@wwatsond1:~$ echo -n "Teensy 4.1" | nc -4u -w1 192.168.0.103 8080
Test 2<------- Message sent back through UDP to local computer
wwatson@wwatsond1:~$
wwatson@wwatsond1:~$ echo -n "Teensy 4.1" | nc -4u -w1 192.168.0.103 8080
Test 3<------- Message sent back through UDP to local computer
wwatson@wwatsond1:~$
This shows the Teensy 4.1 being used as a UDP server on a local network.
Results for "dns_T4.ino":
Code:
CPU speed: 600 MHz
===========================
CYW4343W Card::begin: SDIO2
===========================
Attaching OOB interrupt to pin 34
Enabled CYW4343W bus high speed interface
BUS_IORDY_REG (Ready indication) returned OK
SDHC bus set to 4-bit, speed set to 33MHz
*************
CardID: 43430
*************
Set SRAM_IOCTRL_REG validated
Set SRAM_IOCTRL_REG second validation
Set SRAM_RESETCTRL_REG validated
Uploading firmware data
Uploaded firmware, 419798 of 419798 bytes
Uploading NVRAM data
Uploaded NVRAM, 680 of 680 bytes
Set BAK_CHIP_CLOCK_CSR_REG validated
Set BUS_IORDY_REG validated
Configuring WL_IRQ OOB
==============================
End W4343WCard::begin: SDIO2
==============================
Uploading CLM, size: 7222
CLM uploaded 7222/7222 result: 1
CLM version API: 12.2
Data: 9.10.39
Compiler: 1.29.4
ClmImport: 1.36.3
Creation: 2020-02-16 22:32:13
initialization done
MAC address - 70:87:A7:10:64:B5
Firmware wl0: Mar 30 2021 01:12:21 version 7.45.98.118 (7d96287 CY) FWID 01-32059766
TEENSY 4.1 DNS TEST
In joinNetworks
WiFi CPU running
Set country succesfully
Join events enabled
Joining network wswn
********************* LINK Established *********************
********************* Joined Network ***********************
Rx DHCP OFFER 192.168.0.103
Rx DHCP ACK 192.168.0.103 mask 255.255.255.0 router 192.168.0.1 DNS 192.168.0.1
DHCP complete, IP address 192.168.0.103 router 192.168.0.1
**********************************************
Tx DNS 1 query: www.pjrc.com type A
**********************************************
Rx DNS 1 query, 2 resp: www.pjrc.com type A
www.pjrc.com type CNAME
pjrc.com type A 162.254.150.250
**********************************************
Press anykey to continue...
An example of DNS usage and response. It will process compressed DNS responses as well as multi IP responses. See below:
Code:
**********************************************
Tx DNS 1 query: pool.ntp.org type A
**********************************************
Rx DNS 1 query, 4 resp: pool.ntp.org type A
pool.ntp.org type A 144.202.0.197
pool.ntp.org type A 23.157.160.168
pool.ntp.org type A 23.186.168.128
pool.ntp.org type A 66.42.71.197
**********************************************
Press anykey to continue...
and:
Code:
**********************************************
Tx DNS 1 query: www.raspberrypi.org type A
**********************************************
Rx DNS 1 query, 2 resp: www.raspberrypi.org type A
www.raspberrypi.org type A 172.66.149.158
www.raspberrypi.org type A 104.20.23.243
**********************************************
Press anykey to continue...
Results from "web_server_T4.ino":
Code:
CPU speed: 600 MHz
===========================
CYW4343W Card::begin: SDIO2
===========================
Attaching OOB interrupt to pin 34
Enabled CYW4343W bus high speed interface
BUS_IORDY_REG (Ready indication) returned OK
SDHC bus set to 4-bit, speed set to 33MHz
*************
CardID: 43430
*************
Set SRAM_IOCTRL_REG validated
Set SRAM_IOCTRL_REG second validation
Set SRAM_RESETCTRL_REG validated
Uploading firmware data
Uploaded firmware, 419798 of 419798 bytes
Uploading NVRAM data
Uploaded NVRAM, 680 of 680 bytes
Set BAK_CHIP_CLOCK_CSR_REG validated
Set BUS_IORDY_REG validated
Configuring WL_IRQ OOB
==============================
End W4343WCard::begin: SDIO2
==============================
Uploading CLM, size: 7222
CLM uploaded 7222/7222 result: 1
CLM version API: 12.2
Data: 9.10.39
Compiler: 1.29.4
ClmImport: 1.36.3
Creation: 2020-02-16 22:32:13
initialization done
MAC address - 70:87:A7:10:64:B5
Firmware wl0: Mar 30 2021 01:12:21 version 7.45.98.118 (7d96287 CY) FWID 01-32059766
T4 DHCP client
In joinNetworks
WiFi CPU running
Set country succesfully
Join events enabled
Joining network wswn
Web server on port 80
Rx DHCP OFFER 192.168.0.103
Rx DHCP ACK 192.168.0.103 mask 255.255.255.0 router 192.168.0.1 DNS 192.168.0.1
TCP socket 0 Rx GET / HTTP/1.1 <------ From browser
Host: 192.168.0.103
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.9
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Priority: u=0, i
TCP socket 0 Rx GET / HTTP/1.1 <------ From browser
Host: 192.168.0.103
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.9
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Priority: u=0, i
Using a web browser we send:
Code:
https://192.168.0.103 <----- address assigned by DHCP server on my router.
Change to match your IP address assigned to your T4.1.
Sending:
Code:
https://192.168.0.103
https://192.168.0.103
should return to the browser from the Teensy 4.1:
You can also send "
http://192.168.0.103/status.txt/" and the browser will display:
Code:
{"state":0,"nsamp":0,"xsamp":10000,"xrate":100000}
There are other things you can send to the browser from the sketch, but those are not working. Probably will not pursue that any further.
Have to decide what the next steps are going to be as far as adapting the main driver to other network libraries.
That's enough for now. Sorry for the long post
