华为 3G上网卡 E1750 在DM6446上移植的问题

yel617 2010-05-13 03:44:46

root@192.168.1.2:/opt/3g# lsusb
Bus 001 Device 002: ID 12d1:1446
Bus 001 Device 001: ID 04d6:0000 Mentor Graphics
root@192.168.1.2:/opt/3g# source init.sh
root@192.168.1.2:/opt/3g# ./usb_modeswitch

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode or class (1)
Accessing device 033 on bus 001 ...
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: Mass Storage
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manuusb 1-1: usbfs: process 1168 (usb_modeswitch) did not claim interface 0 before use
facturer: HUAWEIusb 1-1: USB disconnect, address 2
Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

root@192.168.1.2:/opt/3g# usb 1-1: new high speed USB device using musb_hdrc and address 3
pl2303 1-1:1.0: PL-2303 converter detected
usb 1-1: PL-2303 converter now attached to ttyUSB0
pl2303 1-1:1.1: PL-2303 converter detected
usb 1-1: PL-2303 converter now attached to ttyUSB1
pl2303 1-1:1.2: PL-2303 converter detected
usb 1-1: PL-2303 converter now attached to ttyUSB2
scsi2 : SCSI emulation for USB Mass Storage devices
scsi3 : SCSI emulation for USB Mass Storage devices
Vendor: HUAWEI Model: Mass Storage Rev: 2.31
Type: CD-ROM ANSI SCSI revision: 02
Vendor: HUAWEI Model: SD Storage Rev: 2.31
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0

root@192.168.1.2:/opt/3g# echo ATZ>/dev/ttyUSB0
usb 1-1: bash timed out on ep0out
root@192.168.1.2:/opt/3g# cat /dev/ttyUSB0
usb 1-1: cat timed out on ep0out



OK



root@192.168.1.2:/opt/3g# pppd call wcdma &
[1] 1479
root@192.168.1.2:/opt/3g# usb 1-1: pppd timed out on ep0out
usb 1-1: pppd timed out on ep0out
abort on (NO CARRIER)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (BUSY)
abort on (NO ANSWER)
send (^MAT^M)
expect (OK)
AT^M^M
OK
-- got it

send (^MATZ^M)
expect (OK)
^M
ATZ^M^M
OK
-- got it

send (^MAT+CGDCONT=1,"IP","3gnet",,0,0^M)
expect (OK)
^M
AT+CGDCONT=1,"IP","3gnet",,0,0^M^M
OK
-- got it

