installare e configurare il modem Motorola SM56 in Ubuntu

Riconoscimento, installazione e configurazione delle periferiche.
Avatar utente
yves
Rampante Reduce
Rampante Reduce
Messaggi: 5422
Iscrizione: domenica 25 dicembre 2005, 2:23
Località: Argentina - BsAs
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da yves »

@Lucarossi: Si, almeno vediamo come è settato, da cosa vedo sono sempre 0:6, ma meglio essere certi.

@Lipoz: Nn c'è un equivalente a "kppp" su Gnome? Normalmente con lui è più facile configurarlo, in ogni caso mi pare ci sia un problema, prova a dare il comando:

Codice: Seleziona tutto

sudo modprobe 
prova a configurarlo in questa maniera:

Codice: Seleziona tutto

sudo gedit /etc/default/sl-modem-daemon
all'interno del file devi inserire le due linee in rosso, quelle non commentate:
# NOTE: settings in /etc/defautls/slmodemd are used too

# set this to 1 to never run the daemon from the init script
# you can set it if you have an USB device, than the init script won't
# be started at boot (but when the USB device is plugged on)
DONTSTART=0

# This is the default configuration for the slmodem driver daemon
# running on Debian systems.
#
# Edit device node and country code here ...
#
# possible country codes are:
#
#   USA
#   GERMANY
#   BELGIUM
#   etc.
#   
#  use 'slmodemd --countrylist' to check out other countries
#
#
#SLMODEMD_DEVICE=slamr0
#SLMODEMD_COUNTRY=GERMANY

SLMODEMD_DEVICE=hw:0,6
SLMODEMD_COUNTRY=ITALY

#
# Additional options for slmodemd, see "slmodemd -h" output for details.
# Do NOT set country or device name here!

OPTS=""

# force the start of the daemon even if old type modules seem to be
# installed (set it to 1)

FORCESTART=0

# set this to not see any hints of the init script on startup

# BEQUIET=1

# set this to not create the /dev/modem symlink

# NOSYMLINK=1
quindi prova a dare questo comando:

Codice: Seleziona tutto

sudo /etc/init.d/sl-modem-daemon restart
vedi cosa dice.
Al giorno d'oggi i cani di razza muovono la coda solo per interesse. Ma io sono un bastardo... Tuxliberty
Riscopri il PC, installa ed usa Linux ;-) - Linux != Windows Linux User # 16486 - Jabber: yvesBsAs@jabber.org
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40351
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da steff »

lipoz ha scritto:
b) Devi usare slmodem:
http://wiki.ubuntu-it.org/Hardware/Modem/Dialup/Alsa


 
Codice:
sudo slmodemd -c ITALY --alsa hw:0,6[/b]per avviarlo
il device è
  /dev/ttySL0 --> /dev/pts/N  , with N some number
non so che sinifica "with N some number" comunque ho eseguito al terminale
e questo è il risultato:
bat@bat-laptop:~$ sudo slmodemd -c ITALY --alsa hw:0,6[/b]
[sudo] password for bat:
ALSA lib conf.c:3868:(parse_args) Parameter DEV must be an integer
ALSA lib conf.c:3966:(snd_config_expand) Parse arguments error: Invalid argument
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM hw:0,6[/b]
error: alsa setup: cannot open playback device 'hw:0,6[/b]': Invalid argument
error: cannot setup device `hw:0,6[/b]'
bat@bat-laptop:~$ /dev/ttySL0 --> /dev/pts/N
bash: /dev/pts/N: Permission denied
bat@bat-laptop:~$
poi ho eseguito i comandi indicati nella guida: http://wiki.ubuntu-it.org/Hardware/Modem/Dialup/Alsa



che ve ne pare?
è andato un (/b) nel comando che dovrebbe essere:

Codice: Seleziona tutto

sudo slmodemd -c ITALY --alsa hw:0,6
Ma dal ultimo output
Shutting down SmartLink Modem driver normally ... no slmodemd daemon running.
Unloading modem driver from kernel ... snd_atiixp_modem.
The user `Slmodemd' already exists as a system user. Exiting.
FATAL: Module ungrab_winmodem not found.
FATAL: Module slamr not found.
Starting SmartLink Modem driver for: auto.
Creating /dev/modem symlink, pointing to: /dev/ttySL0.
bat@bat-laptop:~$
è attivo, con /dev/ttySL0 come device da inserire in kppp, wvdial o gnome-ppp. La stringa init 2 dovrebbe essere
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=90
o con +MS=34 alla fine. Disattivare il Carrier Check, cioè non aspettare segnale in linea.
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
lucarossi
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 9 aprile 2008, 11:52

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lucarossi »

