我是PCPentiun机,在上面挂了个硬盘,想在Target上加载FTP_SERVER文件服务,我加载后连接看不到Target上的文件和目录。为什么???
谁能帮帮我?QQ:22915614
急急急!!!
我用的ata(硬盘)启动,加载VxWorks成功。VxWorks下Target上加载FTP_SERVER后,通过PC机连接后看不到目录和文件。只看到Target的名字:lizaojun:
下面是我启动时通过串口看到的:
VxWorks System Boot
Copyright 1984-2002 Wind River Systems, Inc.
CPU: PC PENTIUM Version: VxWorks5.5.1 BSP version: 1.2/3 Creation date: Nov 10 2004, 11:29:58
0x2d93dc (tBoot): sysNvRamGet: open failed
Press any key to stop auto-boot... 0 auto-booting...
boot device : ata=0,0 unit number : 0 processor number : 0 host name : lizaojun file name : /ata0/vxWorks inet on ethernet (e) : 10.10.0.100 host inet (h) : 10.10.0.70 user (u) : lizaojun ftp password (pw) : 760913 flags (f) : 0x0 target name (tn) : targetname other (o) : rtl
Attaching to ATA disk device... done. Loading /ata0/vxWorks...696272 Starting at 0x308000...
Attached TCP/IP interface to rtl unit 0 Attaching interface lo0...done
VxWorks
Copyright 1984-2002 Wind River Systems, Inc.
CPU: PC PENTIUM Runtime Name: VxWorks Runtime Version: 5.5 BSP version: 1.2/2 Created: Nov 10 2004, 11:44:35 WDB Comm Type: WDB_COMM_NETWORK WDB: Ready.
ftpd running...
Path is: lizaojun:
New Path is: lizaojun:
其中的最后三行时我自己在usrAppInit (void)后面加的:
char UserName[256] = "sanhuan"; char Password[256] = "123456"; char pw[256]; char *pPathName;
if ( ftpdInit( (FUNCPTR)NULL, 0 ) == OK ) printf( "ftpd running...\n" ); else printf( "ftpd failed!...\n" ); /* create Ftp user */ ioDefPathGet( pPathName ); printf( "\nPath is: %s\n", pPathName ); loginDefaultEncrypt( Password, pw ) ; loginUserAdd( UserName, pw ); ioDefPathSet( "/c:" ); ioDefPathGet( pPathName ); printf( "\nNew Path is: %s\n", pPathName );
通过LeapFTP2.7.4连接:User:sanhuan Password:123456 FTPServer:10.10.0.100
自己用的PC机的IP:10.10.0.70
最后看到的结果:
Connecting to 10.10.0.100, Port 21 (#1) Connected. Waiting for response. 220 VxWorks (VxWorks5.5) FTP server ready USER lizoajun 331 Password required PASS xxxxxx 230 User logged in SYST 500 Command not recognized REST 100 500 Command not recognized PWD 257 Current directory is "lizaojun:" TYPE A 200 Type set to A, ASCII mode PORT 10,10,0,70,5,108 200 Port set okay LIST 150 Opening ASCII mode data connection 550 No files found or invalid directory or permission problem
通过FlashFXP连接的结果:
WinSock 2.0 -- OpenSSL 0.9.7d 17 Mar 2004 [左] 正在连接到 10.10.0.100 -> IP=10.10.0.100 PORT=21 [左] 已连接到 10.10.0.100 [左] 220 VxWorks (VxWorks5.5) FTP server ready [左] USER sanhuan [左] 331 Password required [左] PASS (hidden) [左] 230 User logged in [左] SYST [左] 500 Command not recognized [左] FEAT [左] 500 Command not recognized [左] REST 100 [左] 500 Command not recognized [左] 该站点可能不允许文件续传 [左] PWD [左] 257 Current directory is "lizaojun:" [左] TYPE A [左] 200 Type set to A, ASCII mode [左] PASV [左] 227 Entering Passive Mode (10,10,0,100,4,0) [左] 正在打开数据连接 IP: 10.10.0.100 端口: 1024 [左] LIST -al [左] 150 Opening ASCII mode data connection [左] 550 No files found or invalid directory or permission problem [左] 列表错误 [左] PASV [左] 227 Entering Passive Mode (10,10,0,100,4,11) [左] 正在打开数据连接 IP: 10.10.0.100 端口: 1035 [左] LIST -al [左] 150 Opening ASCII mode data connection [左] 550 No files found or invalid directory or permission problem [左] 列表错误
谁能帮帮我吗?
QQ:22915614
Email:lizaojun76@163.com
非常感谢!!!!
有奖活动 | |
---|---|
LoRaWAN模块技术在山火防控中的应用 | |
5月直播——【探索边缘智能的未来——直播盛宴即将开启!】 | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
【有奖活动】智能可穿戴设备AR/VR如何引领科技新潮流! |
打赏帖 | |
---|---|
换逻辑分析仪_STM32F103认识串口F103相关的知识认识被打赏18分 | |
“DFRobot盖革计数器模块评测”了解电离辐射对人体的危害被打赏8分 | |
“DFRobot盖革计数器模块评测”了解盖革计数器和电离辐射危害被打赏18分 | |
换逻辑分析仪_STM32F103_HAL库PWM呼吸灯被打赏23分 | |
换逻辑分析仪_STM32F103_(寄存器)PWM呼吸灯被打赏20分 | |
换逻辑分析仪STM32F103HAL库定时器被打赏13分 | |
换逻辑分析仪_STM32F103_(HAL库)驱动GPIO操作,点亮LED被打赏13分 | |
【分享评测,赢取加热台】+拆解一个儿童的python编程主控板被打赏20分 | |
【分享评测,赢取加热台】+拆解一个共享充电宝被打赏20分 | |
【换取手持数字示波器】+自制的STC无线调试器被打赏17分 |