make
make -C modem all
make[1]: Entering directory `/home/milad/Desktop/slmodem/modem'
make[1]: Warning: File `.build_profile' has modification time 4.8e+04 s in the future
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c modem_main.c
modem_main.c:45:20: error: unistd.h: No such file or directory
modem_main.c:46:20: error: stdlib.h: No such file or directory
modem_main.c:47:19: error: stdio.h: No such file or directory
modem_main.c:48:20: error: string.h: No such file or directory
modem_main.c:49:19: error: errno.h: No such file or directory
modem_main.c:50:21: error: termios.h: No such file or directory
modem_main.c:51:19: error: fcntl.h: No such file or directory
modem_main.c:52:23: error: sys/types.h: No such file or directory
modem_main.c:53:22: error: sys/stat.h: No such file or directory
modem_main.c:54:23: error: sys/ioctl.h: No such file or directory
modem_main.c:55:22: error: sys/mman.h: No such file or directory
modem_main.c:56:19: error: sched.h: No such file or directory
modem_main.c:57:20: error: signal.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from modem_main.c:58:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
modem_main.c:59:17: error: grp.h: No such file or directory
In file included from ./modem.h:49,
from modem_main.c:70:
./modem_defs.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u8’
./modem_defs.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u16’
./modem_defs.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u32’
./modem_defs.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s8’
./modem_defs.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s16’
./modem_defs.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s32’
In file included from ./modem.h:50,
from modem_main.c:70:
./modem_homolog.h:53: error: expected specifier-qualifier-list before ‘u8’
./modem_homolog.h:103: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘id’
In file included from ./modem.h:51,
from modem_main.c:70:
./modem_dp.h:82: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem_dp.h:83: error: expected declaration specifiers or ‘...’ before ‘u8’
In file included from modem_main.c:70:
./modem.h:138: error: expected specifier-qualifier-list before ‘u16’
./modem.h:174: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:175: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:191: error: expected specifier-qualifier-list before ‘u16’
./modem.h:219: error: expected specifier-qualifier-list before ‘u8’
./modem.h:263: error: field ‘termios’ has incomplete type
./modem.h:319: error: expected specifier-qualifier-list before ‘u8’
./modem.h:340: error: expected specifier-qualifier-list before ‘u32’
./modem.h:342: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:343: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:354: error: expected specifier-qualifier-list before ‘u8’
./modem.h:371: error: expected specifier-qualifier-list before ‘u8’
./modem.h:436: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:437: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:439: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:440: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:442: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:443: error: expected declaration specifiers or ‘...’ before ‘u8’
modem_main.c:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘modem_perm’
modem_main.c: In function ‘modemap_start’:
modem_main.c:555: warning: implicit declaration of function ‘ioctl’
modem_main.c:559: warning: implicit declaration of function ‘memset’
modem_main.c:559: warning: incompatible implicit declaration of built-in function ‘memset’
modem_main.c:560: warning: implicit declaration of function ‘write’
modem_main.c: In function ‘mdm_device_read’:
modem_main.c:602: warning: implicit declaration of function ‘read’
modem_main.c: In function ‘mdm_device_setup’:
modem_main.c:616: error: storage size of ‘stbuf’ isn’t known
modem_main.c:618: warning: incompatible implicit declaration of built-in function ‘memset’
modem_main.c:619: warning: implicit declaration of function ‘stat’
modem_main.c:621: warning: implicit declaration of function ‘fprintf’
modem_main.c:621: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:621: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:621: error: (Each undeclared identifier is reported only once
modem_main.c:621: error: for each function it appears in.)
modem_main.c:621: warning: implicit declaration of function ‘strerror’
modem_main.c:621: error: ‘errno’ undeclared (first use in this function)
modem_main.c:621: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
modem_main.c:624: warning: implicit declaration of function ‘S_ISCHR’
modem_main.c:625: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:629: warning: implicit declaration of function ‘open’
modem_main.c:629: error: ‘O_RDWR’ undeclared (first use in this function)
modem_main.c:631: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:631: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
modem_main.c:635: warning: implicit declaration of function ‘minor’
modem_main.c:616: warning: unused variable ‘stbuf’
modem_main.c: In function ‘mdm_device_release’:
modem_main.c:641: warning: implicit declaration of function ‘close’
modem_main.c: At top level:
modem_main.c:651: error: ‘PATH_MAX’ undeclared here (not in a function)
modem_main.c: In function ‘create_pty’:
modem_main.c:655: error: storage size of ‘termios’ isn’t known
modem_main.c:662: warning: implicit declaration of function ‘getpt’
modem_main.c:663: warning: implicit declaration of function ‘grantpt’
modem_main.c:663: warning: implicit declaration of function ‘unlockpt’
modem_main.c:664: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:664: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:664: error: ‘errno’ undeclared (first use in this function)
modem_main.c:664: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:672: warning: implicit declaration of function ‘tcgetattr’
modem_main.c:674: warning: implicit declaration of function ‘cfmakeraw’
modem_main.c:675: warning: implicit declaration of function ‘cfsetispeed’
modem_main.c:675: error: ‘B115200’ undeclared (first use in this function)
modem_main.c:676: warning: implicit declaration of function ‘cfsetospeed’
modem_main.c:679: warning: implicit declaration of function ‘tcsetattr’
modem_main.c:679: error: ‘TCSANOW’ undeclared (first use in this function)
modem_main.c:681: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:681: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:685: warning: implicit declaration of function ‘fcntl’
modem_main.c:685: error: ‘F_SETFL’ undeclared (first use in this function)
modem_main.c:685: error: ‘O_NONBLOCK’ undeclared (first use in this function)
modem_main.c:687: warning: implicit declaration of function ‘ptsname’
modem_main.c:687: warning: assignment makes pointer from integer without a cast
modem_main.c:695: warning: implicit declaration of function ‘getgrnam’
modem_main.c:695: warning: initialization makes pointer from integer without a cast
modem_main.c:697: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:697: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
modem_main.c:701: warning: implicit declaration of function ‘chown’
modem_main.c:701: error: dereferencing pointer to incomplete type
modem_main.c:703: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:703: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
modem_main.c:709: warning: implicit declaration of function ‘chmod’
modem_main.c:709: error: ‘modem_perm’ undeclared (first use in this function)
modem_main.c:711: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:711: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
modem_main.c:716: warning: implicit declaration of function ‘unlink’
modem_main.c:717: warning: implicit declaration of function ‘symlink’
modem_main.c:718: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:718: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
modem_main.c:723: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:655: warning: unused variable ‘termios’
modem_main.c: At top level:
modem_main.c:743: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘keep_running’
modem_main.c: In function ‘mark_termination’:
modem_main.c:748: error: ‘keep_running’ undeclared (first use in this function)
modem_main.c: In function ‘modem_run’:
modem_main.c:754: error: storage size of ‘tmo’ isn’t known
modem_main.c:755: error: ‘fd_set’ undeclared (first use in this function)
modem_main.c:755: error: expected ‘;’ before ‘rset’
modem_main.c:756: error: storage size of ‘termios’ isn’t known
modem_main.c:762: error: ‘keep_running’ undeclared (first use in this function)
modem_main.c:774: warning: implicit declaration of function ‘FD_ZERO’
modem_main.c:774: error: ‘rset’ undeclared (first use in this function)
modem_main.c:775: error: ‘eset’ undeclared (first use in this function)
modem_main.c:777: warning: implicit declaration of function ‘FD_SET’
modem_main.c:792: warning: implicit declaration of function ‘select’
modem_main.c:792: error: ‘NULL’ undeclared (first use in this function)
modem_main.c:795: error: ‘errno’ undeclared (first use in this function)
modem_main.c:795: error: ‘EINTR’ undeclared (first use in this function)
modem_main.c:797: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:797: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:797: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:804: warning: implicit declaration of function ‘FD_ISSET’
modem_main.c:815: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:815: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:825: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:825: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:850: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:850: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:859: warning: incompatible implicit declaration of built-in function ‘memset’
modem_main.c:862: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:862: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:866: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:877: warning: implicit declaration of function ‘memcmp’
modem_main.c:889: error: ‘EAGAIN’ undeclared (first use in this function)
modem_main.c:893: error: ‘EIO’ undeclared (first use in this function)
modem_main.c:896: error: ‘HUPCL’ undeclared (first use in this function)
modem_main.c:901: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:913: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:913: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:922: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:756: warning: unused variable ‘termios’
modem_main.c:754: warning: unused variable ‘tmo’
modem_main.c: In function ‘modem_main’:
modem_main.c:940: warning: implicit declaration of function ‘basename’
modem_main.c:940: warning: passing argument 1 of ‘modem_debug_init’ makes pointer from integer without a cast
modem_main.c:944: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:944: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:945: warning: implicit declaration of function ‘exit’
modem_main.c:945: warning: incompatible implicit declaration of built-in function ‘exit’
modem_main.c:953: warning: implicit declaration of function ‘sprintf’
modem_main.c:953: warning: incompatible implicit declaration of built-in function ‘sprintf’
modem_main.c:955: warning: passing argument 2 of ‘modem_create’ makes pointer from integer without a cast
modem_main.c:956: warning: assignment makes pointer from integer without a cast
modem_main.c:962: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:963: warning: incompatible implicit declaration of built-in function ‘exit’
modem_main.c:966: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:969: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:973: error: storage size of ‘prm’ isn’t known
modem_main.c:974: warning: implicit declaration of function ‘mlockall’
modem_main.c:974: error: ‘MCL_CURRENT’ undeclared (first use in this function)
modem_main.c:974: error: ‘MCL_FUTURE’ undeclared (first use in this function)
modem_main.c:975: error: ‘errno’ undeclared (first use in this function)
modem_main.c:975: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:977: warning: implicit declaration of function ‘sched_get_priority_max’
modem_main.c:977: error: ‘SCHED_FIFO’ undeclared (first use in this function)
modem_main.c:978: warning: implicit declaration of function ‘sched_setscheduler’
modem_main.c:979: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:973: warning: unused variable ‘prm’
modem_main.c:984: warning: implicit declaration of function ‘signal’
modem_main.c:984: error: ‘SIGINT’ undeclared (first use in this function)
modem_main.c:985: error: ‘SIGTERM’ undeclared (first use in this function)
modem_main.c:998: warning: implicit declaration of function ‘usleep’
modem_main.c:1011: warning: incompatible implicit declaration of built-in function ‘exit’
modem_main.c:934: warning: unused variable ‘path_name’
make[1]: *** [modem_main.o] Error 1
make[1]: Leaving directory `/home/milad/Desktop/slmodem/modem'
make: *** [modem] Error 2
milad@khajavi:~/Desktop/slmodem$
راه حل چیه؟$ cd ~/Desktop
$ tar zxvf slamr*.tgz
$ cd slamr-2.6.20-15-generic
$ sudo ./setup
اکنون پس از نصب دستورات زیر رو اجرا کن: $ sudo gedit /etc/default/sl-modem-daemon
دستور بالا یه ویرایشگر متنی رو باز میکنه، دنبال خطی مثل زیر بگردید.
SLMODEMD_COUNTRY=USA
اگر کشور چیز دیگری غیر از USA بود، اون رو به مانند بالا تغییر بدید.
و حالا با دستور زیر مودم آماده کار میشه:
slmodemd -c USA /dev/slamr0
سلام دوست عزیز.
اگر شما از نسخه 7.04 اوبونتو استفاده می کنید، باید بسته های زیر رو:
libc6-dev
linux-libc-dev
از آدرس http://packages.ubuntu.com/feisty/ دریافت و نصب کنید.
ابتدا به آدرس http://linmodems.technion.il/packages/smartlink/ برو.
و بسته ای به نام slamr-2.6.20-15-generic.tgz (http://linmodems.technion.il/packages/smartlink/) رو دانلود کن.
اون رو تو دسکتاپ بریزید.
و حالا دستورات زیر رو اجرا کنید:
کد: [انتخاب]$ cd ~/Desktop
اکنون پس از نصب دستورات زیر رو اجرا کن:
$ tar zxvf slamr*.tgz
$ cd slamr-2.6.20-15-generic
$ sudo ./setupکد: [انتخاب]$ sudo gedit /etc/default/sl-modem-daemon
دستور بالا یه ویرایشگر متنی رو باز میکنه، دنبال خطی مثل زیر بگردید.
SLMODEMD_COUNTRY=USA
اگر کشور چیز دیگری غیر از USA بود، اون رو به مانند بالا تغییر بدید.
و حالا با دستور زیر مودم آماده کار میشه:
slmodemd -c USA /dev/slamr0
milad@khajavi:~$ cd /home/milad/Desktop/slamr2
milad@khajavi:~/Desktop/slamr2$ sudo ./setup
Password:
Sorry, try again.
Password:
driver=slamr
When asked about your country, Enter:
USA
Installing the Debian packages supporting autoloading
(Reading database ... 89764 files and directories currently installed.)
Preparing to replace sl-modem-daemon 2.9.10+2.9.9d+e-pre2-5build1 (using sl-modem-daemon_2.9.10+2.9.9d+e-pre2-5build1_i386.deb) ...
Shutting down SmartLink Modem driver normally ... no slmodemd daemon running.
Unloading modem driver from kernel ... none found.
Unpacking replacement sl-modem-daemon ...
Setting up sl-modem-daemon (2.9.10+2.9.9d+e-pre2-5build1) ...
FATAL: Error inserting ungrab_winmodem (/lib/modules/2.6.20-15-generic/extra/ungrab-winmodem.ko): Invalid module format
FATAL: Error inserting slamr (/lib/modules/2.6.20-15-generic/extra/slamr.ko): Invalid module format
FATAL: Error inserting ungrab_winmodem (/lib/modules/2.6.20-15-generic/extra/ungrab-winmodem.ko): Invalid module format
FATAL: Error inserting slamr (/lib/modules/2.6.20-15-generic/extra/slamr.ko): Invalid module format
Starting SmartLink Modem driver for: slamr0.
Creating /dev/modem symlink, pointing to: /dev/ttySL0.
Copying over newer files
cp: cannot stat `sl-modem-daemon.modutils': No such file or directory
Making folder /lib/modules/2.6.20-15-generic/extra
Copying drivers to /lib/modules/2.6.20-15-generic/extra
Checking driver install
slamr.ko slusb.ko ungrab-winmodem.ko
Finished installs.
Informing the System
Starting function tests, loading drivers:
Running diagnostic:
[ 45.848153] slamr: disagrees about version of symbol struct_module
[ 66.176404] slamr: disagrees about version of symbol struct_module
[ 66.261847] slamr: disagrees about version of symbol struct_module
[ 66.586041] slamr: disagrees about version of symbol struct_module
[ 270.120577] slamr: disagrees about version of symbol struct_module
[ 270.277504] slamr: disagrees about version of symbol struct_module
[ 270.759219] slamr: disagrees about version of symbol struct_module
[ 288.262412] slamr: module license 'Smart Link Ltd.' taints kernel.
[ 288.314109] slamr: SmartLink AMRMO modem.
[ 288.319715] slamr: probe 163c:3052 SL1900 card...
[ 288.670540] slamr: slamr0 is SL1900 card.
ports should be created by:
slmodemd -c USA /dev/slamr0
SmartLink Soft Modem: version 2.9.9e-pre1 May 28 2006 17:44:44
symbolic link `/dev/ttySL0' -> `/dev/pts/1' created.
modem `slamr0' created. TTY is `/dev/pts/1'
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.
milad@khajavi:~/Desktop/slamr2$ slmodemd -c USA /dev/slamr0
SmartLink Soft Modem: version 2.9.9e-pre1 May 28 2006 17:44:44
error: cannot create symbolink link `/dev/ttySL0' -> `/dev/pts/1': Permission denied
modem `slamr0' created. TTY is `/dev/pts/1'
error: sched_setscheduler: Operation not permitted
Use `/dev/pts/1' as modem device, Ctrl+C for termination.
sudo slmodemd -c USA /dev/slamr0
این دستور رو اجرا کنیدوقتی دستور گفته شده را اجرا می کنم error میده:کد: [انتخاب]sudo slmodemd -c USA /dev/slamr0
ضمنا یادتون باشه که پورت مودم شما dev/ttySL0/ هست!
حالا برید به صفحه http://wiki.ubuntu-ir.org/DialupModemHowto/SetUpDialer و به یکی از ۳ روشی که گفته شده یک اتصال به اینترنت (connection) بسازید....
ضمنا از این عکسها معلومه که کارت گرافیکتون هم نصب نیست ;)
milad@khajavi:~/Desktop/slamr2$ slmodemd -c USA /dev/slamr0
error: mdm setup: cannot open dev `/dev/slamr0': Device or resource busy
error: cannot setup device `/dev/slamr0'
در ضمن من طبق گفته ی https://help.ubuntu.com/community/DialupModemHowto/Smartlink باید بسته های sl-modem-source sl-modem-daemon را نصب کنم sl-modem-deamon به رحتی نصب شد ولی برای نصب sl-modem-source باید چند تا بسته ی پیش نیاز نصب کنم که هر کدوم از این بسته ها خودشون به بسته های دیگری نیاز دارند. شده مثل بعضی اداره جات همینطور منو به یک بسته ی دیگه ارجاع میدهند. من تا کی باید بسته دانلود کنم؟؟؟؟!!!!!sudo wvdialconf /etc/wvdial.conf
بعد دستور زیر رو اجرا کن:gksudo gedit /etc/wvdial.conf
یه فایل متنی باز میشه که همون کانکشن شماست.wvdial
milad@khajavi:~$ sudo wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3
WvModem<*1>: Cannot get information for serial port.
ttySL0<*1>: ATQ0 V1 E1 -- OK
ttySL0<*1>: ATQ0 V1 E1 Z -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySL0<*1>: Modem Identifier: ATI -- SmartLink Soft Modem
ttySL0<*1>: Speed 4800: AT -- OK
ttySL0<*1>: Speed 9600: AT -- OK
ttySL0<*1>: Speed 19200: AT -- OK
ttySL0<*1>: Speed 38400: AT -- OK
ttySL0<*1>: Speed 57600: AT -- OK
ttySL0<*1>: Speed 115200: AT -- OK
ttySL0<*1>: Speed 230400: AT -- OK
ttySL0<*1>: Speed 460800: AT -- OK
ttySL0<*1>: Max speed is 460800; that should be safe.
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttySL0.
Modem configuration written to /etc/wvdial.conf.
ttySL0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
حالا وقتی کانکشن را میسازم و wvdial را می نویسم وصل نمیشه:milad@khajavi:~$ wvdial
--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT9718227
--> Waiting for carrier.
ATDT9718227
CONNECT 50667
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!(} }8}"}&} }*} } }#}$@#}%}&`J}$Z}'}"}(}"[0e]S~
--> PPP negotiation detected.
--> Starting pppd at Tue Sep 4 04:26:35 2007
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 5518
--> Using interface ppp0
--> pppd: �[08][06][08]�[10][06][08]
--> pppd: �[08][06][08]�[10][06][08]
--> pppd: �[08][06][08]�[10][06][08]
--> pppd: �[08][06][08]�[10][06][08]
--> pppd: �[08][06][08]�[10][06][08]
--> Disconnecting at Tue Sep 4 04:26:38 2007
--> The PPP daemon has died: Authentication error.
--> We failed to authenticate ourselves to the peer.
--> Maybe bad account or password? (exit code = 19)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 19)