questo è l'out che mi da:

luca@luca-desktop:~$ aplay -l
**** Lista di PLAYBACK dispositivi hardware ****
scheda 0: V8237 [VIA 8237], dispositivo 0: VIA 8237 [VIA 8237]
  Sottoperiferiche: 4/4
  Sottoperiferica #0: subdevice #0
  Sottoperiferica #1: subdevice #1
  Sottoperiferica #2: subdevice #2
  Sottoperiferica #3: subdevice #3
scheda 0: V8237 [VIA 8237], dispositivo 1: VIA 8237 [VIA 8237]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
luca@luca-desktop:~$
Avatar utente
yves
Rampante Reduce
Rampante Reduce
Messaggi: 5422
Iscrizione: domenica 25 dicembre 2005, 2:23
Località: Argentina - BsAs
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da yves »

No, non va, è completamente diversa, fai la scansione con "scanmodem" e vediamo se salta fuori, ma li non appare e (IMHO) è un guaio..
Al giorno d'oggi i cani di razza muovono la coda solo per interesse. Ma io sono un bastardo... Tuxliberty
Riscopri il PC, installa ed usa Linux ;-) - Linux != Windows Linux User # 16486 - Jabber: yvesBsAs@jabber.org
lucarossi
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 9 aprile 2008, 11:52

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lucarossi »

In che senso è un guaio? Cmq questo è il file modemdata.txt

Only plain text email is forwarded by the  Discuss@Linmodems.org List Server,
as HTML can contain viruses. Use as the email Subject Line:
          YourName, YourCountry  kernel 2.6.22-14-generic
With this Subject Line cogent experts will be alerted, and useful case names left in the Archive.
YourCountry will enable Country specific guidance. Your contry's local Linux experts
can be found through: http://www.linux.org/groups/index.html.
They will know your Country's modem code, which may be essential for dialup service.
Responses from Discuss@Linmodems.org are sometimes blocked by an Internet Provider mail filters.
So in a day, also check the Archived responses at http://www.linmodems.org
--------------------------  System information ----------------------------
CPU=i686, 
Linux version 2.6.22-14-generic (buildd@palmer) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Sun Oct 14 23:05:12 GMT 2007
scanModem update of:  2008_04_16
The modem symbolic link is /dev/modem -> ttySL0
The slmodemd set symbolic link is /dev/ttySL0 -> /dev/pts/0
There are no blacklisted modem drivers in /etc/modprobe*  files
USB modem not detected by lsusb

For candidate card in slot 00:0c.0, firmware information and bootup diagnostics are:
PCI slot PCI ID SubsystemID Name
---------- --------- --------- --------------
00:0c.0 1057:3052 1057:3020 Modem: Motorola SM56 Data Fax Modem

Modem interrupt assignment and sharing:
16:    108106  IO-APIC-fasteoi  SL1900
--- Bootup diagnostics for card in PCI slot 00:0c.0 ----
[  25.062577] ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 16 (level, low) -> IRQ 16
[  25.063079] 0000:00:0c.0: ttyS1 at I/O 0xd408 (irq = 16) is a 16450
[  25.063421] 0000:00:0c.0: ttyS2 at I/O 0xd410 (irq = 16) is a 8250
[  25.063825] 0000:00:0c.0: ttyS3 at I/O 0xd418 (irq = 16) is a 16450
[  25.064049] Couldn't register serial port 0000:00:0c.0: -28
[  38.158271] ACPI: PCI interrupt for device 0000:00:0c.0 disabled
[  38.725129] ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 16 (level, low) -> IRQ 16

The PCI slot 00:0c.0 of the modem card may be disabled early in
a bootup process,  but then enabled later. If modem drivers load
but the  modem is not responsive, read Bootup.txt about possible fixes.
Send dmesg.txt along with ModemData.txt to discuss@linmodems.org
if help is needed.


=== Finished firmware and bootup diagnostics, next deducing cogent software. ===

Predictive diagnostics for card in bus 00:0c.0:
Modem chipset  detected on
CLASS="Class 0703: 1057:3052"
NAME="Modem: Motorola SM56 Data Fax Modem "
PCIDEV=1057:3052
SUBSYS=1057:3020
IRQ=16
IDENT=slamr

