MQX FTP server lockup

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX FTP server lockup

Jump to solution
1,808 Views
jlevie
Contributor I

Hi,

I have a design using a K60f120 and MQX 4.02 with an FTP server using an MFS mounted SD card as the ftp root directory.

There are two things I have found that cause the ftp server to hang when an ftp 'LIST' command is sent by a client.

#1. Whenever a PASSIVE mode transfer is attempted.

#2. When ever there is not a valid gateway on the network (IE, when the IP address that the gateway is pointed at is not present on the network).

For example, if I am on network 10.0.0.x, with a gateway at 10.0.0.1, client at 10.0.0.200 and the MQX app at 10.0.0.100, everything works fine as long as passive mode is off. Files can be transferred at reasonable rates, all is good. If the gateway machine at 10.0.0.1 is removed from the network, the client can establish a connection with the MQX FTP server and login, but as soon as a LIST command is sent to get a file listing, the server locks up. The unit must be reset to recover.

Has anyone seen this type of behavior?

Labels (1)
Tags (3)
0 Kudos
1 Solution
1,007 Views
DavidS
NXP Employee
NXP Employee

Hi Jeff,

Can you try using MQX4.1 with TWR-K60F120M?

I have tested on this latest MQX version and all is working well.

I'm using FileZilla FTP Client (  FileZilla - The free FTP solution ).

I have attached my modified web_hvac demo.

The SD Card is "a:" in the terminal window.  The USB Stick (should you plug it in) is "c:".

I setup the ftp to connect to the SD Card.

Note the FTP uses username: developer  and passwd: freescale .

Regards,

David

View solution in original post

0 Kudos
5 Replies
1,006 Views
DavidS
NXP Employee
NXP Employee

Hi Jeff,

No magic in user_config.h that I can see.

I have attached it anyways.

Regards,

David

0 Kudos
1,007 Views
abrahamvaldiose
Contributor I

Hi David:

I downloaded your modified web_hvac demo and I made some minimal changes to fit it in a FRDM-K64... IT WORKS GREAT!!! However, when I´m transferring files I have realized that upload speed is considerably higher than download speed.

Do you have any idea what could be the reason???

Thanks for your help

Abraham

0 Kudos
1,007 Views
jlevie
Contributor I

David,

MQX 4.1 resolves the issues I was seeing. Transfer rates are much higher as well.

Thanks for your help,

Jeff

0 Kudos
1,008 Views
DavidS
NXP Employee
NXP Employee

Hi Jeff,

Can you try using MQX4.1 with TWR-K60F120M?

I have tested on this latest MQX version and all is working well.

I'm using FileZilla FTP Client (  FileZilla - The free FTP solution ).

I have attached my modified web_hvac demo.

The SD Card is "a:" in the terminal window.  The USB Stick (should you plug it in) is "c:".

I setup the ftp to connect to the SD Card.

Note the FTP uses username: developer  and passwd: freescale .

Regards,

David

0 Kudos
1,007 Views
jlevie
Contributor I

David,

Thank you for that information. I am in the process of building your project here and will let you know how it, and my end project work under MQX 4.1.

Did you make any changes to the default user_config.h in the K60F120 BSP that I would need to know about?

Regards,

Jeff Levie

0 Kudos