Собираем ядро, включаю туда стандартные модули типа
OSS Mixer API И пр.
Обязательно включить
Intel HD Audio
Intel/SiS/nVidia/AMD/ALi AC97 Controller
Intel/SiS/nVidia/AMD MC97 Modem
Компилируем,устанавливаем.
скачал утилиту scanModem
./scanModem
cat Modem/scanout.00:1b.0 PCIDEV=8086:27d8
CLASS=»Class 0403: 8086:27d8"
NAME=»Audio device: Intel Corporation 82801G "
Vendor=8086
Device=27d8
SUBSYS=103c:30a2
SUBNAME=» Hewlett-Packard Company Unknown device 30a2"
Test=»./scanModem test 8086:27d8 103c:30a2"
SOFT=8086:27d8
VendorID=0x11c13026
SLMODEMD_DEVICE=hw:0,6
PORT="hw:0,6»
IDENT=slmodemd
wget —10_i386.deb
wget —7etch2_i386.deb
dpkg —i sl-modem-source_2.9.9d+e-pre2—10_i386.deb
m-a a-i sl-modem
dpkg —i sl-modem-daemon_2.9.9d+e-pre2—7etch2_i386.deb
modprobe snd_intel8x0m
slmodemd —country=RUSSIA —alsa hw:0,6
в новом терминале:
ls —la /dev/ttySL0 /dev/modem
lrwxrwxrwx 1 root root 6 2007—12-31 22:13 /dev/modem — > ttySL0
lrwxrwxrwx 1 root root 10 2007—12-31 22:14 /dev/ttySL0 — > /dev/pts/1
chmod 777 /dev/pts/1
cu —l /dev/pts/1 Connected.
atz
OK
ati0
SmartLink Soft Modem
OK
ati1
SmartLink Soft Modem, 2.9.9e-pre1
Smart Link Ltd.
OK
ati2
SmartLink Soft Modem, 2.9.9e-pre1
Smart Link Ltd.
OK
ati3
hw:0,6
alsa modem driver
OK
ati4
s00=000 s01=000 s02=043 s03=013 s04=010 s05=008 s06=002 s07=060
s08=002 s09=006 s10=007 s11=100 s12=050 s13=001 s14=000 s15=001
s16=001 s17=000 s18=000 s19=000 s20=000 s21=000 s22=000 s23=000
OK
ati5
Stored Profile 0:
OK
ati6
Stored Profile 1:
OK
ati7
Country: RUSSIA
OK
Меперь надо узнать, что у него за протокол настроен.
Ставлю заводские настройки и спрашиваю про протокол
at&f
OK
at+ms?
92,1,300,56000
OK
Получается, что по-умолчанию у него стоит протокл v92, максимальная скорость – 56000
Вот кусок из фирменного руководства по at-командам smartlink:
Цитата
AT+MS=[ mod ],[ automode ],[ min_rate ],[ max_rate]
[ mod ] a decimal number specifying the preferred modulation (automode enabled), or the modulation (automode disabled).
[ automode ] 0/1 Automode disabled/enabled
[ min_rate ] minimum rate for connection. If lower than the actual minimum rate for the selected modulation, the actual lowest supported rate will be taken.
[ max_rate] maximum rate for connection. If higher than the actual maximum rate for the selected modulation, the actual highest supported rate will be taken.
По-умолчанию включен v92, автоопределение включено, минимальная скорость – 300, максимальная – 56000. Надо выставить V90, автоопределение включить, минимальную такой же оставить, а максимум сбавить до 50666 – на наших линиях все равно больше вряд ли потянет. Делаем.
at+ms=90,1,300,50666
OK
at+ms?
90,1,300,50666
OK
Выставляем в kppp – в строках инициализации
в первой строке — atz – сброс модема
во второй строке
at&f+ms=90,1,300,50666 – выставить заводские настройки и настроить V90
и теперь можно пользоваться модемом.
OSS Mixer API И пр.
Обязательно включить
Intel HD Audio
Intel/SiS/nVidia/AMD/ALi AC97 Controller
Intel/SiS/nVidia/AMD MC97 Modem
Компилируем,устанавливаем.
скачал утилиту scanModem
./scanModem
cat Modem/scanout.00:1b.0 PCIDEV=8086:27d8
CLASS=»Class 0403: 8086:27d8"
NAME=»Audio device: Intel Corporation 82801G "
Vendor=8086
Device=27d8
SUBSYS=103c:30a2
SUBNAME=» Hewlett-Packard Company Unknown device 30a2"
Test=»./scanModem test 8086:27d8 103c:30a2"
SOFT=8086:27d8
VendorID=0x11c13026
SLMODEMD_DEVICE=hw:0,6
PORT="hw:0,6»
IDENT=slmodemd
wget —10_i386.deb
wget —7etch2_i386.deb
dpkg —i sl-modem-source_2.9.9d+e-pre2—10_i386.deb
m-a a-i sl-modem
dpkg —i sl-modem-daemon_2.9.9d+e-pre2—7etch2_i386.deb
modprobe snd_intel8x0m
slmodemd —country=RUSSIA —alsa hw:0,6
в новом терминале:
ls —la /dev/ttySL0 /dev/modem
lrwxrwxrwx 1 root root 6 2007—12-31 22:13 /dev/modem — > ttySL0
lrwxrwxrwx 1 root root 10 2007—12-31 22:14 /dev/ttySL0 — > /dev/pts/1
chmod 777 /dev/pts/1
cu —l /dev/pts/1 Connected.
atz
OK
ati0
SmartLink Soft Modem
OK
ati1
SmartLink Soft Modem, 2.9.9e-pre1
Smart Link Ltd.
OK
ati2
SmartLink Soft Modem, 2.9.9e-pre1
Smart Link Ltd.
OK
ati3
hw:0,6
alsa modem driver
OK
ati4
s00=000 s01=000 s02=043 s03=013 s04=010 s05=008 s06=002 s07=060
s08=002 s09=006 s10=007 s11=100 s12=050 s13=001 s14=000 s15=001
s16=001 s17=000 s18=000 s19=000 s20=000 s21=000 s22=000 s23=000
OK
ati5
Stored Profile 0:
OK
ati6
Stored Profile 1:
OK
ati7
Country: RUSSIA
OK
Меперь надо узнать, что у него за протокол настроен.
Ставлю заводские настройки и спрашиваю про протокол
at&f
OK
at+ms?
92,1,300,56000
OK
Получается, что по-умолчанию у него стоит протокл v92, максимальная скорость – 56000
Вот кусок из фирменного руководства по at-командам smartlink:
Цитата
AT+MS=[ mod ],[ automode ],[ min_rate ],[ max_rate]
[ mod ] a decimal number specifying the preferred modulation (automode enabled), or the modulation (automode disabled).
[ automode ] 0/1 Automode disabled/enabled
[ min_rate ] minimum rate for connection. If lower than the actual minimum rate for the selected modulation, the actual lowest supported rate will be taken.
[ max_rate] maximum rate for connection. If higher than the actual maximum rate for the selected modulation, the actual highest supported rate will be taken.
По-умолчанию включен v92, автоопределение включено, минимальная скорость – 300, максимальная – 56000. Надо выставить V90, автоопределение включить, минимальную такой же оставить, а максимум сбавить до 50666 – на наших линиях все равно больше вряд ли потянет. Делаем.
at+ms=90,1,300,50666
OK
at+ms?
90,1,300,50666
OK
Выставляем в kppp – в строках инициализации
в первой строке — atz – сброс модема
во второй строке
at&f+ms=90,1,300,50666 – выставить заводские настройки и настроить V90
и теперь можно пользоваться модемом.