For candidate modem in:  00:0c.0
  Class 0703: 1057:3052 Modem: Motorola SM56 Data Fax Modem
      Primary PCI_id  1057:3052
Support type needed or chipset: slamr


----------------end Softmodem section --------------

1057:3052 has a Motorola chipset, poorly supported by Motorola itself
However Zello discovered that drivers written to support Smartlink  modems do support the 1057:3052 chipset!!
It sufficed to add 1057:3052 to the list of modem cards recognized by the Smartlink slamr driver.
There is a ungrab-winmodem driver used in conjunction with slamr, which must have 1057:3052
similarly added. See messages from Zello:
http://linmodems.technion.ac.il/bigarch ... 00846.html
http://linmodems.technion.ac.il/bigarch ... 00848.html
and Alvaro Aguirre about the ungrab-winmodem fix:
http://linmodems.technion.ac.il/bigarch ... 00990.html
For general guidance on ungrab-winmodem + slamr usage, read the Smartlink.txt

The modem is supported by the Smartlink slamr driver
plus the slmodemd helper utility.  Read the
Smartlink.txt and Modem/YourSystem.txt for follow through guidance.


From  http://linmodems.technion.ac.il/package ... nk/Ubuntu/ ,
download the package slamr-2.6.22-14-generic.tar.gz
Under Linux, open a terminal and unpack with:
$ tar zxvf slamr*.tar.gz
Move into the unpacked folder
$ cd slamr-2.6.22-14-generic
Look around
$ ls
Run the
$  sudo ./setup

Afterwards do:
$ slmodemd --help
$ slmodemd --countrylist &> Clist.txt
If not in the USA, look for your COUNTRY_NAME therein.
Do and edit with:
$ sudo gedit  /etc/default/sl-modem-daemon
and therein replace the USA in the line:
SLMODEMD_COUNTRY=USA
This will provide for the correct Country setting in the automated:
    slmodemd -c COUNTRY /dev/slamr0

Read the Smartlink.txt and YourSystem.txt
Writing Smartlink.txt
============ end Smartlink section =====================

Completed candidate modem analyses.

The base of the UDEV device file system is: /dev/.udev

Versions adequately match for the compiler installed: 4.1.3
            and the compiler used in kernel assembly: 4.1.3



Minimal compiling resources appear complete:
  make utility - /usr/bin/make
  Compiler version 4.1
  linuc_headers base folder /lib/modules/2.6.22-14-generic/build

However some compilations and executable functions may need additional files,
in the FileNames.h (so called kernel "h"eaders) collection installed in  /usr/include/ .
For martian_modem, additional required packages are libc6-dev (and for Debian/Ubuntu,  linux-libc-dev). The also required headers of package libc6 are commonly installed by default.



If a driver compilation fails, with message including some lack of some FileName.h (stdio.h for example), then
Some additional kernel-header files need installation to /usr/include. The minimal additional packages are libc6-dev
and any of its dependents, under Ubuntu linux-libc-dev

If an alternate ethernet connection is available,
$  apt-get update
$  apt-get -s install linux-kernel-devel
will install needed package
For Debian/Ubuntu related distributions, run the following command to display the needed package list:

Otherwise packages have to be found through http://packages.ubuntu.com
Once downloaded and transferred into a Linux partition,
they can be installed alltogether with:
$ sudo dpkg -i *.deb


Checking pppd properties:
-rwsr-xr-x 1 root dip 269256 2007-10-04 21:57 /usr/sbin/pppd

In case of an "error 17" "serial loopback" problem, see:
    http://linmodems.technion.ac.il/linmode ... 02637.html

To enable dialout without Root permission do:
$ su - root  (not for Ubuntu)
        sudo chmod a+x /usr/sbin/pppd
or under Ubuntu related Linuxes
sudo chmod a+x /usr/sbin/pppd

Checking settings of: /etc/ppp/options
asyncmap 0
noauth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx

In case of a message like:
  Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
see http://linmodems.technion.ac.il/bigarch ... 04656.html

Read Modem/YourSystem.txt concerning other COMM channels: eth0 ppp0
Which can interfere with Browser naviagation.

Don't worry about the following, it is for the experts
should trouble shooting be necessary.
==========================================================

