in WiFiClientGeneric.cpp dates back to may 2022, I wondered if a propper fix had been implemneted in the meantime?// The fix is considered as kludge, and the correct place to fix is in ServerDrv::sendData()
So do you know of an alternative WiFi solution for the Teensy that actually works?That's why I gave up on it. I think the fastest I could get was about 300kps. Would be interesting to see if it can be sped up...
wwatson
So do you know of an alternative WiFi solution for the Teensy that actually works?
FYI I found version 1.8.15-1 of WiFiNINA_generic by @khoil-prog here: https://github.com/khoih-prog/WiFiNINA_Generic/releases/tag/v1.8.15-1. Sadly it contains several fundamental programming logic errors (in WiFiServer_Generic.cpp) and after fixing some of the more obvious ones it's clear that the code is no better than any of the previous versions in so far as it seems incapable of coping with large data transfers.
Still hoping someone can reproduce my issues and confirm that I'm not going mad!
My reading was that yes it worked but only fairly slowly. In my case the best data rate I can get whilst guaranteeing that a 2MB file makes it through in one piece is ~40s/MB (25KB/s) - way too slow for my application. I'll continue to poke around in the code looking ways to speed it up. Thanks again for taking an interest.We did have the AirLift working with Teensy.
Histogram of results from 289 runs of 2MB transfers showing KB/s (x) vs frequency of occurrance
Mean: 82 KB/s, but a few samples seen at > 400KB/s. Theoretical max: 1MB/sView attachment 31040
Thanks for responding... Can I refer you to this thread: https://forum.pjrc.com/threads/72669-Airlift-Wifi-simple-web-server-problem in which I present a sketch based on the AP_SimpleWebServer example that tries to transfer a 2MB jpg instead of just two lines of text. And yes, all the example sketches do work, but none of them attempt to transfer a "large" (> 1MB) file, when I do that I run into these horrible problems. It would be great if someone could reproduce my "large-file" issues. I have since done a lot more work on the WiFiNINA_Generic sources and made some progress in reliability but seemingly at the cost of a madly variable, random even, average data-rate (for a 2MB file) from <30KB/s to over 400KB/s on subsequent runs of the code. Thanks again for your interest, I'm really struggling with this.
#define NINA_GPIO0 40
#define NINA_GPIOIRQ NINA_GPIO0