hi,
I want to use a 3g modem on dm355,using libusb and usb-modeswitch, and dial by ppp.
firstly, i set up three ttyUSBs and run usb-modeswitch. the result is:
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 002 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
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 1-1: usbfs: process 1010 (usb_modeswitch) did not claim interface 0 before use
USB description data (for idenusb 1-1: USB disconnect, address 2
tification)
-------------------------
Manufacturer: HUAWEI 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
Resetting response endpoint 0x81
usb 1-1: new high speed USB device using musb_hdrc and address 3
usb 1-1: configuration #1 chosen from 1 choice
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
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
scsi 2:0:0:0: Attached scsi generic sg0 type 5
sd 3:0:0:0: Attached scsi removable disk sda
sd 3:0:0:0: Attached scsi generic sg1 type 0
Could not reset endpoint (probably harmless): -19
Resetting message endpoint 0x01
Could not reset endpoint (probably harmless): -19
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
And then i copy the executable files of pppd and chat in ppp-2.4.4 to /usr/sbin and run a script to dial
#pppd call wcdma
and the message is:
abort on (NO CARRIER)
expect (^M)
alarm
Failed
Connect script failed
The script of wcdma is:
debug
nodetach
lock
/dev/ttyUSB0
115200
user "card"
password "card"
nocrtscts
modem
show-password
usepeerdns
noauth
noipdefault
novj
novjccomp
noccp
defaultroute
ipcp-accept-local
ipcp-accept-remote
persist
connect '/usr/sbin/chat -s -v -f /etc/ppp/chat-wcdma-connect'
#disconnect '/usr/sbin/chat -s -v -f /etc/ppp/chat-wcdma-disconnect'
The script of chat-wcdma-connect is:
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
so what can i do?