06-18-2018 01:04 PM
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.
06-19-2018 07:35 AM
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
06-19-2018 08:42 AM
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
06-19-2018 08:57 AM
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.
06-19-2018 09:15 AM
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?
06-19-2018 09:22 AM
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
06-19-2018 09:27 AM
Thanks ram301090,
I'm sorry, i never used the WebDAV protocol, so what i don't understand is what URI i have to use.
06-19-2018 09:46 AM
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.
06-19-2018 10:20 AM
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.
06-19-2018 10:39 AM
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.