update ftpclient

This commit is contained in:
ambrumf 2023-10-23 15:06:13 +08:00
parent 7f14d047cb
commit ab77fe8a09
15 changed files with 41 additions and 33 deletions

View File

@ -1,10 +1,10 @@
menu "test app" menu "test app"
config USER_TEST menuconfig USER_TEST
bool "Enable application test function " bool "Enable application test function "
default n default n
if USER_TEST if USER_TEST
config USER_TEST_ADC menuconfig USER_TEST_ADC
bool "Config test adc" bool "Config test adc"
default n default n
if USER_TEST_ADC if USER_TEST_ADC
@ -15,7 +15,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_DAC menuconfig USER_TEST_DAC
bool "Config test dac" bool "Config test dac"
default n default n
if USER_TEST_DAC if USER_TEST_DAC
@ -26,7 +26,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_FS menuconfig USER_TEST_FS
bool "Config test fs with sd or usb" bool "Config test fs with sd or usb"
default n default n
if USER_TEST_FS if USER_TEST_FS
@ -38,7 +38,7 @@ menu "test app"
endif endif
config USER_TEST_GPIO menuconfig USER_TEST_GPIO
select BSP_USING_GPIO select BSP_USING_GPIO
select RESOURCES_PIN select RESOURCES_PIN
select BSP_USING_LED select BSP_USING_LED
@ -53,7 +53,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_LORA menuconfig USER_TEST_LORA
select BSP_USING_UART select BSP_USING_UART
select BSP_USING_GPIO select BSP_USING_GPIO
select RESOURCES_PIN select RESOURCES_PIN
@ -72,12 +72,12 @@ menu "test app"
endif endif
endif endif
config USER_TEST_SOCKET menuconfig USER_TEST_SOCKET
select BSP_USING_LWIP select BSP_USING_LWIP
bool "Config test socket(lwip)" bool "Config test socket(lwip)"
default n default n
config USER_TEST_UART menuconfig USER_TEST_UART
select BSP_USING_UART select BSP_USING_UART
select BSP_USING_UART6 select BSP_USING_UART6
bool "Config test uart" bool "Config test uart"
@ -90,7 +90,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_RS485 menuconfig USER_TEST_RS485
select BSP_USING_UART select BSP_USING_UART
select BSP_USING_GPIO select BSP_USING_GPIO
select RESOURCES_PIN select RESOURCES_PIN
@ -108,7 +108,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_RTC menuconfig USER_TEST_RTC
select BSP_USING_RTC select BSP_USING_RTC
bool "Config test rtc" bool "Config test rtc"
default n default n
@ -120,7 +120,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_HWTIMER menuconfig USER_TEST_HWTIMER
select BSP_USING_HWTIMER select BSP_USING_HWTIMER
select BSP_USING_GPIO select BSP_USING_GPIO
select RESOURCES_PIN select RESOURCES_PIN
@ -138,7 +138,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_WDT menuconfig USER_TEST_WDT
select BSP_USING_WDT0 select BSP_USING_WDT0
bool "Config test watchdog" bool "Config test watchdog"
default n default n
@ -150,7 +150,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_LCD_EDU menuconfig USER_TEST_LCD_EDU
select BSP_USING_LCD select BSP_USING_LCD
bool "Config test lcd in PrivOpen" bool "Config test lcd in PrivOpen"
default n default n
@ -162,7 +162,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_TOUCH menuconfig USER_TEST_TOUCH
select BSP_USING_TOUCH select BSP_USING_TOUCH
bool "Config test touch" bool "Config test touch"
default n default n
@ -177,7 +177,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_I2C menuconfig USER_TEST_I2C
select BSP_USING_I2C select BSP_USING_I2C
bool "Config test i2c" bool "Config test i2c"
default n default n
@ -189,7 +189,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_CAN menuconfig USER_TEST_CAN
select BSP_USING_CAN select BSP_USING_CAN
bool "Config test can" bool "Config test can"
default n default n
@ -201,7 +201,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_CAMERA menuconfig USER_TEST_CAMERA
select BSP_USING_CAMERA select BSP_USING_CAMERA
select BSP_USING_LCD select BSP_USING_LCD
bool "Config test camera with lcd" bool "Config test camera with lcd"
@ -225,7 +225,7 @@ menu "test app"
bool "Config test lcd device" bool "Config test lcd device"
default n default n
config USER_TEST_ETHERNET menuconfig USER_TEST_ETHERNET
bool "Config test ethernet only for edu-riscv64" bool "Config test ethernet only for edu-riscv64"
default n default n
if USER_TEST_ETHERNET if USER_TEST_ETHERNET
@ -243,7 +243,7 @@ menu "test app"
endif endif
endif endif
config USER_TEST_FLASH menuconfig USER_TEST_FLASH
bool "Config test w25q128 device" bool "Config test w25q128 device"
default n default n
if USER_TEST_FLASH if USER_TEST_FLASH
@ -254,51 +254,55 @@ menu "test app"
endif endif
endif endif
config USER_TEST_TIMER menuconfig USER_TEST_TIMER
bool "Config test soft timer" bool "Config test soft timer"
default n default n
config USER_TEST_HASH menuconfig USER_TEST_HASH
bool "Config test hash" bool "Config test hash"
default n default n
config USER_TEST_RADIX menuconfig USER_TEST_RADIX
bool "Config test radix tree" bool "Config test radix tree"
default n default n
config USER_TEST_RBTREE menuconfig USER_TEST_RBTREE
bool "Config test red black tree" bool "Config test red black tree"
default n default n
config USER_TEST_MODBUS_TCP menuconfig USER_TEST_MODBUS_TCP
bool "Config test modbus_tcp" bool "Config test modbus_tcp"
default n default n
config USER_TEST_WEBSERVER menuconfig USER_TEST_WEBSERVER
bool "Config test webserver" bool "Config test webserver"
default n default n
config USER_TEST_MQTTCLIENT menuconfig USER_TEST_MQTTCLIENT
bool "Config test mqtt client" bool "Config test mqtt client"
default n default n
config USER_TEST_FTPCLIENT menuconfig USER_TEST_FTPCLIENT
bool "Config test ftp client" bool "Config test ftp client"
default n default n
config USER_TEST_LORA_P2P menuconfig USER_TEST_FTPCLIENT_RISCV
bool "Config test ftp client on riscv"
default n
menuconfig USER_TEST_LORA_P2P
bool "Config test lora p2p" bool "Config test lora p2p"
default n default n
config USER_TEST_LORAWAN_SINGLEGW menuconfig USER_TEST_LORAWAN_SINGLEGW
bool "Config test lorawan single channel gateway" bool "Config test lorawan single channel gateway"
default n default n
config USER_TEST_CANOPEN menuconfig USER_TEST_CANOPEN
bool "Config test CanOpen" bool "Config test CanOpen"
default n default n
config USER_TEST_USB_CAMERA menuconfig USER_TEST_USB_CAMERA
bool "Config test usb camera" bool "Config test usb camera"
default n default n

