主题 : Linux下DNW USB驱动和写入工具 - hulifox008提供 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
楼主  发表于: 2008-11-12 07:36

 Linux下DNW USB驱动和写入工具 - hulifox008提供

管理提醒: 本帖被 qq2440 执行置顶操作(2010-02-01)
Linux下DNW USB驱动和写入工具 - hulifox008提供,下载后将后缀名改成.tgz

使用方法见http://www.aiothome.com/bbs/read.php?tid=217
[ 此帖被qq2440在2009-10-21 11:28重新编辑 ]
描述:DNW Linux端驱动和写入工具
附件: dnw_linux.zip (3 K) 下载次数:1542
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 56632
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
贡献值: 0 点
综合积分: 2 分
注册时间: 2011-10-10
最后登录: 2011-10-19
1楼  发表于: 2011-10-10 22:08
楼主你好,我在网上下载了你的程序,然后按照楼主说的步骤,最后编译执行结果如下:
root@swi-desktop:/home/swi/Downloads# ./dnw2 ./dnw2.c
idVendor:0xe0f ,ipProduct:0x2 idVendor:0x1366 ,ipProduct:0x101
Target usb device found!
Filename : ./dnw2.c
Filesize : 2734 bytes
Writing data ...
usb_bulk_write failed: No such file or directory
我看了下源代码,是执行到
towrite = remain>512 ? 512 : remain;
if(towrite != usb_bulk_write(hdev, 0x03, write_buf+(len-remain), towrite, 3000))
{
    perror("usb_bulk_write failed");
    break;
}
出错,文件名我确定是存在的,不知道为什么会显示找不到文件呢?
还有,请教楼主,usb_bulk_write方法里面的参数说明一下,谢谢!!