Hello,
I’m a beginner in FreeRTOS, one of my projects needs to establish a FTP server on AM1808(ARM9 core). I downloaded an lab project(160919_FreeRTOS_Labs), which i succeed to transplant to my board. I can mount, list and download files quickly, but it went unstable in uploading files, the upload speed has to be limited at 1KB/s if the file size exceeds 2KB mostly, whilch had confused me few weeks.
I used wireshark to capture the net packets, it seems that the ftp server needs over seconds to handle a pack of FTP data. And the UDP log always present “TCP: No active socket on port xxx”. Anyone can give me some advises?
Thanks a lot.
Blow is the wireshark capture picture and some UDPlogs.
[IP-task ] Socket 54438 -> 192.168.0.30:63722 State eSYN_RECEIVED->eESTABLISHED
0.000.001 [SvrWork ] PASV Connected from 54438 to 63722
0.000.001 [SvrWork ] LIST
0.000.001 [IP-task ] CheckClose 841 <= 841 (0 <= 841 <= 841)
0.000.001 [IP-task ] MSS: sending 1460
0.000.001 [IP-task ] Socket 54438 -> 192.168.0.30:63722 State eESTABLISHED->eCLOSE_WAIT
0.000.001 [IP-task ] FreeRTOS_closesocket[54438 to 192.168.0.30:63722]: buffers 24 socks 4
0.000.001 [IP-task ] TCP: No active socket on port 54436 (192.168.0.30:63720)
0.000.001 [IP-task ] TCP: No active socket on port 54437 (192.168.0.30:63721)
0.000.001 [IP-task ] TCP: No active socket on port 54438 (192.168.0.30:63722)
0.000.001 [IP-task ] Socket 21 -> 192.168.0.30:63712 State eLAST_ACK->eLAST_ACK
0.000.001 [IP-task ] TCP: No active socket on port 54436 (192.168.0.30:63720)
0.000.001 [IP-task ] TCP: No active socket on port 54437 (192.168.0.30:63721)
0.000.001 [IP-task ] TCP: RST received from 192.168.0.30:63718 for 54435
0.000.001 [IP-task ] Socket 54435 -> 192.168.0.30:63718 State eESTABLISHED->eCLOSED
0.000.001 [SvrWork ] FTP: recv: ‘/Infineon-Automotive_Power_SelectionGuide_2019-ProductSelectionGuide-v01_00-EN.pdf’ 1460 Bytes (68 bytes/sec)
0.000.001 [IP-task ] FreeRTOS_closesocket[54435 to 192.168.0.30:63718]: buffers 25 socks 3
0.000.001 [IP-task ] TCP: No active socket on port 54438 (192.168.0.30:63722)
0.000.001 [IP-task ] Socket 21 -> 192.168.0.30:63712 State eLAST_ACK->eLAST_ACK
0.000.001 [IP-task ] TCP: No active socket on port 54436 (192.168.0.30:63720)
0.000.001 [IP-task ] TCP: No active socket on port 54437 (192.168.0.30:63721)
0.000.001 [IP-task ] TCP: No active socket on port 54438 (192.168.0.30:63722)
0.000.001 [IP-task ] Socket 21 -> 192.168.0.30:63712 State eLAST_ACK->eLAST_ACK
0.000.001 [IP-task ] TCP: No active socket on port 54436 (192.168.0.30:63720)
0.000.001 [IP-task ] TCP: No active socket on port 54437 (192.168.0.30:63721)
0.000.001 [IP-task ] TCP: No active socket on port 54438 (192.168.0.30:63722)
0.000.001 [IP-task ] Socket 21 -> 192.168.0.30:63712 State eLAST_ACK->eLAST_ACK
0.000.001 [IP-task ] TCP: No active socket on port 54436 (192.168.0.30:63720)