# start/stop the daemon when the USB modem is connected
KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon"
Checking for modem support lines:
--------------------------------------
    /device/modem symbolic link:  lrwxrwxrwx 1 root root 6 2008-04-22 12:20 /dev/modem -> ttySL0
slmodemd created symbolic link /dev/ttySL0:  lrwxrwxrwx 1 root root 10 2008-04-22 12:20 /dev/ttySL0 -> /dev/pts/0
    Within /etc/udev/ files:
/etc/udev/rules.d/030_sl-modem-daemon.rules:# start/stop the daemon when the USB modem is connected
/etc/udev/rules.d/030_sl-modem-daemon.rules:KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon"
/etc/udev/sl-modem-daemon.rules:# start/stop the daemon when the USB modem is connected
/etc/udev/sl-modem-daemon.rules:KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon"
    Within /etc/modprobe.conf files:
/etc/modprobe.d/blacklist-modem:# Uncomment these entries in order to blacklist unwanted modem drivers
/etc/modprobe.d/blacklist-modem:# blacklist snd-atiixp-modem
/etc/modprobe.d/blacklist-modem:# blacklist snd-via82xx-modem
/etc/modprobe.d/sl-modem-daemon.modutils:install slamr modprobe --ignore-install ungrab-winmodem ;  modprobe --ignore-install slamr; test -e /dev/slamr0 || (/bin/mknod -m 660 /dev/slamr0 c 242 0 2>/dev/null && chgrp dialout /dev/slamr0)
/etc/modprobe.d/alsa-base:options snd-atiixp-modem index=-2
/etc/modprobe.d/alsa-base:options snd-via82xx-modem index=-2
    Within any ancient /etc/devfs files:

    Within ancient kernel 2.4.n /etc/module.conf files:
/etc/modules:ungrab-winmodem

/etc/modules~:ungrab-winmodem

--------- end modem support lines --------
Ultima modifica di lucarossi il martedì 22 aprile 2008, 12:34, modificato 1 volta in totale.
Avatar utente
yves
Rampante Reduce
Rampante Reduce
Messaggi: 5422
Iscrizione: domenica 25 dicembre 2005, 2:23
Località: Argentina - BsAs
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da yves »

Si, il modem è le stesso:

Codice: Seleziona tutto

Predictive diagnostics for card in bus 00:0c.0:
   Modem chipset  detected on
CLASS="Class 0703: 1057:3052"
NAME="Modem: Motorola SM56 Data Fax Modem "
PCIDEV=1057:3052
SUBSYS=1057:3020
IRQ=16
IDENT=slamr

 For candidate modem in:  00:0c.0
   Class 0703: 1057:3052 Modem: Motorola SM56 Data Fax Modem
      Primary PCI_id  1057:3052
 Support type needed or chipset:   slamr
(o almeno sembra), ma non sono mai riuscito ad interpretare l'ouput di scanmodem, il device e compania che servono non so dove li mette e l'inglese lo conosco troppo poco, aspetta un utente che lo sappia decifrare a fondo.

Ciao.
Al giorno d'oggi i cani di razza muovono la coda solo per interesse. Ma io sono un bastardo... Tuxliberty
Riscopri il PC, installa ed usa Linux ;-) - Linux != Windows Linux User # 16486 - Jabber: yvesBsAs@jabber.org
lipoz
Prode Principiante
Messaggi: 34
Iscrizione: sabato 22 marzo 2008, 2:04

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lipoz »

Yves ho dato i 2 comandi che mi hai indicato,al secondo comando è uscito fuori un file tipo file di testo,io
ho inserito le due linee in rosso cioe ho sostituito quelle originali con quelle che mi hai indicato,
(anzi ne ho cambiata solo una:"SLMODEMD_DEVICE=hw:0,6" invece di "SLMODEMD_DEVICE=AUTO" ,l'altra era uguale)
poi ho incollato tutto nel terminale (ho fatto bene?) ma poi al successivo invio il terminale non risponde.
Qui c'è l'out put
bat@bat-laptop:~$ sudo modprobe
Usage: modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-Q] [-b] [-o ] [ --dump-modversions ] [parameters...]
modprobe -r [-n] [-i] [-v] ...
modprobe -l -t [ -a ...]
bat@bat-laptop:~$ sudo gedit /etc/default/sl-modem-daemon
NOTE: settings in /etc/defautls/slmodemd are used too




