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

Commit f0ebeda

Browse files
authored
v1.1.0 to fix incomplete download bug
### Releases v1.1.0 1. Fix bug incomplete downloads from server to client. Check [Incomplete downloads from server to client. #2](#2)
1 parent c31e057 commit f0ebeda

11 files changed

+143
-25
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Arduino IDE version: 1.8.19
3434
Teensyduino core v1.56
3535
Teensy 4.1 using QNEthernet v0.14.0
3636
OS: Ubuntu 20.04 LTS
37-
Linux xy-Inspiron-3593 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
37+
Linux xy-Inspiron-3593 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3838
3939
Context:
4040
I encountered a crash while using TimerInterrupt.

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Following is debug terminal output when running example [FTP_Server_SDFAT2](exam
162162

163163
```
164164
Starting FTP_Server_SDFAT2 on TEENSY 4.1 with QNEthernet
165-
FTP_Server_Teensy41 v1.0.0
165+
FTP_Server_Teensy41 v1.1.0
166166
Initializing SD card...
167167
Wiring is correct and a card is present.
168168
@@ -233,7 +233,7 @@ Following is debug terminal output when running example [FTP_Server_SDFAT2](exam
233233

234234
```
235235
Starting FTP_Server_SDFAT2 on TEENSY 4.1 with NativeEthernet
236-
FTP_Server_Teensy41 v1.0.0
236+
FTP_Server_Teensy41 v1.1.0
237237
Initializing SD card...
238238
Wiring is correct and a card is present.
239239
@@ -292,7 +292,7 @@ Following is debug terminal output when running example [FTP_Server_SDFAT2](exam
292292

293293
```
294294
Starting FTP_Server_SDFAT2 on TEENSY 4.0 with W5x00 using Ethernet_Generic Library with Large Buffer
295-
FTP_Server_Teensy41 v1.0.0
295+
FTP_Server_Teensy41 v1.1.0
296296
======== USE_ETHERNET_GENERIC ========
297297
[FTP] Default SPI pinout:
298298
[FTP] MOSI: 11
@@ -361,7 +361,7 @@ Submit issues to: [FTP_Server_Teensy41 issues](https://github.com/khoih-prog/FTP
361361
2. Support SD card and SDFat1, SDFat2
362362
3. Add debugging features.
363363
4. Add Table-of-Contents and Version String
364-
364+
5. Fix bug incomplete downloads from server to client
365365

366366
---
367367
---
@@ -370,11 +370,12 @@ Submit issues to: [FTP_Server_Teensy41 issues](https://github.com/khoih-prog/FTP
370370
### Contributions and Thanks
371371

372372
1. Based on and modified from [Jean-Michel Gallego's Arduino-Ftp-Server library](https://github.com/gallegojm/Arduino-Ftp-Server)
373-
373+
2. Thanks to [Warren Watson](https://github.com/wwatson4506) to make PR in [Incomplete downloads from server to client. #2](https://github.com/khoih-prog/FTP_Server_Teensy41/pull/2) leading to the new version v1.1.0 to fix bug incomplete downloads from server to client.
374374

375375
<table>
376376
<tr>
377377
<td align="center"><a href="https://github.com/gallegojm"><img src="https://github.com/gallegojm.png" width="100px;" alt="gallegojm"/><br /><sub><b>⭐️ Jean-Michel Gallego</b></sub></a><br /></td>
378+
<td align="center"><a href="https://github.com/wwatson4506"><img src="https://github.com/wwatson4506.png" width="100px;" alt="wwatson4506"/><br /><sub><b>Warren Watson</b></sub></a><br /></td>
378379
</tr>
379380
</table>
380381

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@
1313

1414

1515
* [Changelog](#changelog)
16+
* [Releases v1.1.0](#releases-v110)
1617
* [Releases v1.0.0](#releases-v100)
1718

1819
---
1920
---
2021

2122
## Changelog
2223

24+
### Releases v1.1.0
25+
26+
1. Fix bug incomplete downloads from server to client. Check [Incomplete downloads from server to client. #2](https://github.com/khoih-prog/FTP_Server_Teensy41/pull/2)
27+
28+
2329
### Releases v1.0.0
2430

2531
1. Initial porting and coding for **Teensy 4.1 using built-in QNEthernet, NativeEthernet or W5x00 with Ethernet_Generic Library**

library.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"FTP_Server_Teensy41",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description":"FTP Server for Teensy 4.x using SD, LittleFS, etc. with QNEthernet, NativeEthernet or W5x00 using Ethernet_Generic Library",
55
"keywords":"communication, data, ftp, server, ftp-server, ethernet, teensy, teensy41, teensy40, qnethernet, lwip, native-ethernet, w5x00, w5100, w5500, ethernet-generic",
66
"authors": [
@@ -22,6 +22,22 @@
2222
},
2323
"dependencies":
2424
[
25+
{
26+
"owner": "khoih-prog",
27+
"name": "Functional-Vlpp",
28+
"version": "^1.0.2"
29+
},
30+
{
31+
"owner": "khoih-prog",
32+
"name": "Ethernet_Generic",
33+
"version": "^2.3.0"
34+
},
35+
{
36+
"owner": "ssilverman",
37+
"name": "QNEthernet",
38+
"version": ">=0.14.0",
39+
"platforms": ["teensy"]
40+
}
2541
],
2642
"homepage": "https://github.com/khoih-prog/FTP_Server_Teensy41",
2743
"export": {

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FTP_Server_Teensy41
2-
version=1.0.0
2+
version=1.1.0
33
author=Jean-Michel Gallego, Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
sentence=FTP Server for Teensy 4.1 using SD, FS, etc.
@@ -8,5 +8,5 @@ category=Communication
88
url=https://github.com/khoih-prog/FTP_Server_Teensy41
99
license=GPLv3
1010
architectures=teensy, avr
11-
depends=
11+
depends=Functional-Vlpp, Ethernet_Generic, QNEthernet
1212
includes=FTP_Server_Teensy41.h, FTP_Server_Teensy41.hpp

platformio/platformio.ini

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
;PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; https://docs.platformio.org/page/projectconf.html
10+
11+
[platformio]
12+
; ============================================================
13+
; chose environment:
14+
; teensy
15+
16+
; ============================================================
17+
default_envs = teensy
18+
19+
[env]
20+
; ============================================================
21+
; Serial configuration
22+
; choose upload speed, serial-monitor speed
23+
; ============================================================
24+
upload_speed = 921600
25+
;upload_port = COM11
26+
;monitor_speed = 9600
27+
;monitor_port = COM11
28+
29+
; Checks for the compatibility with frameworks and dev/platforms
30+
lib_compat_mode = strict
31+
32+
lib_deps =
33+
; PlatformIO 4.x
34+
; QNEthernet@>=0.14.0
35+
36+
; PlatformIO 5.x
37+
ssilverman/QNEthernet@>=0.14.0
38+
39+
build_flags =
40+
; set your build_flags
41+
42+
[env:STM32]
43+
platform = teensy
44+
framework = arduino
45+
46+
; ============================================================
47+
; Choose your board by uncommenting one of the following lines
48+
; ============================================================
49+
50+
; ============================================================
51+
; Board configuration Many more Boards to be filled
52+
; ============================================================
53+
54+

src/FTP_Server_Teensy41.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
Based on and modified from Arduino-Ftp-Server Library (https://github.com/gallegojm/Arduino-Ftp-Server)
77
Built by Khoi Hoang https://github.com/khoih-prog/FTP_Server_Teensy41
88
9-
Version: 1.0.0
10-
9+
Version: 1.1.0
10+
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
1313
1.0.0 K Hoang 30/04/2022 Initial porting and coding for Teensy 4.1 using built-in QNEthernet, NativeEthernet
14+
1.1.0 K Hoang 16/05/2022 Fix bug incomplete downloads from server to client
1415
***********************************************************************************************************************/
1516

1617
/*
@@ -64,13 +65,13 @@
6465

6566
////////////////////////////////////////////////////////////////////////////
6667

67-
#define FTP_SERVER_TEENSY41_VERSION "FTP_Server_Teensy41 v1.0.0"
68+
#define FTP_SERVER_TEENSY41_VERSION "FTP_Server_Teensy41 v1.1.0"
6869

6970
#define FTP_SERVER_TEENSY41_VERSION_MAJOR 1
70-
#define FTP_SERVER_TEENSY41_VERSION_MINOR 0
71+
#define FTP_SERVER_TEENSY41_VERSION_MINOR 1
7172
#define FTP_SERVER_TEENSY41_VERSION_PATCH 0
7273

73-
#define FTP_SERVER_TEENSY41_VERSION_INT 1000000
74+
#define FTP_SERVER_TEENSY41_VERSION_INT 1001000
7475

7576
////////////////////////////////////////////////////////////////////////////
7677

src/FTP_Server_Teensy41.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
Based on and modified from Arduino-Ftp-Server Library (https://github.com/gallegojm/Arduino-Ftp-Server)
77
Built by Khoi Hoang https://github.com/khoih-prog/FTP_Server_Teensy41
88
9-
Version: 1.0.0
10-
9+
Version: 1.1.0
10+
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
1313
1.0.0 K Hoang 30/04/2022 Initial porting and coding for Teensy 4.1 using built-in QNEthernet, NativeEthernet
14+
1.1.0 K Hoang 16/05/2022 Fix bug incomplete downloads from server to client
1415
***********************************************************************************************************************/
1516

1617
/*

src/FTP_Server_Teensy41_Config.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
Based on and modified from Arduino-Ftp-Server Library (https://github.com/gallegojm/Arduino-Ftp-Server)
77
Built by Khoi Hoang https://github.com/khoih-prog/FTP_Server_Teensy41
88
9-
Version: 1.0.0
10-
9+
Version: 1.1.0
10+
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
1313
1.0.0 K Hoang 30/04/2022 Initial porting and coding for Teensy 4.1 using built-in QNEthernet, NativeEthernet
14+
1.1.0 K Hoang 16/05/2022 Fix bug incomplete downloads from server to client
1415
***********************************************************************************************************************/
1516

1617
/*

src/FTP_Server_Teensy41_Debug.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
Based on and modified from Arduino-Ftp-Server Library (https://github.com/gallegojm/Arduino-Ftp-Server)
77
Built by Khoi Hoang https://github.com/khoih-prog/FTP_Server_Teensy41
88
9-
Version: 1.0.0
10-
9+
Version: 1.1.0
10+
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
13-
1.0.0 K Hoang 30/04/2022 Initial porting and coding for Teensy 4.1 using built-in QNEthernet, NativeEthernet
13+
1.0.0 K Hoang 30/04/2022 Initial porting and coding for Teensy 4.1 using built-in QNEthernet, NativeEthernet
14+
1.1.0 K Hoang 16/05/2022 Fix bug incomplete downloads from server to client
1415
*****************************************************************************************************************************/
1516

1617
#pragma once

0 commit comments

Comments
 (0)