免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4607 | 回复: 1

华为E261 3D上网卡拨号上网脚本的设置问题 [复制链接]

论坛徽章:
1
金牛座
日期:2014-08-18 17:32:41
发表于 2015-01-20 12:54 |显示全部楼层
拨号总是不成功,求助
这个有官方求助渠道没有?

============调试信息如下=============
  1. # usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446
  2. Look for target devices ...
  3. No devices in target mode or class found
  4. Look for default devices ...
  5.    product ID matched
  6. Found devices in default mode (1)
  7. Access device 002 on bus 002
  8. Current configuration numberusb 2-1: USB disconnect, address 2
  9. is 1
  10. Use interface number 0
  11. Use endpoints 0x01 (out) and 0x81 (in)

  12. USB description data (for identification)
  13. -------------------------
  14. Manufacturer: HUAWEI Technology
  15.      Product: HUAWEI Mobile
  16.   Serial No.: not provided
  17. -------------------------
  18. Warning: MessageContent/StandardEject ignored; can't combine with special mode
  19. Using standard Huawei switching message
  20. Looking for active driver ...
  21. OK, driver detached
  22. Set up interface 0
  23. Use endpoint 0x01 for message sending ...
  24. Trying to send message 1 to endpoint 0x01 ...
  25. Device seems to have vanished right after sending. Good.
  26. Device is gone, skip any further commands

  27. Check for mode switch (max. 20 times, once per second) ...
  28. Search for target devices ...
  29. Search for target devices ...
  30. Search for target devices ...
  31. Search for target devices ...
  32. usb 2-1: new high speed USB device using ehci-omap and address 3
  33. option 2-1:1.0: GSM modem (1-port) converter detected
  34. usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
  35. option 2-1:1.3: GSM modem (1-port) converter detected
  36. usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
  37. option 2-1:1.4: GSM modem (1-port) converter detected
  38. usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
  39. scsi7 : usb-storage 2-1:1.5
  40. scsi8 : usb-storage 2-1:1.6
  41. Search for target devices ...
  42.    product ID matched

  43. Found target device, open it
  44. Found correct target device

  45. Mode switch succeeded. Bye!
复制代码
  1. # pppd call wcdma &
  2. timeout set to 5 seconds
  3. abort on (NO CARRIER)
  4. abort on (ERROR)
  5. abort on (NODIALTONE)
  6. abort on (BUSY)
  7. abort on (NO ANSWER)
  8. send (^MAT^M)
  9. expect (OK)
  10. AT^M^M
  11. OK
  12. -- got it

  13. send (^MATZ^M)
  14. expect (OK^MAT+CGDCONT=1,"IP","3gnet",,0,0)
  15. ^M
  16. ATZ^M^M
  17. OK^M
  18. alarm
  19. Failed
  20. Script /usr/sbin/chat -s -v -f /etc/ppp/peers/chat-wcdma-connect finished (pid 1736), status = 0x3
  21. Connect script failed
复制代码
拨号脚本如下
wcdma
  1. debug
  2. nodetach
  3. /dev/ttyUSB0
  4. 115200
  5. usepeerdns
  6. noauth
  7. noipdefault
  8. novj
  9. novjccomp
  10. noccp
  11. defaultroute
  12. ipcp-accept-local
  13. ipcp-accept-remote
  14. connect '/usr/sbin/chat -s -v -f/etc/ppp/peers/chat-wcdma-connect'
  15. disconnect '/usr/sbin/chat -s -v-f/etc/ppp/peers/chat-wcdma-disconnect'
复制代码
chat-wcdma-connect
  1. TIMEOUT 5
  2. ABORT 'NO CARRIER'
  3. ABORT 'ERROR'
  4. ABORT 'NODIALTONE'
  5. ABORT 'BUSY'
  6. ABORT 'NO ANSWER'
  7. '' \rAT
  8. OK \rATZ
  9. OK\rAT+CGDCONT=1,"IP","3GNET",,0,0
  10. OK-AT-OK ATDT*99#
  11. CONNECT \d\c
复制代码

论坛徽章:
1
金牛座
日期:2014-08-18 17:32:41
发表于 2016-04-09 16:02 |显示全部楼层
再次移植,发现又搜到自己的文章。

这是缺少另外两个脚本的原因
chap-secrets
pap-secrets
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP