No connection to Duet-Wifi
-
Arrgglll!!!! I made a test with a windows machine, running firefox, and it works!!!
WTF? Why firefox nor chromium does not work from my linux machine???!!???
-
If you get a Wireshatk trace from the Windows machine too, perhaps we be able to spot the difference.
-
If all my problems are related to the wifi module, it would be better for me to switch to the ethernet version.
Is it possible to make an exchange?
-
Here is the pcap file recorded from a Windows machine:
https://sys.gbiloba.org/owncloud/index.php/s/DssgVCz78OtqBGq
-
@fma:
If all my problems are related to the wifi module, it would be better for me to switch to the ethernet version.
Is it possible to make an exchange?
That will depend on the policy of whoever you purchased it from and/or consumer rights legislation in your country.
-
@fma:
Here is the pcap file recorded from a Windows machine:
https://sys.gbiloba.org/owncloud/index.php/s/DssgVCz78OtqBGq
Thanks. The traces show that your Windows PC uses an MSS of 1460 and your Linux machine uses 1452. If I set the MTU on my Windows machine to 1492 instead of 1500, this forces the MSS to 1452 as it is on your Linux machine, and I get similar connection problems. So it appears that the TCP/IP stack on the WiFi module is failing to auto-negotiate the MSS.
I will look into this. If all else fails, I can rebuild the TCP/IP stack using maximum MSS of 1452 instead of 1460. Meanwhile, if your Linux system allows you to use an MSS of 1460, that may work around the problem.
-
I think I found the cause: this bug in LWIP http://savannah.nongnu.org/bugs/?func=detailitem&item_id=46384. It's been fixed, so with luck we just need to update the version of LWIP we are using.
-
That's great news!
Do you think this can also be the source of crashs with the 1.18 and previous firmwares, where code is entirely managed by the ESP? If you apply the patch in this branch too, I can make some tests…
Thanks for your support.
-
I will also see if I can use a MTU of 1500, instead of 1492 (I think I reduced it to handle ssh connexions, but I'm not sure if I need it anymore, as I changed my router, and OpenWRT version).
-
Please try this preview of DuetWiFiServer 1.19beta10: https://dl.dropboxusercontent.com/u/19369680/DuetWiFiServer.bin. If you don't have networking functional at present, you will need to copy the file into /sys on your SD card, put the SD card back in the Duet, restart the Duet, and run M997 S1 from USB or PanelDue. Then wait until the blue light on the wifi module stops flashing.
My windows machine now connects with an MSS of 1452.
I can't easily make that patch to the older version of DuetWiFiServer, because that version used a build of lwip pre-compiled by Expressif. In any case, we have no interest in going back to that version because the newer version offers a number of advantages, such as FTP and Telnet support.
-
I test this this evening…
No problem for the 1.18; it was just a suggestion.
-
Ok, all works fine with a MTU 1500: I can have access to the duetwifi, and ssh connexions still work! And the test firmware you linked works fine with a MTU 1492.
Good! Let's start playing with this great tool
Thanks again for the support.
-
I'm glad to have been of assistance.