Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 2114d75

Browse files
authored
v1.8.14-3 fixes UDP issue with Nano_RP2040_Connect
### Releases v1.8.14-3 1. Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core. Check [UDP not running with WiFiNINA library (Example WiFiUdpSendReceiveString) #376](earlephilhower/arduino-pico#376)
1 parent 1d93972 commit 2114d75

31 files changed

+133
-37
lines changed

README.md

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
* [1. AdvancedWebServer on Nano_33_IoT](#1-advancedwebserver-on-nano_33_iot)
7575
* [2. WiFiWebClientRepeating on MBED NANO_RP2040_CONNECT](#2-wifiwebclientrepeating-on-mbed-nano_rp2040_connect)
7676
* [3. WiFiWebClientRepeating on ARDUINO_NANO_RP2040_CONNECT](#3-wifiwebclientrepeating-on-arduino_nano_rp2040_connect)
77+
* [4. WiFiUdpNtpClient on MBED NANO_RP2040_CONNECT](#4-WiFiUdpNtpClient-on-mbed-nano_rp2040_connect)
78+
* [5. WiFiUdpNtpClient on ARDUINO_NANO_RP2040_CONNECT](#5-WiFiUdpNtpClient-on-arduino_nano_rp2040_connect)
7779
* [Debug](#debug)
7880
* [Troubleshooting](#troubleshooting)
7981
* [TO DO](#to-do)
@@ -528,7 +530,7 @@ For example
528530
529531
```
530532
Start WiFiNINA CheckFirmwareVersion on SAMD_NANO_33_IOT
531-
WiFiNINA_Generic v1.8.14-2
533+
WiFiNINA_Generic v1.8.14-3
532534
Firmware version installed: aaa.bbb.ccc
533535
Latest firmware version available : aaa.bbb.ccc
534536

@@ -1127,7 +1129,7 @@ The following are screen shot and debug terminal output when running example [Ad
11271129

11281130
```
11291131
Starting AdvancedServer on SAMD_NANO_33_IOT
1130-
WiFiNINA_Generic v1.8.14-2
1132+
WiFiNINA_Generic v1.8.14-3
11311133
[NN] ===============================
11321134
[NN]
11331135
Used/default SPI pinout:
@@ -1280,7 +1282,7 @@ The following is debug terminal output when running example [WiFiWebClientRepeat
12801282

12811283
```
12821284
Start WiFiWebClientRepeating on MBED NANO_RP2040_CONNECT
1283-
WiFiNINA_Generic v1.8.14-2
1285+
WiFiNINA_Generic v1.8.14-3
12841286
Attempting to connect to SSID: HueNet1
12851287
SSID: HueNet1
12861288
IP Address: 192.168.2.86
@@ -1373,7 +1375,7 @@ The following is debug terminal output when running example [WiFiWebClientRepeat
13731375

13741376
```
13751377
Start WiFiWebClientRepeating on ARDUINO_NANO_RP2040_CONNECT
1376-
WiFiNINA_Generic v1.8.14-2
1378+
WiFiNINA_Generic v1.8.14-3
13771379
Attempting to connect to SSID: HueNet1
13781380
SSID: HueNet1
13791381
IP Address: 192.168.2.86
@@ -1442,6 +1444,62 @@ Connection: close
14421444
14431445
```
14441446

1447+
---
1448+
1449+
#### 4. [WiFiUdpNtpClient](examples/WiFiUdpNtpClient) on ARDUINO_NANO_RP2040_CONNECT
1450+
1451+
The following is debug terminal output when running example [WiFiUdpNtpClient](examples/WiFiUdpNtpClient) on NANO_RP2040_CONNECT board with [arduino-pico core](https://github.com/earlephilhower/arduino-pico), using this [WiFiNINA_Generic Library](https://github.com/khoih-prog/WiFiNINA_Generic)
1452+
1453+
```
1454+
Start WiFiUdpNtpClient on ARDUINO_NANO_RP2040_CONNECT
1455+
WiFiNINA_Generic v1.8.14-3
1456+
Attempting to connect to SSID: HueNet1
1457+
Connected to WiFi
1458+
SSID: HueNet1
1459+
IP Address: 192.168.2.86
1460+
Signal strength (RSSI):-16 dBm
1461+
1462+
Starting connection to server...
1463+
Packet received
1464+
Seconds since Jan 1 1900 = 3849967470
1465+
Unix time = 1640978670
1466+
The UTC time is 19:24:30
1467+
Packet received
1468+
Seconds since Jan 1 1900 = 3849967481
1469+
Unix time = 1640978681
1470+
The UTC time is 19:24:41
1471+
Packet received
1472+
Seconds since Jan 1 1900 = 3849967492
1473+
Unix time = 1640978692
1474+
The UTC time is 19:24:52
1475+
```
1476+
1477+
---
1478+
1479+
#### 5. [WiFiUdpNtpClient](examples/WiFiUdpNtpClient) on MBED NANO_RP2040_CONNECT
1480+
1481+
The following is debug terminal output when running example [WiFiUdpNtpClient](examples/WiFiUdpNtpClient) on NANO_RP2040_CONNECT board with [ArduinoCore-mbed core](https://github.com/arduino/ArduinoCore-mbed), using this [WiFiNINA_Generic Library](https://github.com/khoih-prog/WiFiNINA_Generic)
1482+
1483+
```
1484+
Start WiFiUdpNtpClient on MBED NANO_RP2040_CONNECT
1485+
WiFiNINA_Generic v1.8.14-3
1486+
Attempting to connect to SSID: HueNet1
1487+
Connected to WiFi
1488+
SSID: HueNet1
1489+
IP Address: 192.168.2.86
1490+
Signal strength (RSSI):-19 dBm
1491+
1492+
Starting connection to server...
1493+
Packet received
1494+
Seconds since Jan 1 1900 = 3849967854
1495+
Unix time = 1640979054
1496+
The UTC time is 19:30:54
1497+
Packet received
1498+
Seconds since Jan 1 1900 = 3849967865
1499+
Unix time = 1640979065
1500+
The UTC time is 19:31:05
1501+
1502+
```
14451503

14461504
---
14471505
---

changelog.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@
3838

3939
## Changelog
4040

41+
### Releases v1.8.14-3
42+
43+
1. Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core. Check [UDP not running with WiFiNINA library (Example WiFiUdpSendReceiveString) #376](https://github.com/earlephilhower/arduino-pico/issues/376)
44+
45+
4146
### Releases v1.8.14-2
4247

43-
1. Add support to `Nano_RP2040_Connect` using `arduino-pico` core
48+
1. Add support to `Nano_RP2040_Connect` using `arduino-pico` core. Check [Problem with WiFiNINA library for Arduino Nano Connect (__has_include directive) #373](https://github.com/earlephilhower/arduino-pico/issues/373) and [how i can run Example "ConnectWithWPA" #375](https://github.com/earlephilhower/arduino-pico/issues/375)
4449
2. Update `Packages' Patches`
4550

4651
### Releases v1.8.14-1

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WiFiNINA_Generic",
3-
"version": "1.8.14-2",
3+
"version": "1.8.14-3",
44
"keywords": "wifi, wi-fi, WiFiNINA, NINA-B302-ublox, W101, W102, shield, Teensy, SAM DUE, SAMD, STM32, nRF52, rpi-pico, rp2040, Credentials, Manager, nano-rp2040-connect, raspberry-pi-pico, mega, 32u4",
55
"description": "Enables network connection (local and Internet) and WiFiStorage for SAM DUE, SAMD21, SAMD51, Teensy, AVR (328P, 32u4, 16u4, etc.), Mega, STM32F/L/H/G/WB/MP1, nRF52, NINA_B302_ublox, NINA_B112_ublox, RP2040-based boards, etc. in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2, Nano 33 IoT, Nano RP2040 Connect",
66
"authors": [

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=WiFiNINA_Generic
2-
version=1.8.14-2
2+
version=1.8.14-3
33
author=Arduino, Khoi Hoang <[email protected]>
44
maintainer=Khoi Hoang <[email protected]>
55
sentence=Enables network connection (local and Internet) and WiFiStorage for SAM DUE, SAMD21, SAMD51, Teensy, AVR (328P, 32u4, 16u4, etc.), Mega, STM32F/L/H/G/WB/MP1, nRF52, NINA_B302_ublox, NINA_B112_ublox, RP2040-based boards, etc. in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2, Nano 33 IoT, Nano RP2040 Connect

src/WiFiClient_Generic.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-2
27+
Version: 1.8.14-3
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
@@ -51,6 +51,7 @@
5151
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
5252
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5353
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
54+
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
5455
***********************************************************************************************************************************/
5556

5657
#define _WIFININA_LOGLEVEL_ 1

src/WiFiClient_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-2
27+
Version: 1.8.14-3
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
@@ -51,6 +51,7 @@
5151
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
5252
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5353
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
54+
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
5455
***********************************************************************************************************************************/
5556

5657
#pragma once

src/WiFiNINA_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-2
27+
Version: 1.8.14-3
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
@@ -51,6 +51,7 @@
5151
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
5252
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5353
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
54+
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
5455
***********************************************************************************************************************************/
5556

5657
#pragma once

src/WiFiNINA_Pinout_Generic.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-2
27+
Version: 1.8.14-3
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
@@ -51,6 +51,7 @@
5151
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
5252
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5353
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
54+
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
5455
***********************************************************************************************************************************/
5556

5657
#pragma once
@@ -105,6 +106,12 @@
105106

106107
#if ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRWIFI1010) || \
107108
defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(ARDUINO_ARDUINO_NANO_RP2040_CONNECT))
109+
110+
#if defined(ARDUINO_ARDUINO_NANO_RP2040_CONNECT)
111+
// Fix UDP issue for arduino-pico core
112+
#define NINA_GPIOIRQ (D20) // actual 2, NINA_GPIO0
113+
#define NINA_RESETN (D24) // actual 3, NINA_RESETN
114+
#endif
108115

109116
#warning Using default WiFiNINA settings
110117

src/WiFiSSLClient_Generic.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-2
27+
Version: 1.8.14-3
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
@@ -51,6 +51,7 @@
5151
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
5252
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5353
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
54+
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
5455
***********************************************************************************************************************************/
5556

5657
#include "WiFiSSLClient_Generic.h"

src/WiFiSSLClient_Generic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
License along with this library; if not, write to the Free Software
2525
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2626
27-
Version: 1.8.14-2
27+
Version: 1.8.14-3
2828
2929
Version Modified By Date Comments
3030
------- ----------- ---------- -----------
@@ -51,6 +51,7 @@
5151
1.8.13 K Hoang 03/08/2021 Sync with WiFiNINA v1.8.13 : new FW v1.4.8. Add support to ADAFRUIT_MATRIXPORTAL_M4_EXPRESS
5252
1.8.14-1 K Hoang 25/11/2021 Fix examples to support ATmega4809 such as UNO_WIFI_REV2 and NANO_EVERY
5353
1.8.14-2 K Hoang 31/12/2021 Add support to Nano_RP2040_Connect using arduino-pico core
54+
1.8.14-3 K Hoang 31/12/2021 Fix issue with UDP for Nano_RP2040_Connect using arduino-pico core
5455
***********************************************************************************************************************************/
5556

5657
#pragma once

0 commit comments

Comments
 (0)