Вы находитесь на странице: 1из 3

, CMDA

1x/EVDO Linux.
AnyData ADU-520A -
AnyData.
:
1) Linux , ppp
libusb.
2) usb_modeswitch, EVDO-
CD-ROM/MMC-Flash - WEB-:
http://www.draisberghof.de/usb_modeswitch/
3) , , ,
. - ppp
.
:
: usb_modeswitch-0.9.4.tar.bz2 usb_modeswitch.conf.
:
tar -xf

usb_modeswitch-0.9.4.tar.bz2

usb_modeswitch
:
./compile.sh
:
cp usb_modeswitch /usr/bin/
, /etc:
cp usb_modeswitch /etc/
2 : change_modes.sh evdoskylink.sh:
touch change_modes.sh evdo-skylink.sh.
:
chmod 777 change_modes.sh evdo-skylink.sh
:
#!/bin/bash
/usr/bin/usb_modeswitch -v 05c6 -p 1000 -V 16d5 -P 6502 -m 0x00000008
\
-M 5553424328932a86000000000000061b000000020000000000000000000000
:

#!/bin/sh
mknod /dev/ppp c 108 0
DIALTIMEOUT=20
MODEM=ttyUSB0 SPEED=921600 MODEM_INIT='"AT+CRM=1;&C2" OK'
IH_IP=" ipcp-accept-local ipcp-accept-remote noipdefault
debug usepeerdns user mobile mtu 1400
novj nobsdcomp novjccomp nopcomp noaccomp"
LOGSCRIPT="CONNECT"
PHONE="#777"
# pppd default router,
# -
DR=`route -n | egrep '^0.0.0.0'| grep -v ppp | sed 's/^[^ ]* *\([^
]*\) .*/default gw \1/'` ;
if [ -n "$DR" ] ; then
trap "echo route add $DR ; route add $DR ; exit" 2 3 9 15
route delete $DR
echo route delete $DR
fi
########## pppd ########
while true ; do
pppd \
connect 'chat -v ABORT "NO DIALTONE" ABORT "NO CARRIER" ABORT
BUSY "" '"$MODEM_INIT"' ATDP'$PHONE' '"$LOGSCRIPT"' ;' \
crtscts defaultroute modem -detach mru 1400 \
$NASH_IP:$IH_IP /dev/$MODEM $SPEED
cat /etc/ppp/resolv.conf > /etc/resolv.conf
sleep $DIALTIMEOUT
done
, - :
, 5-10 dmesg,
, :
usb 6-1: new full speed USB device using uhci_hcd and address 2
usb 6-1: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: CD-ROM
AnyDATA CD-ROM
1.00 PQ: 0
ANSI: 2
sr0: scsi3-mmc drive: 0x/0x caddy
sr 3:0:0:0: Attached scsi CD-ROM sr0
sr 3:0:0:0: Attached scsi generic sg1 type 5
usb-storage: device scan complete
sr0: CDROM (ioctl) error, command: cdb[0]=0x46 46 00 00 00 00 00 00
00 20 00
sr: Sense Key : 0x0 [current]
sr: ASC=0x0 ASCQ=0x0
, , CD-ROM ? /dev/
: /dev/sr0. , Linux
HAL/UDEV -
- .
change_modes.sh, , .
, 5-10 dmesg:
usb 6-1: USB disconnect, address 2

usb 6-1: new full speed USB device using uhci_hcd and address 3
usb 6-1: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for
generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for
GSM modem (1-port)
option 6-1:1.0: GSM modem (1-port) converter detected
usb 6-1: GSM modem (1-port) converter now attached to ttyUSB0
option 6-1:1.1: GSM modem (1-port) converter detected
usb 6-1: GSM modem (1-port) converter now attached to ttyUSB1
option 6-1:1.2: GSM modem (1-port) converter detected
usb 6-1: GSM modem (1-port) converter now attached to ttyUSB2
usbcore: registered new interface driver option
drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
scsi 4:0:0:0: CD-ROM
AnyDATA CD-ROM
1.00 PQ: 0
ANSI: 2
sr0: scsi3-mmc drive: 0x/0x caddy
sr 4:0:0:0: Attached scsi CD-ROM sr0
sr 4:0:0:0: Attached scsi generic sg1 type 5
usb-storage: device scan complete
sr0: CDROM (ioctl) error, command: cdb[0]=0x46 46 00 00 00 00 00 00
00 20 00
sr: Sense Key : 0x0 [current]
sr: ASC=0x0 ASCQ=0x0
!!! - ttyUSB0 .. - !
evdo-skylink.sh -
, ifconfig
ppp0.
- .
PS: ,
( : 921600,
: 368 /, ,
).
PSS: /dev/
/dev/ttyUSB0 -
- - ( 230400)
2 ( Curitel-510 + USB-TO-COM
pl2303 (prolific)).
, - :)
, , -