This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 issues with Pure-FTPd? AT#XFTP serial_lte_modem and how to force use of TLS for FTP?

When I try to connect to my Pure-FTPd server I always get an error when trying to login, but If I use a public server like... https://dlptest.com/ftp-test/ it's fine. This might have something to do with TLS being enabled on most of the servers I need to connect to. But I could be wrong?

220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 00:25. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
504 Unknown command

ERROR

All my connect code is pretty much just as the documentation says... 

sprintf(buf, "AT#XFTP=\"open\",\"%s\",\"%s\",\"%s\"", username, pass, hostname);

I am at a loss, and just another thing to note, the normal documentation here: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/FTP_AT_commands.html

really should be updated with the much more detailed information here: https://github.com/nrfconnect/sdk-nrf/blob/a0fc38d842f4772c04f957b2d473644b567a1950/applications/serial_lte_modem/doc/slm_testing.rst#ftp-at-commands

Thanks,

Kyle

Parents Reply
  • I have a meeting in less than 6 hours to demo this thing uploading 2kb datalogger files somehow... Right now I am trying to get that working via FTP or HTTP,  I really do not care which for the timebeing.

    The problem I am having with the HTTP class is it doesnt seem to actually send any data out to my server if i change the request from a "GET" to a "POST" I could still be doing something wrong there.

    I plugged my DK in to get a log and made my computer bluescreen again, I will have the trace for you in a few min

    Edit: was kinda expecting the last data post to be the easiest/quickest part since the functions are built into the modem.

Children
No Data
Related