View File

@ -141,6 +141,10 @@ ifeq ($(CONFIG_ADD_XIZI_FEATURES),y)
SRC_FILES += SRC_FILES +=
endif endif
ifeq ($(CONFIG_USER_TEST_FTPCLIENT_RISCV),y)
SRC_FILES += tes_ftpclient_riscv/test_ftpclient_riscv.c
endif
ifeq ($(CONFIG_USER_TEST_LORA_P2P),y) ifeq ($(CONFIG_USER_TEST_LORA_P2P),y)
SRC_FILES += SRC_FILES +=
endif endif

View File

@ -1,4 +1,4 @@
# 基于矽璓已实现的Lwip在Riscv上实现FTP协议的Client功能 # # 基于矽璓已实现的W5500网卡驱动在Riscv上实现FTP协议的Client功能 #
## 1. 简介 ## 1. 简介
利用w5500网络编程的api实现了ftp客户端的功能具体功能包括向ftp服务器发送指定命令根据用户名登陆ftp服务器获取文件大小下载指定文件并保存至sd卡内并提供了测试函数模拟从ftp服务器上下载10个4KB文件的过程 利用w5500网络编程的api实现了ftp客户端的功能具体功能包括向ftp服务器发送指定命令根据用户名登陆ftp服务器获取文件大小下载指定文件并保存至sd卡内并提供了测试函数模拟从ftp服务器上下载10个4KB文件的过程

View File

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 172 KiB

View File

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 161 KiB

View File

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 258 KiB

View File

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 116 KiB

View File

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

View File

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -16,7 +16,7 @@ http://license.coscl.org.cn/MulanPSL2
#include <socket.h> #include <socket.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "test_ftp.h" #include "test_ftpclient_riscv.h"
#define SOCKET_DATA 2 #define SOCKET_DATA 2
#define SOCKET_CMD 3 #define SOCKET_CMD 3
char sendBuffer[1024]; char sendBuffer[1024];