Блог О пользователеzybex

Регистрация

Календарь

  Сентябрь 2010  
Пн Вт Ср Чт Пт Сб Вс
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
 

HP Compaq nx7300 and Modem + sl-modem


Собираем ядро, включаю туда стандартные модули типа
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 http://ftp.de.debian.org/debian/pool/non-free/s/sl-modem/sl-modem-source_2.9.9d+e-pre2—10_i386.deb
wget http://ftp.de.debian.org/debian/pool/non-free/s/sl-modem/sl-modem-daemon_2.9.9d+e-pre2—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
и теперь можно пользоваться модемом.







 

Небольшой черновик по WiFi


###########################################################
WPA #######################################################

ssid : home
ssid broadcast: disable
channel : 1
authentication: WPA2-PSK
cipher type : TKIP

# ifconfig wlan1 192.168.3.10 up
# iwconfig wlan1 essid «home» mode Managed channel 10 rate auto
# /sbin/wpa_supplicant —iwlan1 —c/etc/wpa_supplicant.conf
# iwlist wlan1 scan


# cat /etc/wpa_supplicant.conf
# WPA-PSK
network={
scan_ssid=1
ssid=»home»
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP

group=CCMP TKIP

#wpa_passphrase home Jetbalance
#network={
# ssid=»home»
# #psk=»Jetbalance»
# psk=0207ad863e1d4dc7ffee7a1ca5474f0da55367b9363b2c25cc43998b12b57cdf
#}

psk=0207ad863e1d4dc7ffee7a1ca5474f0da55367b9363b2c25cc43998b12b57cdf
}


wlan1 IEEE 802,11b ESSID:«home?» Nickname:“»
Mode:Managed Frequency:2,412 GHz Access Point: 00:13:46:98:22:C5
Bit Rate:11 Mb/s Sensitivity=1/3
Retry limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=55/70 Signal level=-10 dBm Noise level=-65 dBm
Rx invalid nwid:0 Rx invalid crypt:8 Rx invalid frag:0
Tx excessive retries:4 Invalid misc:11 Missed beacon:0

###########################################################
Raznoe #####################################################

ifconfig ath0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255 up

ifconfig ath0 192.168.2.1 up
iwlist ath0 scan
tcpdump —n —e ath0


iface eth1 inet dhcp

сменить MAC на WiFi
ifconfig wifi0 down
ifconfig wifi0 hw ether xx:xx:xx:xx:xx:xx:
ifconfig wifi0 up


iwconfig ath0 essid «freeman» channel auto ap auto mode Managed rate auto

###########################################################
Kismet #####################################################

kismet.conf
servername=Kismet
suiduser=zybex
source=hostap,wlan1,orinocosource
enablesources=orinocosource
channelhop=true
channelvelocity=5