免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6260 | 回复: 8
打印 上一主题 下一主题

[网络管理] 华为ET302在嵌入式linux下如何用usb_modeswitch切换为modem模式? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-10-26 17:20 |只看该作者 |倒序浏览
我的配置文件
DefaultVendor=0x12d1
DefaultProduct=0x1d50

TargetVendor=0x12d1
TargetProduct=0x1d50

MessageContent="55534243123456780600000080010011060000000000000000000000000000"


TargetClass=0xff

CheckSuccess=20
NeedResponse=1


终端打印信息
# usb 1-1.1: new high speed USB device using rtl8652-ehci and address 9
usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1d50
usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.1: Product: HUAWEI Mobile System Solution
usb 1-1.1: Manufacturer: HUAWEI Mobile
usb 1-1.1: SerialNumber: 000000-00-0000000
parse_hotplug_info() devinfo:12d1:1d50
usb 1-1.1: configuration #1 chosen from 3 choices
init
++++++Ready start mount usb store++++
scsi4 : SCSI emulation for USB Mass Storage devices

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode found. Nothing to do. Bye.

Looking for target devices again ... add by Realtek
Looking for default devices again...add by May
Found devices in default mode, class or configuration (1)
Accessing device 009 on bus 001 ...
Getting the current device configuration ...
OK, got current deviusb 1-1.1: usbfs: process 1985 (usb_modeswitch) did not claim interface 0 before use
ce configuration (1)
Ambiguous Class/InterfaceClass: 0x02/0x08
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI
   Model String: Mobile CMCC CD
Revision String: 1.00
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Mobile
     Product: HUAWEI Mobile System Solution
  Serial No.: 000000-00-0000000
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (0 bytes).
Resetting response endpoint 0x81
Resetting message endpoint 0x01
++++++Ready start mount usb store++++

Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device still present after the timeout

Mode switch most likely failed. Bye.


mnet built on 2012.09.12-08:04+0000

usb 1-1: USB disconnect, address 7
usb 1-1.1: USB disconnect, address 9
parse_hotplug_info() devinfo:12d1:1d50
++++++Ready start mount usb store++++
parse_hotplug_info() devinfo:05e3:0610
usb 1-1: new high speed USB device using rtl8652-ehci and address 10
usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-1: Product: USB2.0 Hub
parse_hotplug_info() devinfo:05e3:0usb 1-1: configuration #1 chosen from 1 choice
610
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new high speed USB device using rtl8652-ehci and address 11
++++++Ready start mount usb store++++
usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1d50
usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.1: Product: HUAWEI Mobile System Solution
usb 1-1.1: Manufacturer: HUAWEI Mobile
usb 1-1.1: SerialNumber: 000000-00-0000000
parse_hotplug_info() devinfo:12d1:usb 1-1.1: configuration #1 chosen from 3 choices
1d50
scsi5 : SCSI emulation for USB Mass Storage devices
++++++Ready start mount usb store++++
scsi 5:0:0:0: CD-ROM            HUAWEI   Mobile CMCC CD   1.00 PQ: 0 ANSI: 0
sr0: scsi-1 drive
++++++Ready start mount usb store++++


我的内核版本是2.6.30

请问哪位大侠能帮帮小弟呢??怎么切换过来啊,有没有其他办法呢??

论坛徽章:
0
2 [报告]
发表于 2014-06-27 10:46 |只看该作者
楼主这个问题解决了吗?能否告知方法?
谢谢

论坛徽章:
0
3 [报告]
发表于 2015-08-05 09:19 |只看该作者
请问楼主解决了吗?lol

遇到类似的问题

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
4 [报告]
发表于 2015-08-05 09:20 |只看该作者
换成windows可破

论坛徽章:
0
5 [报告]
发表于 2015-08-08 18:01 |只看该作者
搞定了,楼主还需要不?
lollol

论坛徽章:
0
6 [报告]
发表于 2015-08-30 16:37 |只看该作者
回复 5# trublemaker


请问这位朋友,怎么切换呢


   

论坛徽章:
0
7 [报告]
发表于 2016-03-07 16:42 |只看该作者
回复 5# trublemaker


    请问你是怎么实现切换的,谢谢。

论坛徽章:
0
8 [报告]
发表于 2016-03-07 16:43 |只看该作者
回复 7# strivehappy


    请问你后来实现了吗?

论坛徽章:
0
9 [报告]
发表于 2016-03-07 16:45 |只看该作者
回复 1# lianghanjkl


   楼主后来实现了吗?请教下哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP