|
|

楼主 |
发表于 2009-8-11 18:37:46
|
显示全部楼层
我的/etc/udev/rules.d/91-usb_modeswitch.rules
~ cat /etc/udev/rules.d/91-usb_modeswitch.rules #SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch" ls /usr/sbin/usb_modeswitch -l-rwxr-xr-x 1 root root 30548 2009-08-08 22:01 /usr/sbin/usb_modeswitch 你看一下你的usb_modeswitch的文件大小 是不是30548
再看一下你的usb_modeswitch --help内有没有 -v, -p(小写的)
sudo usb_modeswitch --help * usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions
Usage: usb_modeswitch [-hvpVPmMrdHn] [-c filename]
-h, --help this help
[color="Red"] -v, --default-vendor [nr] vendor ID to look for (mandatory)
-p, --default-product [nr] product ID to look for (mandatory)
-V, --target-vendor [nr] target vendor (optional, for success check)
-P, --target-product [nr] target model (optional, for success check)
-C, --target-class [nr] target device class
-m, --message-endpoint [nr] where to direct the message (optional)
-M, --message-content [str] command to send (hex number as string)
-n, --need-response read a response to the message transfer
-r, --response-endpoint [nr] where from read the response (optional)
-d, --detach-only just detach the storage driver
-H, --huawei-mode apply a special procedure
-S, --sierra-mode apply a special procedure
-O, --sony-mode apply a special procedure
-R, --reset-usb reset the device in the end
-c, --config [filename] load different config file
-Q, --quiet don't show progress or error messages
-W, --verbose print all settings before running
-s, --success [nr] check switching result after [nr] secs
-I, --no-inquire do not get device details (default on)
-i, --interface select initial USB interface (default 0)
-u, --configuration select USB configuration
-a, --altsetting select alternative USB interface setting
如果上面都没有问题,你将MU350连接到电脑上后,手动执行以下命令试试
1./usr/sbin/usb_modeswitch -v 19d2 -p 0003 -M 5553424312345678000000000000061b000000020000000000000000000000 -R 1 2. 看一下 ls /dev/tty*
3. 再执行/sbin/modprobe usbserial vendor=0x19d2 product=0x0003 4. 再看一下ls /dev/tty* |
|