Hi all,
I've been trying to use the built-in Do-More web server to transfer some data files with sizes on the order of 10-100 kB from a BX-DM1E to my PC. They're stored in subfolders inside of the /sd folder on the microSD card. I've tried using several tools to retrieve them, including wget, curl, and the Chrome web browser, and the problem I keep having is that most times the web server apparently closes the connection before the entire file is transferred.
There seems to be a pattern to where in the transfer the disconnection happens: on multiple retries it'll often happen after exactly the same number of bytes transferred, or if there's variation it's often by some whole multiple of 1024 bytes remaining in the file. For example, I'm currently trying to fetch a file that's 114716 bytes long, and on five repeated retries wget has reported "connection closed" at bytes 77852, 86044, 87040, 87040, and 87040. That means the bytes remaining were 36864 (36 * 1024), 28672 (28 * 1024), and 27676 (27.03 * 1024) respectively. Occasionally a file transfer will complete successfully, but it's rare. I'm reaching this PLC over a corporate VPN with a WiFi bridge as the last leg of the trip, but it's a reliable link with no packet loss, and the ping is about 100 ms.
Can anyone suggest why this might be happening or what I could do to correct the issue? Thanks.