Sending data trough ethernet to FTP (not working)

August 30, 2024, 23:22

lurko15

Hi! I'm trying to use this program with a Raspberry Pi Pico with the W5100S module to measure the temperature and upload it to a server via FTP over Ethernet. However, I get the following error:
MPY: soft reboot
Ethernet initialized.
Temperature: 102.18 C
Connecting to FTP...
FTP error: -6
(This is a program error not python error) Can someone please help me with this? (I'm quite a beginner in raspberry pi and micropython)

thunder07337

Can you manually establish a connection to the FTP?

lurko15

No

lurko15

I mean with the pi pico no, trough filezilla app yes

lurko15

<@1187039958561726494>

thunder07337

Try the
scp
command directly in the console.

lurko15


lurko15

here at the bottom?

thunder07337

No, open cmd in Windows and enter the scp command there.

lurko15


thunder07337

No idea how I came up with scp now, ftp of course. So try the following command, but replace the placeholders with your data.
ftp://USER:PASSWORD@SERVER_ADDRESS:PORT

lurko15

In cmd?

thunder07337

Power Shell, cmd, Terminal, command Line Interface (CLI)

lurko15

ftp://lurko15:ftptest123@ftp.nethely.hu:21

lurko15

I don't really understand what we're trying to do with this, if its good for u we can do this in voice chat maybe

lurko15

I just really need this thing to work

thunder07337

No, I don't have time for voice chat. And at the times you reply, I'm already asleep because I'm working. Explain your project. You have the Pico, which is supposed to send data to a server? What kind of server is it that you want to connect to with FTP? Is it Linux or Windows?

lurko15

A simple FTP storage server

lurko15

Yes a file

lurko15

About the temperature

lurko15

And every time it should refresh the file with the new data

thunder07337

Linux or Windows?

lurko15

Im not sure but probably windows

thunder07337

How are you not sure? Don't you know your own servers? If it's Windows, then I can't help you any further.

thunder07337

And you should urgently find out which operating system is on the system on which the FTP is running. How can you troubleshoot without such important information?

lurko15

its a windows server

thunder07337

No, I have no idea. I'm not familiar with Windows and FTP.

lurko15

Okay, thanks anyway!