This is a kind of urgent. It would be highly appreciated if someone could
help me on this. I'm not very familiar with vxworks.
- Environment
1. We use vxworks on a hardware device which has a big flash memory. a big
firmware file is uploaded into the flash memory. This firmware file, I
assume, contains both application code and vxworks (am I right?). It also
includes a few web pages (htm files).
2. We can use a web browser on the host PC to access vxworks' web server
inside the flash memory, and open those web pages.
3. We can also use the NT's ftp client on the host PC to access vxworks' ftp
server inside the flash memory to download / upload a file from flash memory
into host PC / from host PC into flash memory without any problem.
- Qustion
How to use a web browser to
1. download a file from the flash memory into the host PC.
2. upload a file from the host PC into the flash memory.
We can use NT's ftp client to do it, but we do need to use a web browser to
do file downloading/uploading.
Thank you in advance.
Lee
Microsoft Internet Explorer 5.0 (and Netscape, I suppose) can access files
via FTP protocol, instead of HTML protocol. Simply type
ftp://your-target-ftp-server-name and that's it.
OR do you mean you have to use HTTP protocol (the "Web protocol"). In that
case, the VxWork part of your target's program must have an HTTP server (and
you usually don't have it, unless the people who purchased and configured
the VxWorks part had pay for it).
Thank you for the info. It helps.
Yes, it will be great if I can use IE's ftp protocal to download/upload
files.
I tried ftp://my-target-ftp-server-IP but IE popup an error message box
showing the following error messages:
An error occurred opening that folder on the FTP Server. Make sure you have
permission to access that folder.
Details:
200 Type set to A, ASCII mode
200 Port set okay
150 Opening ASCII mode data connection
550 No files found or invalid directory or permission problem.
It seems IE tries to connect the FTP server in flash memory, and FTP server
does have some response. Could you see what is wrong from the error
messages?
Is port important when connecting FTP server? How to find out my FTP
server's port? and how to specify the port number when use IE's ftp
protocol?
The firmware we upload into flash memory does have both Wind Web Server and
FTP Server. I can use NT's ftp client to upload/download files to/from
flash memory without any problems.
Thanks.
Lee
"Ignacio González" <igtorque...@eliopDOT.es> wrote in message
news:9gvojf$ps...@esiami.tsai.es...
Hari
The better part is to debug what is happening on your target side.
Do the following.
1. Point your web browser. Before make sure you have configured your
file system in the target. Otherwise you wont be able to see any files
over there.
2. make ftpdDebug = 1 to see what is happening on the target side.
3. Then you can upload a file by copying from PC and pasting to the
target in the IE window. Similiarily downloading a file is also
copying fromPC and pasting to the target on the IE window.
Kumar
"Lee" <L_X...@yahoo.com> wrote in message news:<9h0i03$bjubc$1...@ID-92003.news.dfncis.de>...
I've tried this with a PC-base target, and these are my conclusions:
1) The FTP server in the target has always a "default directory". If
not explicitely configured, my target uses the host (named woody:). So
the ftp command ls (LIST) would try to list the root directory of my
host (!), which usually has no permissions to be accesed by the
target.
2) When a "standard" FTP client is run (ftp.exe from MS, WS FTP95,
etc.), the client does not try to make a ls (LIST) command immediatly
over the default directory: it waits for the user to specify a
directory to look for: and when it is instructed to do so (ls /hdo/,
for instance), it interprets it as an absolute path. In my case, /hd0/
is mounted as the target's hard disk, so CWD /hd0/ makes target's
"C:\" the default drive and directory for subsequent ftp commands. So
far, so good.
3) But some *intelligent* ftp clients (like that in MS Internet
Explorer), after connection want to know the default path (they issue
a PWD command, which
gets "woody:" in my target), then try to list its contents (LIST) and
then issue the message you have described (because listing "woody:" is
denied.)
4) If you try to defeat those *intelligent* ftp clients, specifying
ftp://192.9.200.118/hd0/, the assume that /hd0/ is RELATIVE (!) to the
default directory ("woody:") and they issue something like CWD
woody:/hd0/, and here we are again with the same problem.
Who's more intelligent, Wind River or Micro Soft?
Suppose I use IE5.5 to access a ftp server, and that server needs UserName
and Password. How do I specify UserName and Password? Something like
ftp://ftp-server-ip?user:pass or what?
Thanks.
Lee
"Ignacio González" <igtorque...@eliopDOT.es> wrote in message
news:9gvojf$ps...@esiami.tsai.es...
>
> Suppose I use IE5.5 to access a ftp server, and that server needs UserName
> and Password. How do I specify UserName and Password? Something like
> ftp://ftp-server-ip?user:pass or what?
I believe the syntax is ftp://user:password@server-(name|ip)[:port]/[path]
Thank you for the infor. It helps.
It seems the default directory of VxWorks ftp server is "/flash". I see
it's defined in application code like:
#include <ioLib.h>
ioDefPathSet("/flash");
Also, I can see "/flash" as the root from the connection messages under Q1
below.
Q1: Why is there a difference between using Win2k's DOS ftp client and using
Windows-based ftp client such as ws_ftp (ws_ftp can be downloaded from
http://download.cnet.com/downloads/1,10150,0-10000-103-0-1-7,00.html?tag=&qt
=wsftp&cn=&ca=10000 )? I can use NT/2000's DOS ftp client to access the ftp
server of VxWorks inside flash memory, and list/download/upload files
without any problem, but when I use ws_ftp, the connection to VxWorks ftp
server could be established, but LIST command always failed, not even
mention download/upload files. The error msg is:
WINSOCK.DLL: WinSock 2.0
WS_FTP Pro 6.70T 2001.03.28, Copyright © 1992-2000 Ipswitch, Inc.
- -
connecting to xxx.xxx.xxx.xxx:21 (xxx.xxx.xxx.xxx is the ftp server IP)
Connected to xxx.xxx.xxx.xxx port 21 (xxx.xxx.xxx.xxx is the ftp server IP)
220 VxWorks (5.4) FTP server ready
USER root
331 Password required
PASS (hidden)
230 User logged in
PWD
257 Current directory is "/flash"
Host type (I): VxWorks
PORT xxx,xxx,xxx,xxx,8,121 (xxx,xxx,xxx,xxx is the client IP)
200 Port set okay
LIST
150 Opening ASCII mode data connection
Received 89 bytes in 0.1 secs, (8900.00 bps), transfer succeeded
550 No files found or invalid directory or permission problem
! Retrieve of folder listing failed (5)
Why ws_ftp LIST command fails while I can use "ls" (LIST command) with Win2k
DOS ftp client without any problems? If I do need to use ws_ftp to work
with VxWorks ftp server to list/download/upload files, is there any
workaround available?
Q2:
- the VxWorks ftp server's IP is "ftp-server-ip"
- the root is "/flash" (this is the only place I can see after
ftp connection is established)
- ftp server also needs UserName as "usr" and Password as "ps".
Now, what URL should I use on IE5.5 to connect to this ftp server?
ftp://ftp-server-ip/flash?usr:ps, or something else?
Thank you in advance
"Ignacio González" <igto...@eliop.es> wrote in message
news:9ec53d11.01062...@posting.google.com...
Thanks for the info. Where can I find the syntax? Is there a document or
web site I can check?
How to specify binary or ascii when connect to the server. Which one is the
default?
Thanks
Lee
"Simon Farnsworth" <simon.fa...@snellwilcox.com> wrote in message
news:3B38CD00...@snellwilcox.com...