LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Put file via MyRio1900 Error 59 (TCP Open Connection)

Hello everybody and thank you in advance for your help. I'm trying to upload a file from a MyRio 1900 on a FTP Server. On my pc the code works, but when i ran it on the MyRio it gave me Error 59 (TCP Open connection. Possible reason: the network is down, unreachable or has been reset). I'm trying to upload it connecting the MyRio to a modem via WiFi. Attached the project.

 

Thank you in advance to everyone who helps me with this problem.

0 Kudos
Message 1 of 11
(3,943 Views)

Hello

NI does not recommend FTP method on the Linux-based targets.

Use NI WebDAV method to transfer file to RT targets.

Link- WebDAV Method

Example for WebDAV

 

0 Kudos
Message 2 of 11
(3,901 Views)

Thanks ram301090 for your answer, but i don't know if i explained well.

I would like to put that file on a FTP server because i don't have a static IP to reach, either i can't use Dynamic DNS,  so i preferred to use a FTP server of a website i have to put a file inside. With 2 PCs it works, but if i try to put the file on the server trough MyRio it doesn't work.

In which way WebDAV can help me? 

 

Thank you again

0 Kudos
Message 3 of 11
(3,896 Views)

The WebDAV protocol provides a framework for users to create, change and move documents on a server. It has lot of advantages over FTP. You can try the same operation with webdav.

0 Kudos
Message 4 of 11
(3,892 Views)

How is the myRIO connected to the network?

How do you get that error? 

How do you run your vi on the myRIO ? 

 

On the WebDAV, is it good as long as the server and client both support this protocol. 

But you shoudl be able to use FTP from the myRIO. 

And to be correct, the myRIO is NOT the FTP server, right? 

 

0 Kudos
Message 5 of 11
(3,886 Views)

Thansk for your answer.

 

@dkfire: 

How is the myRIO connected to the network?

I think that's the point, i tried to connect the MyRio via WiFi to a mobile modem, with a sim card. I thought it was enough to have the MyRio connected to the network.

 

How do you get that error? & How do you run your vi on the myRIO ? 

I just tried to run the Vi from the PC (not run as startup). I was connected to the MyRio in Local network with a USB to Eth adapter(eth1). 

 

And to be correct, the myRIO is NOT the FTP server, right?

 

Right, the MyRio is not the FTP server

 

0 Kudos
Message 6 of 11
(3,883 Views)

Thanks ram301090,

I'm sorry, i never used the WebDAV protocol, so what i don't understand is what URI i have to use. 

0 Kudos
Message 7 of 11
(3,881 Views)

Your problem is properly the way you connect to the myRIO. 

If you connect to the myRIO through the USB port, as a virtual network, it will most likely try to use that connection for the FTP also, and NOT the wifi. 

If you can, try to connect to the same wifi with your PC, and through the wifi connect to the myRIO. 

Then the myRIO will only have once network connection, the one that is working. 

0 Kudos
Message 8 of 11
(3,873 Views)

Yes i tried connecting it with the usb cable and it works, but is there a way to set something like a priority for the internet connection? Because usually it should work in a LAN, connected via ethernet to a SbRIo9636, and put files on the FTP trough the WiFi and the mobile modem.

0 Kudos
Message 9 of 11
(3,867 Views)

Sorry but I think i'm missing something here. 

What has the sbRIO to do with myRIO? 

If you are comparing the network connection from a sbRIO, that has a ethernet connection and no USB port, and a myRIO that has a wifi and a USB port as virtual network, there is a big difference. sbRIO only has one network port. 

If you do not use the USB port in the myRIO, then myRIO only has one port also. 

So the USB cable should, in your case, only be used to setup the myRIO, so that it can connect to the wifi, and then remove the USB cable. 

 

You have to look into Linux, to see if you can make a network card a priority. 

The myRIO is running a NI Linux version. 

 

0 Kudos
Message 10 of 11
(3,864 Views)