Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10444631044463 Module Configuration Anchor10476831047683#define FTPs_CFG_CTRL_IPPORT 21
#define FTPs_CFG_DATA_IPPORT 20
anchor

10476891047689#define FTPs_CFG_CTRL_IPPORT_SECURE 990
#define FTPs_CFG_DATA_IPPORT_SECURE 989
Anchor10466031046603

Define respectively the TCP port µC/FTPs will listen for requests. The default value is 21 for the control socket, and 20 for the data transfer socket. For secure operations, the default value is 990 for the control socket, and 989 for the deta transfer socket.

...

10468421046842#define FTPs_CFG_CTRL_MAX_ACCEPT_TIMEOUT_MS NET_TMR_TIME_INFINITE
#define FTPs_CFG_CTRL_MAX_RX_TIMEOUT_MS 30000
#define FTPs_CFG_CTRL_MAX_TX_TIMEOUT_MS 5000

#define FTPs_CFG_DTP_MAX_ACCEPT_TIMEOUT_MS 5000
#define FTPs_CFG_DTP_MAX_CONN_TIMEOUT_MS 5000
#define FTPs_CFG_DTP_MAX_RX_TIMEOUT_MS 5000
#define FTPs_CFG_DTP_MAX_TX_TIMEOUT_MS 5000 Anchor10467081046708

These values define the timeout values (in milliseconds) for control and data transfer sockets. Since the control socket may not receive commands for a while, the timeout can be longer. However, this FTP server is limited to one client at a time. If a client gets stuck, it may take a while before the server will release the socket. So we recommend you to keep the control socket connection timeout low and activate the “keep-alive” functions of your FTP client, which send

...

NOOPcommand periodically.

...

1046760#define FTPs_CFG_CTRL_MAX_ACCEPT_RETRY -1
#define FTPs_CFG_CTRL_MAX_RX_RETRY 3
#define FTPs_CFG_CTRL_MAX_TX_RETRY 3

#define FTPs_CFG_DTP_MAX_ACCEPT_RETRY 3
#define FTPs_CFG_DTP_MAX_CONN_RETRY 3
#define FTPs_CFG_DTP_MAX_RX_RETRY 3
#define FTPs_CFG_DTP_MAX_TX_RETRY 3 Anchor10468571046857

These values define the maximum number of retries when a request fails before returning an error to the application.

...

10492021049202#define FTPs_CFG_MAX_USER_LEN 32
#define FTPs_CFG_MAX_PASS_LEN 32 Anchor10492501049250

These values define the maximum length of user and password the FTP client will transfer to the application for authentication.

...

#define FTPs_CFG_FS_PATH_LEN_MAX 256
#define FTPs_CFG_FS_NAME_LEN_MAX 256 Anchor10492171049217

These values define the maximum length of file system path and file name.