# set this to 1 to never run the daemon from the init script
# you can set it if you have an USB device, than the init script won't
# be started at boot (but when the USB device is plugged on)
DONTSTART=0

# This is the default configuration for the slmodem driver daemon
# running on Debian systems.
#
# Edit device node and country code here ...
#
# possible country codes are:
#
#   USA
#   GERMANY
#   BELGIUM
#   etc.
#   
#  use 'slmodemd --countrylist' to check out other countries
#
#
#SLMODEMD_DEVICE=slamr0
#SLMODEMD_COUNTRY=GERMANY

SLMODEMD_DEVICE=hw:0,6
SLMODEMD_COUNTRY=ITALY

#
# Additional options for slmodemd, see "slmodemd -h" output for details.
# Do NOT set country or device name here!

OPTS=""

# force the start of the daemon even if old type modules seem to be
# installed (set it to 1)

FORCESTART=0

# set this to not see any hints of the init script on startup

# BEQUIET=1

# set this to not create the /dev/modem symlink

# NOSYMLINK=1


Steff ho dato il comando senza la b ,poi ho cercato di seguire le tue istruzioni per comporre il comando successivo,
ho fatto 4 tentativi ma il terminale non rispode. Mi dici esattamente come deve essere il secondo comando?
bat@bat-laptop:~$ sudo slmodemd -c ITALY --alsa hw:0,6
[sudo] password for bat:
SmartLink Soft Modem: version 2.9.9e-pre1 Sep 30 2007 00:07:03
symbolic link `/dev/ttySL0' -> `/dev/pts/1' created.
modem `hw:0,6' created. TTY is `/dev/pts/1'
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.
/dev/ttySL0 -->Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=90
dev/ttySL0Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=90
/dev/ttySL0 -->Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=34
dev/ttySL0Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=34
Ultima modifica di lipoz il mercoledì 23 aprile 2008, 0:43, modificato 1 volta in totale.
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40351
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da steff »

Se tu lanci slmodemd da terminale con sudo ecc quella finestra rimane con lui in esecuzione, non devi chiuderlo e non puoi utilizzarlo. Per terminare (disattivare il modem :crtl +C)

Il secondo non è un comando, ma la stringa che va nella configurazione di wvdial o gnome-ppp o kppp
modem è /dev/ttySL0 e nel campo delle configurazione init2 va ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=34

Se fai con wvdial: lanci slmodemd, apri un terminale novo e dai

Codice: Seleziona tutto

sudo wvdialconf
Poi con

Codice: Seleziona tutto

sudo gedit /etc/wvdial.conf
inserisci l'init 2, il numero ecc e carrier check=off
sudo wvdial ti dovrebbe connettere. Ma puoi provare ugualmente con gnome-ppp o kppp
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
lipoz
Prode Principiante
Messaggi: 34
Iscrizione: sabato 22 marzo 2008, 2:04

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lipoz »

Steff,ho dato il comando "sudo slmodemd -c ITALY" poi " sudo wvdialconf"  ,poi "sudo gedit /etc/wvdial.conf"
bat@bat-laptop:~$ sudo slmodemd -c ITALY --alsa hw:0,6
[sudo] password for bat:
SmartLink Soft Modem: version 2.9.9e-pre1 Sep 30 2007 00:07:03
symbolic link `/dev/ttySL0' -> `/dev/pts/1' created.
modem `hw:0,6' created. TTY is `/dev/pts/1'
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.
bat@bat-laptop:~$ sudo wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan: S0  S1  S2  S3  SL0 


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://open.nit.ca/wiki/?WvDial

If you still have problems, send mail to .
a questo punto si è aperto un file di testo gedit con su scritto
[Dialer Defaults]
Phone =
Username =
Password =
New PPPD = yes
poi non sapevo come proseguire perche nel terminale non c'era piu "bat@bat-laptop:~$"
allora ho clicaato di nuovo su crtl+c per riaprire e dare il comando "sudo gedit /etc/wvdial.conf" prima da solo poi con
"ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=34" ma non succede niente.
bat@bat-laptop:~$ sudo gedit /etc/wvdial.conf

bat@bat-laptop:~$ sudo gedit /etc/wvdial.conf ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=34
[1] 6264
[2] 6265
bash: D2: command not found
bat@bat-laptop:~$ bash: C1: command not found
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40351
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da steff »

