天嵌 ARM开发社区

 找回密码
 注册
查看: 7634|回复: 7

TQ2440 + PDA文件系统3G拨号上网如何设置?

[复制链接]
qingfeng7204 发表于 2013-3-18 15:51:55 | 显示全部楼层 |阅读模式
本帖最后由 TQ-lkp 于 2013-3-18 17:22 编辑

请版主帮忙解答关于TQ2440下用PDA文件系统里面网络配置程序的3G拨号上网如何使用,谢谢?
TQ-lkp 发表于 2013-3-18 16:01:30 | 显示全部楼层
本帖最后由 TQ-lkp 于 2013-3-18 16:02 编辑

      首先要进行模式切换,使用命令usb_modeswitch  -Q(表示没有输出,调试阶段最好不要这个参数) -c  /etc/usb-configures/12d1.1446.12d1.140c
红色部分根据你模块的型号(可以在PC上使用lsusb查看)情况进行修改,如果没有这个配置文件,就需要到网上找或者要求供应商提供
切换成功就会生成/dev/ttyUSB0,/dev/ttyUSB1,/dev/ttyUSB2设备
      之后 就是调用pppd call evdo来拨号,具体在脚本在/etc/ppp目录中

 楼主| qingfeng7204 发表于 2013-3-18 17:00:42 | 显示全部楼层
TQ-lkp 发表于 2013-3-18 16:01
首先要进行模式切换,使用命令usb_modeswitch  -Q(表示没有输出,调试阶段最好不要这个参数) -c  /etc/ ...

C:\Users\Administrator\Desktop\lsusb.png
请问,我这个华为的3G应该usb-configures应该填什么?有点儿没看懂,谢谢
TQ-lkp 发表于 2013-3-18 17:21:01 | 显示全部楼层
要使用lsusb来查看设备的具体制造商ID和模块ID比如我用的是HUAWEI EC1260模块,插系统后,先显示
Bus 004 Device 008: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA modem)
这个是默认的制造商ID和产品ID

之后显示
Bus 004 Device 009: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
这个是实际的制造商ID和产品ID


所以转换语句为usb_modeswitch  -c  /etc/usb-configures/12d1.1446.12d1.1001


板子上执行命令如下:


[root@EmbedSky /]# lsusb
Bus 001 Device 001: ID 1d6b:0001
[root@EmbedSky /]# usb 1-1: new full speed USB device number 6 using s3c2416-ohci
scsi6 : usb-storage 1-1:1.0

[root@EmbedSky /]# scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
scsi 6:0:0:0: Attached scsi generic sg0 type 5

[root@EmbedSky /]# lsusb
Bus 001 Device 001: ID 1d6b:0001
Bus 001 Device 006: ID 12d1:1446
[root@EmbedSky /]# usb_modeswitch  -c  /etc/usb-configures/12d1.1446.12d1.1001

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
Found device in default mode, class or configuration (1)
Accessing device 006 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI  
   Model String: Mass Storage   
Revision String: 2.31
-------------------------

USB description data (for identification)
usb 1-1: usbfs: process 1390 (usb_modeswitch) did not claim interface 0 before use
-------------------------
Manufacturer: HUA�WEIusb 1-1: USB disconnect, device number 6
TECHNOLOGIES
     Product: HUAWEI Mobile
  Serial No.: �������������������
-------------------------
Setting up communication with interface 0
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Resetting response endpoint 0x87
Could not reset endpoint (probably harmless): -6
Resetting message endpoint 0x08
Could not reset endpoint (probably harmless): -6
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

[root@EmbedSky /]# usb 1-1: new full speed USB device number 7 using s3c2416-ohci
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
scsi10 : usb-storage 1-1:1.3
scsi 10:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
scsi 10:0:0:1: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
scsi 10:0:0:0: Attached scsi generic sg0 type 5
sd 10:0:0:1: Attached scsi generic sg1 type 0
sd 10:0:0:1: [sda] Attached SCSI removable disk


 楼主| qingfeng7204 发表于 2013-3-18 17:26:36 | 显示全部楼层
[root@gavin ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 002 Device 002: ID 0e0f:0002  
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@gavin ~]#
TQ-lkp 发表于 2013-3-19 10:11:23 | 显示全部楼层
恭喜楼主用的型号和我用的是一样的
vvb9137 发表于 2013-7-22 13:49:04 | 显示全部楼层
TQ-lkp 发表于 2013-3-18 17:21
要使用lsusb来查看设备的具体制造商ID和模块ID比如我用的是HUAWEI EC1260模块,插系统后,先显示
Bus 004 De ...

你好  请问切换模式以后为什么找不到ttyUSB0之类的设备号??





[root@EmbedSky /]# usb_modeswitch -W -v 12d1 -p 1da1 -V 12d1 -P 1da1 -D 0 -H 1
Taking all parameters from the command line


* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.3 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1da1
TargetVendor=   0x12d1
TargetProduct=  0x1da1
TargetClass=    not set
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 enabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
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:1446
   found matching vendor ID
  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:1446
   found matching vendor ID
  searching devices, found USB ID 1d6b:0001
No devices in default mode or class found. Nothing to do. Bye.

[root@EmbedSky /]# usb_modeswitch -W -v 1d6b -p 0001 -V 12d1 -P 1446 -D 0 -H 1
Taking all parameters from the command line


* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.3 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x1d6b
DefaultProduct= 0x0001
TargetVendor=   0x12d1
TargetProduct=  0x1446
TargetClass=    not set
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 enabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
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:1446
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0001
Found devices in target mode or class (1)
Looking for default devices ...
  searching devices, found USB ID 12d1:1446
  searching devices, found USB ID 1d6b:0001
   found matching vendor ID
   found matching product ID
   adding device
Found devices in default mode or class (1)
Accessing device 001 on bus 001 ...
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: Linux 2.6.30.4-EmbedSky ohci_hcd
     Product: S3C24XX OHCI
  Serial No.: s3c24xx
-------------------------
Sending Huawei control message ...
OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.
vvb9137 发表于 2013-7-22 13:51:43 | 显示全部楼层
本帖最后由 vvb9137 于 2013-7-22 14:11 编辑
TQ-lkp 发表于 2013-3-18 17:21
要使用lsusb来查看设备的具体制造商ID和模块ID比如我用的是HUAWEI EC1260模块,插系统后,先显示
Bus 004 De ...

板子是TQ2440 PDA文件系统哪里下载?  或者lsusb、usb什么的程序是否有的下载?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-20 18:41 , Processed in 1.046875 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表