主题 : 关于心3G拔号上网的问题 复制链接 | 浏览器收藏 | 打印
请享受这无法回避的痛苦.....
级别: 新手上路
UID: 55514
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
综合积分: 40 分
注册时间: 2011-09-19
最后登录: 2011-12-22
楼主  发表于: 2011-09-22 09:52

 关于心3G拔号上网的问题

我用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版)
      
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2011-09-22 10:48
使用其他厂家的6410板,在Linux/android下进行3g上网都会有类似的杯具。这就是专业和业余的区别。
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
请享受这无法回避的痛苦.....
级别: 新手上路
UID: 55514
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
综合积分: 40 分
注册时间: 2011-09-19
最后登录: 2011-12-22
2楼  发表于: 2011-09-22 11:09

 回 1楼(mindee) 的帖子

呵呵,版主有什么解决办法吗?还是友善的3G上网这技术不能公开
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
3楼  发表于: 2011-09-22 11:18
驱动是开源的,脚本也是开放的。
只是拨号程序不开源。
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 侠客
UID: 14158
精华: 0
发帖: 52
金钱: 260 两
威望: 52 点
综合积分: 104 分
注册时间: 2010-02-03
最后登录: 2012-03-08
4楼  发表于: 2011-11-23 22:01
级别: 荣誉会员
UID: 34761
精华: 0
发帖: 1348
金钱: 6835 两
威望: 1367 点
综合积分: 2696 分
注册时间: 2010-12-21
最后登录: 2017-06-02
5楼  发表于: 2011-11-24 10:52
级别: 新手上路
UID: 43354
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2011-04-16
最后登录: 2017-09-13
6楼  发表于: 2012-05-30 12:16
NDK中调 system,
system("pppd call cdma2000);
system("/system/bin/hello") ;
pppd不能调用,hello可以调用,估计是权限问题,不知道要怎么改这个PPPD的权限问题