Il terminale con sudo slmodemd deve rimanere aperto, è inutilzzabile per altre cose finché non dai ctrl+c per terminare il modem. Se hai dato il comando sudo wvdialconf con modem inattivio non lo trova di certo.
a) lanciare il modem
b) IN UN ALTRO terminale dare solo

Codice: Seleziona tutto

sudo wvdialconf 
e dovrebbe scrivere il file wvdial.conf
c) Solo se questo è successo dai

Codice: Seleziona tutto

sudo gedit /etc/wvdial.conf
e inserisci il numero del tel ecc e la stringa init 2, e carrier check=off
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
lipoz
Prode Principiante
Messaggi: 34
Iscrizione: sabato 22 marzo 2008, 2:04

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lipoz »

ok steff sembra che sia la strada giusta,ma c'è stato un imprevisto.
E' andata cosi:
ho dato bat@bat-laptop:~$ sudo slmodemd -c ITALY --alsa hw:0,6 su un terminale,
poi ne ho aperto un altro e ho dato sudo wvdialconf  e mi ha scritto il file wdial.conf,
bat@bat-laptop:~$ sudo wvdialconf
[sudo] password for bat:
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan: S0  S1  S2  S3 
WvModem: Cannot get information for serial port.
ttySL0: ATQ0 V1 E1 -- OK
ttySL0: ATQ0 V1 E1 Z -- OK
ttySL0: ATQ0 V1 E1 S0=0 -- OK
ttySL0: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySL0: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySL0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySL0: Modem Identifier: ATI -- SmartLink Soft Modem
ttySL0: Speed 4800: AT -- OK
ttySL0: Speed 9600: AT -- OK
ttySL0: Speed 19200: AT -- OK
ttySL0: Speed 38400: AT -- OK
ttySL0: Speed 57600: AT -- OK
ttySL0: Speed 115200: AT -- OK
ttySL0: Speed 230400: AT -- OK
ttySL0: Speed 460800: AT -- OK
ttySL0: Max speed is 460800; that should be safe.
ttySL0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttySL0.
Modem configuration written to /etc/wvdial.conf.
ttySL0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
bat@bat-laptop:~$ sudo gedit /etc/wvdial.conf
bat@bat-laptop:~$

poi come vedi ho dato sudo gedit /etc/wvdial.conf e mi si è aperto il file gedit e qui ho messo tra i tag
numero telefono,password e username, poi ho salvato e chiuso ma poi mi sono accorto
che dovevo ancora modificare init2 e mettere la stringa  carrier check=off,
allora ho riaperto e modificato ma quando ho cliccato per salvare mi è apparso questo avviso:
"Please check that you typed the location correctly and try again."
pare proprio che non voglia salvarlo ,che devo fare?
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40351
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da steff »

Per farlo breve ti allego il mio che dovrebbe andare bene,basta che cambi numero  e passwd. Dai

Codice: Seleziona tutto

sudo gedit /etc/wvdial.conf
cancella tutto e fai un copia incolla con questo

Codice: Seleziona tutto

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=90
Password  = telecom
Check Def Route = on
Phone = 7020187187
Idle Seconds = 0
Abort on Busy = off
;Minimize = off
Modem Type = Analog Modem
Stupid Mode = on
Baud = 57600
Auto DNS = on
Dial Command = ATM1L3DT
Dial Attempts = 3
Ask Password = off
Init = ATX3
ISDN = 0
Username = telecom
Dock = on
Carrier Check = off
Auto Reconnect = on
Modem = /dev/ttySL0
eventualmente devi sostituire il MS=90 con MS=34
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
lipoz
Prode Principiante
Messaggi: 34
Iscrizione: sabato 22 marzo 2008, 2:04

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lipoz »

prima di fare il copia -incolla del tuo widial.conf ho provato a ripetere da capo l'operazione
e ho sta volta sono riuscito a modificare e salvare i dati del mio widial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +MS=34
Modem Type = Analog Modem
; Phone =
ISDN = 0
; Password =
New PPPD = yes
; Username =
Modem = /dev/ttySL0
Baud = 460800
Carrier Check = off
è ok?
ora che devo fare per connettermi?
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40351
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da steff »

Se facevi copia incolla sarebbe stato meglio, confrontali... devi togliere ; all'inizio delle righe e il numero e il passwd deve andare pulito senza . Per co
nnetterti l'ho già detto:

Codice: Seleziona tutto

