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

Commit d581e81

Browse files
authored
v1.4.0 to fix bug and clean-up
### Releases v1.4.0 1. Fix bug. 2. Clean up 3. Update `Packages' Patches`
1 parent 010aeaf commit d581e81

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

README.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ This library is based on, modified from:
130130
## Prerequisites
131131

132132
1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
133-
2. [`ArduinoCore-mbed mbed_portenta core 3.3.0+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino **Portenta_H7** boards, such as **Portenta_H7 Rev2 ABX00042, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
133+
2. [`ArduinoCore-mbed mbed_portenta core 3.4.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino **Portenta_H7** boards, such as **Portenta_H7 Rev2 ABX00042, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
134134
3. [`Portenta_H7_AsyncTCP library v1.4.0+`](https://github.com/khoih-prog/Portenta_H7_AsyncTCP) for Portenta_H7 using `Vision-shield Ethernet` or `Murata WiFi`. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/Portenta_H7_AsyncTCP.svg?)](https://www.ardu-badge.com/Portenta_H7_AsyncTCP)
135135

136136
---
@@ -162,12 +162,12 @@ The best and easiest way is to use `Arduino Library Manager`. Search for `Porten
162162

163163
#### 1. For Portenta_H7 boards using Arduino IDE in Linux
164164

165-
**To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh).
165+
**To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/3.4.1/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/portenta_post_install.sh).
166166

167167
Then run the following command using `sudo`
168168

169169
```
170-
$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0
170+
$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1
171171
$ chmod 755 portenta_post_install.sh
172172
$ sudo ./portenta_post_install.sh
173173
```
@@ -180,9 +180,9 @@ This will create the file `/etc/udev/rules.d/49-portenta_h7.rules` as follows:
180180
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="035b", GROUP="plugdev", MODE="0666"
181181
```
182182

183-
Supposing the ArduinoCore-mbed core version is 3.3.0. Now only one file must be copied into the directory:
183+
Supposing the ArduinoCore-mbed core version is 3.4.1. Now only one file must be copied into the directory:
184184

185-
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0/portenta_post_install.sh`
185+
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/portenta_post_install.sh`
186186

187187
Whenever a new version is installed, remember to copy this files into the new version directory. For example, new version is x.yy.zz
188188

@@ -192,13 +192,13 @@ This file must be copied into the directory:
192192

193193
#### 2. To fix compile error relating to dns_gethostbyname and LwIP stack
194194

195-
**To be able to compile, run on Portenta_H7 boards**, you have to copy the whole [mbed_portenta Packages_Patches](Packages_Patches/arduino/hardware/mbed_portenta/3.3.0) directory into Arduino mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0).
195+
**To be able to compile, run on Portenta_H7 boards**, you have to copy the whole [mbed_portenta Packages_Patches](Packages_Patches/arduino/hardware/mbed_portenta/3.4.1) directory into Arduino mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1).
196196

197-
Supposing the Arduino mbed_portenta version is 3.3.0. These file must be copied into the directory:
197+
Supposing the Arduino mbed_portenta version is 3.4.1. These file must be copied into the directory:
198198

199-
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0/libraries/SocketWrapper/src/MbedUdp.h`
200-
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0/libraries/SocketWrapper/src/MbedUdp.cpp`
201-
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.3.0/cores/arduino/src/mbed/connectivity/lwipstack/include/lwipstack/lwipopts.h`
199+
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/libraries/SocketWrapper/src/MbedUdp.h`
200+
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/libraries/SocketWrapper/src/MbedUdp.cpp`
201+
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/cores/arduino/src/mbed/connectivity/lwipstack/include/lwipstack/lwipopts.h`
202202

203203
---
204204
---
@@ -262,15 +262,15 @@ Please take a look at other examples, as well.
262262

263263
#### 1. File [AsyncHTTPRequest.ino](examples/Ethernet/AsyncHTTPRequest/AsyncHTTPRequest.ino)
264264

265-
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/dbd43517901ed8c33235642b5a5232d5299756ba/examples/Ethernet/AsyncHTTPRequest/AsyncHTTPRequest.ino#L44-L174
265+
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/010aeaffbb5bfeec4fc8520cf5155ae79c52020c/examples/Ethernet/AsyncHTTPRequest/AsyncHTTPRequest.ino#L44-L174
266266