send (ATDT*99#^M)
expect (CONNECT)
^M
ATDT*99#^M^M
CONNECT
-- got it

send (\d)
Serial connection established.
usb 1-1: pppd timed out on ep0out
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
PAP authentication succeeded
Could not determine remote IP address: defaulting to 10.64.64.64
not replacing default route to eth0 [192.168.1.3]
Cannot determine ethernet address for proxy ARP
local IP address 172.24.192.54
remote IP address 10.64.64.64

root@192.168.1.2:/opt/3g# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.3 0.0.0.0 UG 0 0 0 eth0
root@192.168.1.2:/opt/3g# route del -net 192.168.1.0 netmask 255.255.255.0 deth0
root@192.168.1.2:/opt/3g# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0
default 192.168.1.3 0.0.0.0 UG 0 0 0 eth0
root@192.168.1.2:/opt/3g# ping 61.4.82.114
PING 61.4.82.114 (61.4.82.114) 56(84) bytes of data.
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available

--- 61.4.82.114 ping statistics ---
26 packets transmitted, 0 received, 100% packet loss, time 44203ms

网卡应该是识别了,而且已经拨号成功了,为什么会ping不通呢? 有没有人做过这个,给指点下
...全文
3642 24 打赏 收藏 转发到动态 举报
写回复
用AI写文章
24 条回复
切换为时间正序
请发表友善的回复…
发表回复
xqhrs232 2011-12-21
  • 打赏
  • 举报
回复
正解决同样的问题!!!
zhangxu_5613 2011-12-06
  • 打赏
  • 举报
回复
刚来社区,没分发帖,只求浑水摸鱼
xianghaibo11 2011-12-06
  • 打赏
  • 举报
回复
我遇到了在执行./usb_modeswitch时找不到设备。什么问题呀?
fensnote 2011-09-26
  • 打赏
  • 举报
回复
现在也在做这个,能不能把方法共享一下
yel617 2010-11-25
  • 打赏
  • 举报
回复
这个我博客里写的有
你可以进去看看
kuangmengjie 2010-11-25
  • 打赏
  • 举报
回复
这个移植起来是不是很麻烦?能不能把具体的方法告诉我啊?我打算试试啊
我的QQ是:271746207,邮箱:271746207@QQ.com,
还有就是好像没的这样的usb 3G上网卡都没有linux驱动,你是在那里找到的呢?
我想往dm355上面移植。
谢谢了!
kuangmengjie 2010-11-25
  • 打赏
  • 举报
回复
嗯好的,谢谢了,我找到了,正在研究!有问题再请教你啊!谢
yel617 2010-11-24
  • 打赏
  • 举报
回复
速度应该可以满足传输视频的要求,但我没试过
移植好了
kuangmengjie 2010-11-24
  • 打赏
  • 举报
回复
这个3G是在嵌入式下映射成usb转串口工作的,他的速度能满足视频传输的需求吗?还 有就是问一下版主是否成功移植了呢?
_flying_ 2010-05-31
  • 打赏
  • 举报
回复

我也在嵌入式linxu下使用E1750,没法做“交叉编译3G卡片驱动”这步。后来执行usb_modeswitch -W时出错。错误如下,有没有可帮忙解决一下啊,谢谢。

。。。。。
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
USB error: could not clear/halt ep 1: Connection timed out
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
yel617 2010-05-26
  • 打赏
  • 举报
回复
http://blog.csdn.net/yel617/archive/2010/05/18/5602934.aspx
我做的时候做的记录都在这里了 你看看吧
yaya102112002 2010-05-25
  • 打赏
  • 举报
回复
这3个设备都在,可以肯定,看起来有没有其他的问题呢?会不会是CHAP-SECRET不对?你那边设置的是什么?
yel617 2010-05-23
  • 打赏
  • 举报
回复
I//system/xbin/plugwatch( 494): /sys/class/tty/ttyUSB*: No such file or directory
感觉你好像没有建立设备节点,可以在dev下查看下 应该会建立3个节点 ttyUSB0,ttyUSB1,ttyUSB2
如果没有使用udev,就不会自动生成这些结点,所以需要手动创建这些字符节点
mknod /dev/ttyUSB0 c 188 0
mknod /dev/ttyUSB1 c 188 1
mknod /dev/ttyUSB2 c 188 2

yaya102112002 2010-05-21
  • 打赏
  • 举报
回复
最近我们的RD也在用华为的3G卡(E180)做LINUX/Android下的开发,不过总是跟ISP的沟通有问题,参见下面的log,猜想可能的原因是1》CHAP-SECRET用的不对,我们用的是bogus;2》PPP opinion。看到你的3G卡接入没有问题,能否帮忙释疑?非常感谢。

I//system/xbin/plugwatch( 494): HOTPLUG addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1 12d1 1001
I//system/xbin/plugwatch( 494): /sys/class/tty/ttyUSB*: No such file or directory
I//system/xbin/plugwatch( 494): rmmod: delete_module 'option' failed (errno 2)
I//system/xbin/plugwatch( 494): usbserial specific modprobe for our specific device
I//system/xbin/plugwatch( 494): HOTPLUG addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.0 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.0 12d1 1001
I//system/xbin/plugwatch( 494): HOTPLUG addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.1 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.1 12d1 1001
I//system/xbin/plugwatch( 494): HOTPLUG addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.2 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.2 12d1 1001
I//system/xbin/plugwatch( 494): HOTPLUG addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.3 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.3 12d1 1001
I//system/xbin/plugwatch( 494): HOTPLUG addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.4 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addusb /devices/platform/dwc_otg.1/usb2/2-1/2-1.1/2-1.1:1.4 12d1 1001
I//system/xbin/plugwatch( 494): HOTPLUG addtty ttyUSB0 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addtty ttyUSB0 12d1 1001
I//system/xbin/plugwatch( 494): NUM_TTY = 3
I//system/xbin/plugwatch( 494): NEW_TTY = /dev/ttyUSB2
I//system/xbin/plugwatch( 494): TODO!!!! shorten the sleep
I//system/xbin/plugwatch( 494): check if the SIM card is there and ready port /dev/ttyUSB2
I//system/xbin/plugwatch( 494): chat -t 4 -ev ABORT '+CME ERROR:' ABORT '+CPIN: SIM PIN' '' '' '' AT OK AT+CPIN? OK < /dev/ttyUSB2 > /dev/ttyUSB2
I//system/xbin/plugwatch( 494): ^BOOT:28061036,0,0,0,21
I//system/xbin/plugwatch( 494): ^SRVST:1
I//system/xbin/plugwatch( 494): ^MODE:5,4
I//system/xbin/plugwatch( 494): ^RSSI:17
I//system/xbin/plugwatch( 494): ^SIMST:1
I//system/xbin/plugwatch( 494): ^SRVST:2
I//system/xbin/plugwatch( 494): AT
I//system/xbin/plugwatch( 494): OK
I//system/xbin/plugwatch( 494): AT+CPIN?
I//system/xbin/plugwatch( 494): +CPIN: READY
I//system/xbin/plugwatch( 494): OK
I//system/xbin/plugwatch( 494): SIM PRESENT
I//system/xbin/plugwatch( 494): HOTPLUG addtty ttyUSB1 12d1 1001
I//system/xbin/plugwatch( 494): --- OPTION addtty ttyUSB1 12d1 1001
I//system/xbin/plugwatch( 494): NUM_TTY = 3
I//system/xbin/plugwatch( 494): NEW_TTY = /dev/ttyUSB2
I//system/xbin/plugwatch( 494): HOTPLUG addtty ttyUSB2 12d1 1001
[ 140.080392] init: untracked pid 1817 exited
[ 140.133651] init: untracked pid 1825 exited
I//system/xbin/plugwatch( 494): --- OPTION addtty ttyUSB2 12d1 1001
D/AndroidRuntime( 1828):
D/AndroidRuntime( 1828): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
I//system/xbin/plugwatch( 494): NUM_TTY = 3
D/AndroidRuntime( 1828): CheckJNI is ON
I//system/xbin/plugwatch( 494): NEW_TTY = /dev/ttyUSB2
D/AndroidRuntime( 1828): --- registering native functions ---
I//system/xbin/ppp_controller.sh( 1734): Broadcasting: Intent { action=android.intent.action.ANY_DATA_STATE (has extras) }
D/MobileDataStateTracker( 651): Received android.intent.action.ANY_DATA_STATE broadcast - state = CONNECTING, unavailable = false, APN = 3gnet, reason = (unspecified)
E/NetworkStateTracker( 651): setDetailedState(CONNECTING, null, 3gnet)
V/ConnectivityService( 651): ConnectivityChange for MOBILE: CONNECTING/CONNECTING
D/ConnectivityService( 651): handle connectivity change
D/AndroidRuntime( 1828): Shutting down VM
D/dalvikvm( 1828): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 1828): DestroyJavaVM shutting VM down
D/dalvikvm( 1828): HeapWorker thread shutting down
D/dalvikvm( 1828): HeapWorker thread has shut down
D/jdwp ( 1828): JDWP shutting down net...
D/dalvikvm( 1828): VM cleaning up
D/dalvikvm( 1828): LinearAlloc 0x0 used 647684 of 4194304 (15%)
I//system/xbin/ppp_controller.sh( 1734): chat -t 5 -ev '' 'AT+COPS=0' OK < /dev/ttyUSB2 > /dev/ttyUSB2
I//system/xbin/ppp_controller.sh( 1734): AT+COPS=0
I//system/xbin/ppp_controller.sh( 1734): OK
I//system/xbin/ppp_controller.sh( 1734): chat -t 5 -ev '' '' '' 'AT+COPS?' '+COPS: 0,' < /dev/ttyUSB2 > /dev/ttyUSB2
I//system/xbin/ppp_controller.sh( 1734): AT+COPS?
I//system/xbin/ppp_controller.sh( 1734): +COPS: 0,
I//system/xbin/ppp_controller.sh( 1734): nodetach
I//system/xbin/ppp_controller.sh( 1734): 115200
I//system/xbin/ppp_controller.sh( 1734): user card password card
I//system/xbin/ppp_controller.sh( 1734): usepeerdns
I//system/xbin/ppp_controller.sh( 1734): crtscts
I//system/xbin/ppp_controller.sh( 1734): show-password
I//system/xbin/ppp_controller.sh( 1734): usepeerdns
I//system/xbin/ppp_controller.sh( 1734): noauth
I//system/xbin/ppp_controller.sh( 1734): noipdefault
I//system/xbin/ppp_controller.sh( 1734): novj
I//system/xbin/ppp_controller.sh( 1734): novjccomp
I//system/xbin/ppp_controller.sh( 1734): noccp
I//system/xbin/ppp_controller.sh( 1734): defaultroute
I//system/xbin/ppp_controller.sh( 1734): ipcp-accept-local
I//system/xbin/ppp_controller.sh( 1734): ipcp-accept-remote
I//system/xbin/ppp_controller.sh( 1734): -am
I//system/xbin/ppp_controller.sh( 1734): connect "/system/xbin/chat -ev -f /data/local/.ppp.chat"
I//system/xbin/ppp_controller.sh( 1734): ^BOOT:28061036,0,0,0,21
E/power ( 651): Failed setting last user activity: g_error=0
E/pppd ( 1877): Connect script failed
yaya102112002 2010-05-21
  • 打赏
  • 举报
