LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP binary file put

Hi All,
 
I am developing a FTP application used for Firmware upgrade of an embedded hardware.
Embedded hardware acting as the server.
 
To upgrade the firmware I am opening a Telnent session (Labview) and giving the command.
Then I am opening a FTP session using 'Command prompt'  giving "PUT (Fille name)" command.
It is working fine from commad prompt.
 
If I am giving the same FTP command using the LabVIEW FTP browser example (available with  labVIEW),
as soon I start FTP program the upgrade session getting closed.I am getting this message from Telnet window.
There is now error out from FTP program but file is not transferred.
 
This is the first time I am using the Internet tool kit. What could be the problem?
Any examples or suggestions from u  will be useful for me.
Regards
SajK
0 Kudos
Message 1 of 4
(3,334 Views)


@SajK wrote:
Hi All,
 
I am developing a FTP application used for Firmware upgrade of an embedded hardware.
Embedded hardware acting as the server.
 
To upgrade the firmware I am opening a Telnent session (Labview) and giving the command.
Then I am opening a FTP session using 'Command prompt'  giving "PUT (Fille name)" command.
It is working fine from commad prompt.
 
If I am giving the same FTP command using the LabVIEW FTP browser example (available with  labVIEW),
as soon I start FTP program the upgrade session getting closed.I am getting this message from Telnet window.
There is now error out from FTP program but file is not transferred.
 
This is the first time I am using the Internet tool kit. What could be the problem?
Any examples or suggestions from u  will be useful for me.
Regards
SajK


What you describe is not really using FTP at all. You simply open a Telnet session and then invoke an FTP like command on
that session. The FTP Browser tries to open an FTP connection to the server and does not use Telnet at all. What you want to do is using the Telnet VIs, to implement the PUT command yourself.

Rolf Kalbermatter

Message Edited by rolfk on 02-19-2006 08:59 AM

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 4
(3,328 Views)

Hi Rolf,

I am not fully clarified from your answer.

Here I am using the same Ethernet port for Telnet and FTP. I am sending different commands to the Hardware using Telnet.

For firmware upgrade only, I will be using Telnet and FTP. If Upgrade command from Telnet session is given, then only FTP server will be launched in the Hardware.Then  LabVIEW FTP PUT file command is used to send binary file to hardware  (I am not sure what remote path should be given. Because I am writing to the processor memory).In this case file transfer is not taking place.There is no error also.

 
SajK
0 Kudos
Message 3 of 4
(3,310 Views)


@SajK wrote:

Hi Rolf,

I am not fully clarified from your answer.

Here I am using the same Ethernet port for Telnet and FTP. I am sending different commands to the Hardware using Telnet.

For firmware upgrade only, I will be using Telnet and FTP. If Upgrade command from Telnet session is given, then only FTP server will be launched in the Hardware.Then  LabVIEW FTP PUT file command is used to send binary file to hardware  (I am not sure what remote path should be given. Because I am writing to the processor memory).In this case file transfer is not taking place.There is no error also.


This is a very strange setup and I guess you will have to get the exact protocol specifications as implemented by your target and start to use single stepping debugging in LabVIEW to see where the problem might arise. As it is now, you definitely do not know enough details about your system to make this work properly.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(3,306 Views)