sudo wvdial  
stesso discorso del terminale bloccato, per disconnettere cltr+c o chiudere la finestra. Buona connessione!
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
lipoz
Prode Principiante
Messaggi: 34
Iscrizione: sabato 22 marzo 2008, 2:04

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lipoz »

Steff ancora non va,
ho rifatto la procedura e ho modificato e salvato wdial.conf
ecco come appare
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +MS=90
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = 7020187187
Modem = /dev/ttySL0
Username = telecom
Carrier Check = off
Password = telecom
Baud = 460800
(ho provato anche con MS=90)
Poi ho dato sudo wvdial ,risultato:
bat@bat-laptop:~$ sudo wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan: S0   S1   S2   S3   
WvModem: Cannot get information for serial port.
ttySL0: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttySL0: ATQ0 V1 E1 -- ATQ0 V1 E1
ttySL0: failed with 9600 baud, next try: 115200 baud
ttySL0: ATQ0 V1 E1 -- OK
ttySL0: ATQ0 V1 E1 Z -- OK
ttySL0: ATQ0 V1 E1 S0=0 -- OK
ttySL0: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySL0: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySL0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySL0: Modem Identifier: ATI -- SmartLink Soft Modem
ttySL0: Speed 230400: AT -- OK
ttySL0: Speed 460800: AT -- OK
ttySL0: Max speed is 460800; that should be safe.
ttySL0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttySL0.
Modem configuration written to /etc/wvdial.conf.
ttySL0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
bat@bat-laptop:~$ sudo gedit /etc/wvdial.conf
bat@bat-laptop:~$ sudo wvdial 
sudo: wvdial : command not found
bat@bat-laptop:~$

poi ho dato lo stesso comando su un altro terminale.
risultato:
bat@bat-laptop:~$ sudo wvdial 
[sudo] password for bat:
sudo: wvdial : command not found
bat@bat-laptop:~$
poi ho fatto la stessa cosa  chiudendo i 2 terminali precedenti ma il
risultato è lo stesso.
Dimmi dove ho sbagliato
Ultima modifica di lipoz il venerdì 25 aprile 2008, 1:32, modificato 1 volta in totale.
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40351
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da steff »

Questo è molto strano, che wvdial funziona per scrivere la sua configurazione ma non per connettere... cmq non dovresti i dare sudo wvdialconf dopo che hai cambiato il file /etc/wvdial.conf. Veramente non ho spiegazione perché... posta il risultato

Codice: Seleziona tutto

locate wvdial
Non hai installato gnome-ppp o kppp e neanche la possibilità di connetterti in un altro modo, vero?
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
lipoz
Prode Principiante
Messaggi: 34
Iscrizione: sabato 22 marzo 2008, 2:04

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lipoz »

qui c'è la risposta al comando locate wvidial
bat@bat-laptop:~$ locate wvdial
/usr/bin/wvdialconf
/usr/bin/poff.wvdial
/usr/bin/wvdial
/usr/bin/pon.wvdial
/usr/share/man/man1/pon.wvdial.1.gz
/usr/share/man/man1/wvdialconf.1.gz
/usr/share/man/man1/poff.wvdial.1.gz
/usr/share/man/man1/wvdial.1.gz
/usr/share/man/man5/wvdial.conf.5.gz
/usr/share/doc/wvdial
/usr/share/doc/wvdial/changelog.Debian.gz
/usr/share/doc/wvdial/changelog.gz
/usr/share/doc/wvdial/TODO
/usr/share/doc/wvdial/copyright
/usr/share/doc/wvdial/FAQ
/usr/share/doc/wvdial/README.gz
/usr/share/doc/wvdial/MENUS
/home/bat/Modem/wvdial.txt
/home/bat/Documenti/linux_modem/Modem/wvdial.txt
/home/bat/scanmodemd.gcc4.1/wvdial.conf
/home/bat/slmodemd.gcc4.1/wvdial.conf
/var/lib/dpkg/info/wvdial.postrm
/var/lib/dpkg/info/wvdial.md5sums
/var/lib/dpkg/info/wvdial.postinst
/var/lib/dpkg/info/wvdial.list
/var/lib/dpkg/info/wvdial.conffiles
/var/lib/dpkg/info/wvdial.templates
/var/lib/dpkg/info/wvdial.config
/var/log/wvdialconf.log
/etc/wvdial.conf~
/etc/wvdial.conf
/etc/ppp/peers/wvdial-pipe
/etc/ppp/peers/wvdial
bat@bat-laptop:~$

