Доброго вечера!Помогите разобраться с ошибкой уважаемые.
Мой комп, ОС: FreeBSD 10 x64
Имеется 3G модем от МТС, с DefaultVendor=0x12d1 и DefaultProduct=0x155b
Я его успешно перевожу в режим модема с помощью usb_modeswitch и такого конфига:
DisableSwitching=1
EnableLogging=0
DefaultVendor=0x12d1
DefaultProduct=0x155b
TargetVendor=0x12d1
TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
В системе появляются устройства /dev/cuaU0.{0,1,2}
Из них рабочий (который отзывается на команды) - /dev/cuaU0.0
Подключаю интернет конфигом ppp.conf
#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: release/9.1.0/etc/ppp/ppp.conf 203943 2010-02-16 01:07:06Z jkim $
#################################################################
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 5 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
mts:
enable force-scripts
set device /dev/cuaU0.0
set speed 460800
set timeout 0
set phone "*99#"
set authname "mts"
set authkey "mts"
set dial "ABORT BUSY TIMEOUT 2 \
\"\" AT OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"internet.mts.ru\\\" OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
ATDT*99# CONNECT"
set vj slotcomp off
set crtscts on
disable ipv6cp
disable pap
disable chap
enable dns
resolv rewrite
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
set timeout 5
И в результате получаю такой диалог, который ругается на саму команду дозвона ATDT*99#:
Aug 14 21:50:18 home ppp[4548]: tun0: Phase: deflink: Connected!
Aug 14 21:50:18 home ppp[4548]: tun0: Phase: deflink: opening -> dial
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Phone: *99#
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+CFUN=1^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+CFUN=1^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+CMEE=2^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+CMEE=2^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+CSQ^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+CSQ^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CSQ: 11,99^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: ^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+CGDCONT=1,"IP","internet.mts.ru"^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+CGDCONT=1,"IP","internet.mts.ru"^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+CGACT?^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+CGACT?^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 1,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 2,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 3,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 4,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 5,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 6,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 7,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 8,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 9,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 10,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGACT: 11,0^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: ^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+CGATT?^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+CGATT?^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGATT: 1^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: ^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+CGCLASS?^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+CGCLASS?^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +CGCLASS: "A"^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: ^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: AT+COPS?^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Expect(2): OK
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: AT+COPS?^M^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: +COPS: 0,0,"MTS RUS",2^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: ^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Received: OK^M
Aug 14 21:50:18 home ppp[4548]: tun0: Chat: Send: ATDT*99#*99#^M
Aug 14 21:50:20 home ppp[4548]: tun0: Chat: Expect(5): CONNECT
Aug 14 21:50:20 home ppp[4548]: tun0: Chat: Received: ATDT*99#*99#^M^M
Aug 14 21:50:20 home ppp[4548]: tun0: Chat: Received: ERROR^M
Помогите победить эту напасть пожалуйста и получить интернет!
Этот же модем с этой же симкой вот воткнул в ноут жены с виндой и всё работает, с него и пишу.