我用HUAWEI E180 3G上网卡经过改一下支持E180的12d1.1414.ff 脚本后,再用以下命令能在友善的Tiny6410上连网
# 3g-ppp /system/etc/3g-modem/12d1.1414.ff
# call-ppp wcdma
但是当我用同样的方法在“华天正的6410”开发板上连网时却连接不上,现在我把这两种连网时的打印信息发出来,大家有兴趣的话可以帮分析一下,看是什么原因
1、在友善的Tiny6410上操作HUAWEI E180 3G上网卡
1.1、插入E180时
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem
will !
usb 1-1.2: new full speed USB device using s3c2410-ohci and address 3
usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1001
usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
usb 1-1.2: Product: HUAWEI Mobile
usb 1-1.2: Manufacturer: HUAWEI Technology
pl2303 1-1.2:1.0: pl2303 converter detected
usb 1-1.2: pl2303 converter now attached to ttyUSB0
pl2303 1-1.2:1.1: pl2303 converter detected
usb 1-1.2: pl2303 converter now attached to ttyUSB1
1.2、用# 3g-ppp /system/etc/3g-modem/12d1.1414.ff 进行拔号时
pl2303 ttyUSB0: pl2303_open - failed submitting interrupt urb, error -22
/system/bin/3g-ppp: line 7: can't open /dev/ttyUSB0: Protocol error
DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice enabled (default)
Success check disabled
System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 003 on 00pl2303 ttyUSB0: pl2303 converter now
discon0
pl2303 1-1.2:1.0: device disconnected
1
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 05e3:0606
searching devices, found USB ID 1d6b:0001
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matchingusb 1-1.2: USB disconnect, address 3
pl2303 ttyUSB1: pl2303 converter now disconnected from ttyUSB1
pl2303 1-1.2:1.1: device disconnected
product ID
target class ff not matching
adding device as default
searching devices, found USB ID 05e3:0606
searching devices, found USB ID 1d6b:0001
Found devices in default mode or class (1)
Accessing device 003 on bus 001 ...
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 ("pl2303")
OK, driver "pl2303" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Sending Huawei control message ...
OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.
usb 1-1.2: new full speed USB device using s3c2410-ohci and address 4
usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1001
usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
usb 1-1.2: Product: HUAWEI Mobile
usb 1-1.2: Manufacturer: HUAWEI Technology
option 1-1.2:1.0: pl2303 converter detected
usb 1-1.2: pl2303 converter now attached to ttyUSB0
option 1-1.2:1.1: pl2303 converter detected
usb 1-1.2: pl2303 converter now attached to ttyUSB1
option 1-1.2:1.2: pl2303 converter detected
usb 1-1.2: pl2303 converter now attached to ttyUSB2
pl2303 1-1.2:1.3: pl2303 converter detected
usb 1-1.2: pl2303 converter now attached to ttyUSB3
pl2303 1-1.2:1.4: pl2303 converter detected
usb 1-1.2: pl2303 converter now attached to ttyUSB4
1.3\然后用 # call-ppp wcdma
正常能连网时,执行 # call-ppp wcdma 是没有打印信号的
2、在华天正的6410上操作HUAWEI E180 3G上网卡
2.1、插入E180时
usb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
usb-storage: probe of 1-1:1.0 failed with error -1
option 1-1:1.0: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB0
scsi1 : SCSI emulation for USB Mass Storage devices
usb 1-1: New USB device found, idVendor=12d1, idProduct=1001
usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: HUAWEI Technology
usb 1-1: USB disconnect, address 2
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
option 1-1:1.0: device disconnected
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: configuration #1 chosen from 1 choice
usb-storage: probe of 1-1:1.0 failed with error -5
option 1-1:1.0: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB0
usb-storage: probe of 1-1:1.1 failed with error -5
option 1-1:1.1: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB1
usb-storage: probe of 1-1:1.2 failed with error -5
option 1-1:1.2: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB2
usb-storage: probe of 1-1:1.3 failed with error -1
option 1-1:1.3: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB3
usb-storage: probe of 1-1:1.4 failed with error -1
option 1-1:1.4: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB4
usb 1-1: New USB device found, idVendor=12d1, idProduct=1001
usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: HUAWEI Technology
2.2、用# 3g-ppp /system/etc/3g-modem/12d1.1414.ff 进行拔号时
chat: invalid option -- 'f'
BusyBox v1.16.0 (2010-03-17 17:09:39 KST) multi-call binary.
Usage: chat EXPECT [SEND [EXPECT [SEND...]]]
Useful for interacting with a modem connected to stdin/stdout.
A script consists of one or more "expect-send" pairs of strings,
each pair is a pair of arguments. Example:
chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'
DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice enabled (default)
Success check disabled
System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on)
USB error: couldn't opendir(): No such file or directory
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.
2.3、然后用 # call-ppp wcdma 出现以下错误信息
# rm failed for /var/run/ppp0-ok, No such file or directory
rm failed for /var/run/pppd2.tdb, No such file or directoryinit: untracked
pid d
呵呵,以上有点长,也写得有点乱,我搞了好几天了也找不出是什么问题
(注:我是按着友善Tiny6410来改的其中改了pl2303.c还有加进了3g-device.c文件,在make menuconfig里的配置也同样跟着改,我觉得拔号脚本是没问题的,感觉问题是出现在内核,华天正6410开发板用的内核是2.6.28.6版)