Comments (5)
This was my fault! An errant component was frequently toggling IRQs during the network handling and as soon as that was cleared away things started to behave much better. Sorry for the noise.
from wifi101.
Hey everyone.... I slimmed down my test case, pulling in the SimpleWebServer example and making a few modifications:
- I buffer all the HTTP headers into one write call.
- The server sends a Content-Length of 1MB and produces that data as a stream of 1400 byte blocks. Each block is filled with the same byte, incremented on each block (1400 0's, 1400 1's, etc...) So packets are easy to see the local order of.
I then issued a curl
command on my desktop to download while I took a Wireshark capture.
Notable in the capture is that things don't appear to be going smoothly from the beginning haha. It starts with a missing TCP segment, which should have been captured and then sputters through some more of those and out of order TCP and then eventually degrades into a whole flood of TCP retransmissions.
Which if I'm understanding the behind the scenes makes sense, as those retransmission's are only possible if the data is still around, and that's a lot of data to keep around, hence my buffering and speed issues.
Jacob
from wifi101.
In an effort to eliminate variables I moved my WiFi closer to the hardware and reran the test. First test went really well, and then the second test went south on me. I've uploaded the pcap from that test, as well which I think may demonstrate the problem better as things appear fairly smooth and then the problems become extremely visible.
I'm running these curl's from a wired connection on the same router serving the WiFi, by the way. Things don't get any better when both ends are on the WiFi.
winc1500-1MB-closer-wifi-2.pcapng.gz
Jacob
from wifi101.
I should note that the previous capture was done running the whole code/stack that originally exhibited the problem and appears more difficult to reproduce when I narrow the code down the my test case based on SimpleWebServer. I'm going to keep digging to see if something I'm doing is exacerbating this problem in that case.
Jacob
from wifi101.
I spoke too soon. This is still an issue for me and I believe my prior work was just making my own code less of an factor. Closer WiFI for easier testing made the issue less likely to surface, but now that I've returned everything to their rightful positions it's back with a vengeance.
from wifi101.
Related Issues (20)
- Compiler warning about buffer overflow in firmwareVersion() HOT 1
- 'if' statement at WifiClient.cpp:149 is useless HOT 1
- Wifi101 doesn't work once add the freeRTOS library HOT 3
- AP mode with WPA
- Modernize CI system
- HTTPS to sites using LetsEncrypt certificates with MKR1000 fails HOT 1
- AP SSID goes back to default wifi101-xxxx after re-entering provision mode
- Add GitHub Actions workflow to synchronise with shared repository labels
- WiFi.ping(ip) freezes mkr1000 if WiFiUdp.h included
- Infinite stall on WiFiWebServer sample / MKR 1000 HOT 1
- WiFiServer simple improvements
- WiFi.hostname("MKR1000") function has no effects
- Multiple compilation problems on ESP8266 HOT 4
- Library does not work with WINC1500 and Mega2560 HOT 9
- Adafruit Feather M0 WiFi with uFL - ATSAMD21 + ATWINC1500 - fw 19.4.4
- Tx Power Mode
- Turn on WiFi hardware once turned off with WiFi.end()
- MKR1000 no connection with SSL (https) HOT 1
- ATWINC1500 with WiFi101 with MQTT always leads to a dead connection after some time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi101.