267267

268268
---
269269

270270
#### 2. File [defines.h](examples/Ethernet/AsyncHTTPRequest/defines.h)
271271

272272

273-
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/dbd43517901ed8c33235642b5a5232d5299756ba/examples/Ethernet/AsyncHTTPRequest/defines.h#L23-L68
273+
https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/010aeaffbb5bfeec4fc8520cf5155ae79c52020c/examples/Ethernet/AsyncHTTPRequest/defines.h#L23-L68
274274

275275

276276
---
@@ -283,42 +283,42 @@ https://github.com/khoih-prog/Portenta_H7_AsyncHTTPRequest/blob/dbd43517901ed8c3
283283
```
284284
Start AsyncHTTPRequest on PORTENTA_H7_M7
285285
Portenta_H7_AsyncTCP v1.4.0
286-
Portenta_H7_AsyncHTTPRequest v1.3.1
286+
Portenta_H7_AsyncHTTPRequest v1.4.0
287287
Using mac index = 15
288288
Connected! IP address: 192.168.2.101
289289
Request sent
290290
**************************************
291291
abbreviation: EDT
292292
client_ip: aaa.bbb.ccc.ddd
293-
datetime: 2022-10-18T15:07:55.344362-04:00
294-
day_of_week: 2
295-
day_of_year: 291
293+
datetime: 2022-10-20T23:04:21.101705-04:00
294+
day_of_week: 4
295+
day_of_year: 293
296296
dst: true
297297
dst_from: 2022-03-13T07:00:00+00:00
298298
dst_offset: 3600
299299
dst_until: 2022-11-06T06:00:00+00:00
300300
raw_offset: -18000
301301
timezone: America/Toronto
302-
unixtime: 1666120075
303-
utc_datetime: 2022-10-18T19:07:55.344362+00:00
302+
unixtime: 1666321461
303+
utc_datetime: 2022-10-21T03:04:21.101705+00:00
304304
utc_offset: -04:00
305305
week_number: 42
306306
**************************************
307307
308308
**************************************
309309
abbreviation: EDT
310310
client_ip: aaa.bbb.ccc.ddd
311-
datetime: 2022-10-18T15:08:54.489027-04:00
312-
day_of_week: 2
313-
day_of_year: 291
311+
datetime: 2022-10-20T23:05:21.101861-04:00
312+
day_of_week: 4
313+
day_of_year: 293
314314
dst: true
315315
dst_from: 2022-03-13T07:00:00+00:00
316316
dst_offset: 3600
317317
dst_until: 2022-11-06T06:00:00+00:00
318318
raw_offset: -18000
319319
timezone: America/Toronto
320-
unixtime: 1666120134
321-
utc_datetime: 2022-10-18T19:08:54.489027+00:00
320+
unixtime: 1666321521
321+
utc_datetime: 2022-10-21T03:05:21.101861+00:00
322322
utc_offset: -04:00
323323
week_number: 42
324324
**************************************
@@ -331,7 +331,7 @@ week_number: 42
331331
```
332332
Start AsyncDweetPOST on PORTENTA_H7_M7
333333
Portenta_H7_AsyncTCP v1.4.0
334-
Portenta_H7_AsyncHTTPRequest v1.3.1
334+
Portenta_H7_AsyncHTTPRequest v1.4.0
335335
Connecting to SSID: HueNet1
336336
SSID: HueNet1
337337
Local IP Address: 192.168.2.94
@@ -354,7 +354,7 @@ Actual value: 88
354354
```
355355
Start AsyncWebClientRepeating on PORTENTA_H7_M7
356356
Portenta_H7_AsyncTCP v1.4.0
357-
Portenta_H7_AsyncHTTPRequest v1.3.1
357+
Portenta_H7_AsyncHTTPRequest v1.4.0
358358
Connecting to SSID: HueNet1
359359
SSID: HueNet1
360360
Local IP Address: 192.168.2.94
@@ -412,7 +412,7 @@ signal strength (RSSI):-26 dBm
412412
```
413413
Start AsyncCustomHeader on PORTENTA_H7_M7
414414
Portenta_H7_AsyncTCP v1.4.0
415-
Portenta_H7_AsyncHTTPRequest v1.3.1
415+
Portenta_H7_AsyncHTTPRequest v1.4.0
416416
Using mac index = 15
417417
Connected! IP address: 192.168.2.87
418418
@@ -421,17 +421,17 @@ Sending GET Request to http://worldtimeapi.org/api/timezone/America/Toronto.txt
421421
**************************************
422422
abbreviation: EDT
423423
client_ip: aaa.bbb.ccc.ddd
424-
datetime: 2022-10-18T15:09:54.390100-04:00
425-
day_of_week: 2
426-
day_of_year: 291
424+
datetime: 2022-10-20T23:08:21.131690-04:00
425+
day_of_week: 4
426+
day_of_year: 293
427427
dst: true
428428
dst_from: 2022-03-13T07:00:00+00:00
429429
dst_offset: 3600
430430
dst_until: 2022-11-06T06:00:00+00:00
431431
raw_offset: -18000
432432
timezone: America/Toronto
433-
unixtime: 1666120194
434-
utc_datetime: 2022-10-18T19:09:54.390100+00:00
433+
unixtime: 1666321701
434+
utc_datetime: 2022-10-21T03:08:21.131690+00:00
435435
utc_offset: -04:00
436436
week_number: 42
437437
**************************************
@@ -445,7 +445,7 @@ week_number: 42
445445
```
446446
Start AsyncWebClientRepeating on PORTENTA_H7_M7
447447
Portenta_H7_AsyncTCP v1.4.0
448-
Portenta_H7_AsyncHTTPRequest v1.3.1
448+
Portenta_H7_AsyncHTTPRequest v1.4.0
449449
Using mac index = 16
450450
Connected! IP address: 192.168.2.87
451451
@@ -502,42 +502,42 @@ Connected! IP address: 192.168.2.87
502502
```
503503
Start AsyncSimpleGET on PORTENTA_H7_M7
504504
Portenta_H7_AsyncTCP v1.4.0
505-
Portenta_H7_AsyncHTTPRequest v1.3.1
505+
Portenta_H7_AsyncHTTPRequest v1.4.0
506506
Using mac index = 7
507507
Connected! IP address: 192.168.2.87
508508
509509
**************************************
510510
abbreviation: EDT
511511
client_ip: aaa.bbb.ccc.ddd
512-
datetime: 2022-10-18T15:09:54.390100-04:00
513-
day_of_week: 2
514-
day_of_year: 291
512+
datetime: 2022-10-20T23:09:21.132613-04:00
513+
day_of_week: 4
514+
day_of_year: 293
515515
dst: true
516516
dst_from: 2022-03-13T07:00:00+00:00
517517
dst_offset: 3600
518518
dst_until: 2022-11-06T06:00:00+00:00
519519
raw_offset: -18000
520520
timezone: America/Toronto
521-
unixtime: 1666120194
522-
utc_datetime: 2022-10-18T19:09:54.390100+00:00
521+
unixtime: 1666321761
522+
utc_datetime: 2022-10-21T03:09:21.132613+00:00
523523
utc_offset: -04:00
524524
week_number: 42
525525
**************************************
526526
527527
**************************************
528528
abbreviation: EDT
529529
client_ip: aaa.bbb.ccc.ddd
530-
datetime: 2022-10-18T15:10:54.440157-04:00
531-
day_of_week: 2
532-
day_of_year: 291
530+
datetime: 2022-10-20T23:10:21.133081-04:00
531+
day_of_week: 4
532+
day_of_year: 293
533533
dst: true
534534
dst_from: 2022-03-13T07:00:00+00:00
535535
dst_offset: 3600
536536
dst_until: 2022-11-06T06:00:00+00:00
537537
raw_offset: -18000
538538
timezone: America/Toronto
539-
unixtime: 1666120254
540-
utc_datetime: 2022-10-18T19:10:54.440157+00:00
539+
unixtime: 1666321821
540+
utc_datetime: 2022-10-21T03:10:21.133081+00:00
541541
utc_offset: -04:00
542542
week_number: 42
543543
**************************************
@@ -558,7 +558,7 @@ You can also change the debugging level from 0 to 4
558558

559559
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
560560
#define _PORTENTA_H7_ATCP_LOGLEVEL_ 1
561-
#define _ASYNC_HTTP_LOGLEVEL_ 2
561+
#define _ASYNC_HTTP_LOGLEVEL_ 1
562562
```
563563

564564
---

0 commit comments

Comments
 (0)