Come far funzionare una ONDA N501HS?

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Alcatraz
Linux 1.x
Linux 1.x
Messaggi: 126
Iscritto il: ven 12 ott 2007, 12:28

Messaggio da Alcatraz »

Allora, rieccomi qui.

Ho aggiornato il kernel con le nuove impostazioni di PPP:

Codice: Seleziona tutto

$ grep PPP .config
CONFIG_PPP=m
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPP_MPPE=m
CONFIG_PPPOE=m
CONFIG_PPPOATM=m
CONFIG_PPPOL2TP=m
All'inserimento della PC-Card nella PCMCIA questa viene riconosciuta. Dal dmesg:

Codice: Seleziona tutto

pccard: CardBus card inserted into slot 0
PCI: Enabling device 0000:07:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:07:00.0 to 64
ohci_hcd 0000:07:00.0: OHCI Host Controller
ohci_hcd 0000:07:00.0: new USB bus registered, assigned bus number 5
ohci_hcd 0000:07:00.0: irq 16, io mem 0x54000000
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 1 port detected
PCI: Enabling device 0000:07:00.1 (0000 -> 0002)
ACPI: PCI Interrupt 0000:07:00.1[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:07:00.1 to 64
ohci_hcd 0000:07:00.1: OHCI Host Controller
ohci_hcd 0000:07:00.1: new USB bus registered, assigned bus number 6
ohci_hcd 0000:07:00.1: irq 16, io mem 0x54001000
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 1 port detected
usb 6-1: new full speed USB device using ohci_hcd and address 2
usb 6-1: configuration #1 chosen from 1 choice
Digitando lsusb mi ricavo ID Product e ID Vendor, quindi digito

Codice: Seleziona tutto

modprobe usbserial vendor=0x05c6 product=0x6613
e dal dmesg ottengo:

Codice: Seleziona tutto

usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbserial_generic 6-1:1.0: generic converter detected
usb 6-1: generic converter now attached to ttyUSB0
usbserial_generic 6-1:1.1: generic converter detected
usb 6-1: generic converter now attached to ttyUSB1
usbserial_generic 6-1:1.2: generic converter detected
usb 6-1: generic converter now attached to ttyUSB2
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
PPP generic driver version 2.4.2
Imposto quindi KPPP come descritto qui ma KPPP va in errore.

L'errore che viene visualizzato da KPPP è

Codice: Seleziona tutto

pppd[3672]: Couldn't get channel number: Input/output error
mentre digitando kppp da terminale, ottengo questi errori:

Codice: Seleziona tutto

Couldn't find interface ppp0: No such device
Kernel supports ppp alright.
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
It was pppd that died
pppd exited with return value 1
Sending 3710 a SIGUSR1
Couldn't find interface ppp0: No such device
Il log della connessione è il seguente:

Codice: Seleziona tutto

ATZ+ZOPRT=5
OK

+ZUSIMR:2
AT+CGDCONT=1,"IP","ibox.tim.it","",0,0
OK

+ZUSIMR:2
ATM1L1
OK

+ZUSIMR:2
ATX3
OK
ATDT*99#
CONNECT
Non so davvero più che fare! Aiuto! Grazie...!

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Messaggio da conraid »

Se KPPP lo lanci come root che ti dice?

Niente, ho visto che KPPP ha il SUID attivo di default adesso.
Una volta quel tipo di problemi erano dovuti anche a qualche permesso non settato.

Alcatraz
Linux 1.x
Linux 1.x
Messaggi: 126
Iscritto il: ven 12 ott 2007, 12:28

Messaggio da Alcatraz »

Si, scusa, avevo dimenticato di specificare: tutto quanto sopra descritto avviene lanciando KPPP da root.

Perché credevo fosse un problema di permessi, quindi sono partito a fare tutto da root.


Potrebbe essere un problema dei nameserver in /etc/resolv.conf, da quel che mi pare di aver capito leggendo in giro.

Ma quali IP dovrei impostare nel file? Devo cercare dei DNS server sul sito di TIM?

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Messaggio da conraid »

Alcatraz ha scritto:Si, scusa, avevo dimenticato di specificare: tutto quanto sopra descritto avviene lanciando KPPP da root.

Perché credevo fosse un problema di permessi, quindi sono partito a fare tutto da root.


Potrebbe essere un problema dei nameserver in /etc/resolv.conf, da quel che mi pare di aver capito leggendo in giro.

Ma quali IP dovrei impostare nel file? Devo cercare dei DNS server sul sito di TIM?
Beh, non preoccuparti del fatto che non trova ppp0, quella viene creata a connessione avvenuta. Ma i DNS entrano in gioco dopo.
Tu non riesci proprio a collegarti (anche se ti da CONNECT) o solamente non navighi?

Per i DNS quelli che vuoi, anche quelli di TIM sembra che siano
DNS primario. 212.17.192.49
DNS secondario. 212.17.192.209

Alcatraz
Linux 1.x
Linux 1.x
Messaggi: 126
Iscritto il: ven 12 ott 2007, 12:28

Messaggio da Alcatraz »

Non riesco proprio a connettermi.

Ho lanciato kppp da user, ecco ciò che riporta completamente il terminale:

Codice: Seleziona tutto

$ kppp
Opener: received OpenLock
Opener: received OpenDevice
Opener: received ExecPPPDaemon
In parent: pppd pid 4279
Opener: received OpenResolv
Couldn't find interface ppp0: No such device
Kernel supports ppp alright.
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
Couldn't find interface ppp0: No such device
It was pppd that died
pppd exited with return value 1
Sending 4275 a SIGUSR1
Opener: received RemoveSecret
Opener: received RemoveSecret
Opener: received OpenResolv
Opener: received OpenResolv
Opener: received RemoveLock
Opener: received PPPDExitStatus
Opener: received PPPDExitStatus
Opener: received OpenSysLog
Mentre KPPP dice:

Codice: Seleziona tutto

Il demone pppd ha interrotto la connessione in modo inaspettato!

Valore ritornato: 1

Consulta la pagina del manuale di pppd (man pppd) per verificare il significato del codice d'errore ritornato oppure leggi le FAQ di kppp a http://developer.kde.org/-kppp/index.html
E se clicco su Dettagli:

Codice: Seleziona tutto

pppd[3672]: Couldn't get channel number: Input/output error

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Messaggio da conraid »

Purtroppo non conosco questo metodo e non so come provare

Aspetta qualcuno che usa questo metodo

Alcatraz
Linux 1.x
Linux 1.x
Messaggi: 126
Iscritto il: ven 12 ott 2007, 12:28

Messaggio da Alcatraz »

Sto veramente impazzendo, non riesco a capire cosa sbaglio!

Ho provato ad installare wvdial ma anche lui mi rimbalza, anzi mi risponde addirittura "Don't know what to do!".

Ecco il log:

Codice: Seleziona tutto

# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","ibox.tim.it","",0,0
AT+CGDCONT=1,"IP","ibox.tim.it","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Waiting for prompt.
--> Don't know what to do!  Starting pppd and hoping for the best.
--> Starting pppd at Wed Dec 19 16:04:50 2007
--> Pid of pppd: 3618
--> pppd: P‰[06][08]`ˆ[06][08]
--> Disconnecting at Wed Dec 19 16:04:51 2007
--> The PPP daemon has died: Fatal pppd error (exit code = 1)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
Caught signal 2:  Attempting to exit gracefully...
--> Modem not responding.
--> Disconnecting at Wed Dec 19 16:05:11 2007
Mentre /ect/wvdial.conf è il seguente:

Codice: Seleziona tutto

1# cat /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","ibox.tim.it","",0,0
ISDN = 0
Modem Type = Analog Modem
Carrier Check = no
Phone = *99#
Username = ''
Password = ''
Consigli? :(

silver
Linux 0.x
Linux 0.x
Messaggi: 68
Iscritto il: lun 1 ago 2005, 0:00
Slackware: 13
Kernel: 2.6.29.6-smp
Desktop: Dell Latitude D630
Località: Milano

Re: Come far funzionare una ONDA N501HS?

Messaggio da silver »

ciao
ho ache io questa maledetta scheda e non riesco a farla andare :-(
ho seguito queste guide :
http://vfoschi.wordpress.com/2007/11/23 ... s-e-linux/
http://www.openlinux.eu/content/view/124/

principalmente ho messo nle file /etc/modprobe.d/blacklist i due moduli altrimenti non mi vede la scheda
blacklist ehci_hcd
blacklist ohci_hcd

inserisco la scheda e non vede niente carico il modulo "modprobe ohci_hcd" e con lsusb mi vede
Bus 5 Device 2: ID 05c6:6613 Qualcomm, Inc. <<---- è lei !!
Bus 5 Device 1: ID 0000:0000
Bus 4 Device 1: ID 0000:0000
Bus 3 Device 4: ID 046d:c00e Logitech, Inc. M-BJ69 Optical Wheel Mouse
Bus 3 Device 3: ID 413c:2003 Dell Computer Corp.
Bus 3 Device 2: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 3 Device 1: ID 0000:0000
Bus 2 Device 3: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader
Bus 2 Device 2: ID 0b97:7761 O2 Micro, Inc.
Bus 2 Device 1: ID 0000:0000
Bus 1 Device 2: ID 413c:a005 Dell Computer Corp.
Bus 1 Device 1: ID 0000:0000

in dmesg vedo
ohci_hcd 0000:04:00.0: OHCI Host Controller
ohci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 5
ohci_hcd 0000:04:00.0: irq 19, io mem 0x8c000000
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 5-2: new full speed USB device using ohci_hcd and address 2
usb 5-2: configuration #1 chosen from 1 choice
sierra 5-2:1.0: Sierra USB modem (1 port) converter detected
usb 5-2: Sierra USB modem (1 port) converter now attached to ttyUSB0
sierra 5-2:1.1: Sierra USB modem (1 port) converter detected
usb 5-2: Sierra USB modem (1 port) converter now attached to ttyUSB1
sierra 5-2:1.2: Sierra USB modem (1 port) converter detected
usb 5-2: Sierra USB modem (1 port) converter now attached to ttyUSB2

mi carica in automatico il modulo usbserial rieseguo modprobe usbserial vendor=0x05c6 product=0x6613

sembra tutto bene ......... ma non è così provo a configurare kppp e mi da un errore quando esegue la stringa
AT+ZOPRT=5
OK

AT+CGDCONT=1,"IP","ibox.tim.it","",0,0
ERROR

con wvdialconf
root@host:~# wvdialconf
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.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB0<*1>: failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB0<*1>: failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB0<*1>: and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB2<*1>: failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB2<*1>: failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB2<*1>: and failed too at 115200, giving up.

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

Insomma non va neanche a calci avete qualche idea ?
Grazie

Rispondi