124 of 152 PSS5000/TEMA/803046/05
PSS 5000 – Technical Manual
B Upload Help Tools
echo skip : (optional) Don't get the ok2load.txt file
(if boot is running)
goto :end
:end
if exist tmpupl.txt del tmpupl.txt
set up5k_user=
set up5k_pass=
set ipaddr=
set uplname=
End of upload5k.bat
Example using
Upload5k.bat file
The example below shows an upload procedure using upload5k.bat. This is di-
vided into 2 stages: First,
dir reads the program directory on the PSS 5000
board. This provides the program number for the old program. Second, the old
program is downloaded and then the new uploaded. Both program numbers
must be entered.
C:\>upload5k demo beta 172.20.65.240 dir
********************************************************
*** begin dir ***
********************************************************
Connected to 172.20.65.240.
220 Service ready
User (172.20.65.240:(none)):
331 User name ok, need password
230 User logged in
ftp>
ftp> cd /pss_mem/1/prg
200 directory changed to /pss_mem/1/prg
ftp> dir
200 Command OK
150 Here it comes...
drwxr xr x 0 usr_b internal 0 Feb 03 00:00 .
drwxr xr x 0 usr_b internal 0 Feb 03 00:00 ..
r xr xr x 0 usr_b internal 458752 Feb 03 00:00 49902100.bin
rwxrwxr x 0 usr_b internal 786432 Mar 06 00:00 40191100.bin
226 Transfer OK, Closing connection
469 bytes received in 0,01 seconds (46,90 Kbytes/sec)
ftp> quit
221 Bye
C:\>upload5k demo beta 172.20.65.240 upload 40191100.bin
40199001.bin
********************************************************
*** get ok2load.txt file ***
********************************************************
Connected to 172.20.65.240.
220 Service ready
User (172.20.65.240:(none)):
331 User name ok, need password
230 User logged in
ftp>
ftp> cd /pss_mem/2/sys
200 directory changed to /pss_mem/2/sys
ftp> get ok2load.txt
200 Command OK