You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "alancassis (via GitHub)" <gi...@apache.org> on 2023/04/23 16:23:03 UTC
[GitHub] [nuttx] alancassis commented on issue #9059: Using the ftpc client
alancassis commented on issue #9059:
URL: https://github.com/apache/nuttx/issues/9059#issuecomment-1519104015
Hi @xiaotailang
If you are new to NuttX RTOS or don't have enough experience with menuconfig configuration, then it is a good idea to start with an working configuration example. You need to find a board config that enables the feature you want to use, in this case: boards/arm/lpc17xx_40xx/olimex-lpc1766stk/configs/ftpc/defconfig could be a good reference.
BTW, I think there are some issues with NuttX FTPC:
```
NuttShell (NSH) NuttX-12.1.0
nsh> uname -a
NuttX 12.1.0 129a0703c4 Apr 23 2023 12:45:27 xtensa esp32-devkitc
nsh> ifconfig
wlan0 Link encap:Ethernet HWaddr 8c:aa:b5:b5:a7:e8 at RUNNING
inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0
IPv4 TCP UDP ICMP
Received 0002 0000 0002 0000
Dropped 0000 0000 0000 0000
IPv4 VHL: 0000 Frg: 0000
Checksum 0000 0000 0000 ----
TCP ACK: 0000 SYN: 0000
RST: 0000 0000
Type 0000 ---- ---- 0000
Sent 0000 0000 0000 0000
Rexmit ---- 0000 ---- ----
nsh> renew wlan0
nsh> ifconfig
wlan0 Link encap:Ethernet HWaddr 8c:aa:b5:b5:a7:e8 at RUNNING
inet addr:192.168.0.18 DRaddr:192.168.0.1 Mask:255.255.255.0
IPv4 TCP UDP ICMP
Received 0005 0000 0004 0000
Dropped 0001 0000 0000 0000
IPv4 VHL: 0000 Frg: 0000
Checksum 0000 0000 0000 ----
TCP ACK: 0000 SYN: 0000
RST: 0000 0000
Type 0000 ---- ---- 0000
Sent 0002 0000 0002 0000
Rexmit ---- 0000 ---- ----
nsh> ftpc 192.168.0.2
NuttX FTP Client:
udp_input: WARNING: No listener on UDP port
udp_input: WARNING: No listener on UDP port
login ftpclient ********
pwd
nfc> nfc> PWD: /"
udp_input: WARNING: No listener on UDP port
udp_input: WARNING: No listener on UDP port
ls
udp_input: WARNING: No listener on UDP port
udp_input: WARNING: No listener on UDP port
tcp_input: WARNING: SYN with no listener (or old packet) .. reset
tcp_input: WARNING: SYN with no listener (or old packet) .. reset
ftpc_sockconnect: ERROR: connect() failed: 110
ftpc_xfrinit: ERROR: ftpc_sockconnect() failed: 110
ls failed: 9
quit
nfc> nfc> nfc> nfc> nfc> nfc> Exiting...
tcp_input: WARNING: SYN with no listener (or old packet) .. reset
nsh> udp_input: WARNING: No listener on UDP port
udp_input: WARNING: No listener on UDP port
```
Please see attached my ESP32 board configuration.
[esp32_wifi_ftpc.txt](https://github.com/apache/nuttx/files/11304228/esp32_wifi_ftpc.txt)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org