gnome-ppp o kppp non l'ho trovato,in gestore pacchetti c'è qualcosa di simile:
ppp:
Point-to-Point Protocol (PPP) daemon
The Point-to-Point Protocol (PPP) provides a standard way to transmit

ippdp:
PPP daemon for syncPPP over ISDN
If you want to connect to the internet over ISDN with an internal ISDN card,
you will need this.

Also needed for allowing dialins from Windows PCs over ISDN.

datagrams over a serial link, as well as a standard way for the machines
at either end of the link (the "peers") to negotiate various optional
characteristics of the link.  Using PPP, a serial link can be used to
transmit Internet Protocol (IP) datagrams, allowing TCP/IP connections
between the peers.

pppconfig:
A text menu based utility for configuring ppp
It provides extensive explanations at each step.  pppconfig supports
PAP, CHAP, and chat methods of authentication.  It uses the standard
ppp configuration files and sets ppp up so that the standard pon and
poff commands can be used to control ppp.
Some features supported by pppconfig are:
- Multiple ISPs with separate nameservers.
- Modem detection.
- Dynamic DNS.
- Dial on demand.

come possibilita di connettermi per ora altre non ne ho,potrei configurare la scheda wireless ma per quello
credo che dovrei aprire un'altra discussione nel forum
lucarossi
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 9 aprile 2008, 11:52

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lucarossi »

steff ha scritto: Questo è molto strano, che wvdial funziona per scrivere la sua configurazione ma non per connettere... cmq non dovresti i dare sudo wvdialconf dopo che hai cambiato il file /etc/wvdial.conf. Veramente non ho spiegazione perché...
da quello che ho potuto capire io il comando sudo wvdialconf configura il modem automaticamente, quindi, se si modifica il file /etc/wvdial.conf e poi si ridà il comando sudo wvdialconf si annullano i cambiamenti.

lipoz fossi in te disinstallerei tutto e ricomincerei da capo, è il modo migliore (io ho fatto così un paio di volte  ::) ).
Reinstalla ubuntu da zero e poi, da windows o da un altro cpu, scarica scanmodem lancialo e vedi cosa ti dice. Anche se io ho fatto in modo diverso da quello che mi diceva scanmodem...
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40351
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da steff »

Non è mica necessario di reinstallare per risolvere problemi!  (nono)
Il programma wvdial c'è:
/usr/bin/wvdial
Riprova

Codice: Seleziona tutto

sudo wvdial
dopo che hai modificato /etc/wvdial.conf come già descritto, DEVE funzionare...

Un altro programma sarebbe

Codice: Seleziona tutto

sudo pppconfig
che però ho mai usato per il modem, ma dovrebbe funzionare. Per installare gnome-ppp devi essere connesso...
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
lipoz
Prode Principiante
Messaggi: 34
Iscrizione: sabato 22 marzo 2008, 2:04

Re: installare e configurare il modem Motorola SM56 in Ubuntu

Messaggio da lipoz »

Dunque Steff tu mi dici di modificare wvdial.conf e poi dare sudo wvdial,
quindi,se ho capito bene significa che devo riprovare tutto da capo.
Ok l'ho fatto e questa volta non so perche il risultato è diverso,
al comando sudo wvdial nel secondo terminale si è formata un tutta una sfilza
di questi che scorrevano velocemente:
WvDial: No Carrier!  Trying again.
WvDial: Sending: ATDT7020187187
WvDial: Waiting for carrier.
WvDial Modem: ATDT7020187187
WvDial Modem: NO CARRIER
WvDial Modem: ERROR
WvDial: No Carrier!  Trying again.
WvDial: Sending: ATDT7020187187
WvDial: Waiting for carrier.
WvDial Modem: ATDT7020187187
WvDial: Invalid dial command.
lo scorrimento si è fermato solo quando ho chiuso il primo terminale,
a quel punto in fondo (sempre del secondo terminale) è apparso questo
WvDial: Disconnecting at Fri Apr 25 23:16:23 2008
nel primo terminale invece si è formata prima una lunga sfilza di questi
error: period size 48 is not supported by playback (64).
e poi di questi
error: cannot alloc hw params for playback: Cannot allocate memory
che ne dici?
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti