AnsweredAssumed Answered

FTP server anonymous does't work on MQX4.1

Question asked by corrado carini on Feb 11, 2015
Latest reply on Feb 19, 2015 by corrado carini

Hello to everyone,

I'm working with a Kinetis K60 on a custom board and I'm using FTP server with MQX 4.1.

I try to set anonymous connection with no results.

I compiled MQX with

/*

** MGCT: <option type="bool"/>

*/

#ifndef FTPSRVCFG_IS_ANONYMOUS

  #define FTPSRVCFG_IS_ANONYMOUS             (1)

#endif

in rtcscfg.h file and FTP so defined in my code:

 

uint32_t initFTP()

{

FTPSRV_PARAM_STRUCT params={0};

uint32_t handle;

 

  #if RTCSCFG_ENABLE_IP4

  params.af |= AF_INET;

  #endif

  #if RTCSCFG_ENABLE_IP6

  params.af |= AF_INET6;

  #endif

 

  params.auth_table = NULL;

  params.root_dir = "a:";

  handle = FTPSRV_init(&params);

  return handle;

}

 

I also tried to comment params.auth_table line or to create a FTPSRV_AUTH_STRUCT with 0, NULL or "" fields but ftp server never works.


Everything is ok i create a user+passw connection (not anonymous).

Any idea?

Many thanks and best regards,

Corrado

Outcomes