回复
错误发生在下面:

W/pppd ( 1880): LCP: timeout sending Config-Requests I/pppd ( 1880): Connection terminated.
W/pppd ( 1880): Receive serial link is not 8-bit clean:
W/pppd ( 1880): Problem: all had bit 7 set to 0
yel617 2010-05-20
  • 打赏
  • 举报
回复
不是做手机 也是做视频处理 把采集到的视频通过3G卡 传送出去
yangzhifu 2010-05-20
  • 打赏
  • 举报
回复
dm6446 做的手机?我们用来做视频处理
spfbc 2010-05-18
  • 打赏
  • 举报
回复
看看
回复内容太短了!
yel617 2010-05-18
  • 打赏
  • 举报
回复
网络已ping通 还是有点小问题
usb 1-1: cat timed out on ep0out
usb 1-1: pppd timed out on ep0out
在打印信息里总会出现这个,不知道是什么问题
yel617 2010-05-18
  • 打赏
  • 举报
回复
确实是网关的问题,问题已解决

wcdma:
nodetach
lock
/dev/ttyUSB0
115200
user "card"
password "card"
crtscts
show-password
usepeerdns
noauth
noipdefault
novj
novjccomp
noccp
defaultroute
ipcp-accept-local
ipcp-accept-remote
connect '/usr/sbin/chat -s -v -f chat-wcdma-connect'
disconnect '/usr/sbin/chat -s -v -f chat-wcdma-disconnect'

chat-wcdma-connect:
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' \rAT
OK \rATZ
OK \rAT+CGDCONT=1,"IP","3gnet",,0,0
OK-AT-OK ATDT*99#
CONNECT \d\c

chat-wcdma-disconnect:
ABORT "ERROR"
ABORT "NO DIALTONE"
SAY "\nSending break to the modem\n"
'' "\K"
'' "+++ATH"
SAY "\nGoodbay\n"
加载更多回复(4)

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