Pagina 1 di 2

[RISOLTO] Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 17:24
da mawii
Ciao Ragazzi !
ho una scheda PCI con uscita seriale, ma ubuntu non la vede.
La scheda è: MANHATTAN model 154475

di seguito posto l' output di ubuntu alla richiesta di controllare l' hardware presente:
mawi@saws01:~$ lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 6
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 9800 GT] (rev a2)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
03:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller
05:00.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
05:00.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
05:00.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 65)
05:01.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01)
mawi@saws01:~$ ls -l /dev/ttyS*
crw-rw---- 1 root dialout 4, 64 2011-10-01 16:15 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 2011-10-01 16:16 /dev/ttyS1
crw-rw---- 1 root dialout 4, 66 2011-10-01 16:16 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 2011-10-01 16:15 /dev/ttyS3
mawi@saws01:~$ dmesg | grep -i -A 5 -B 5 serial
[    0.497294] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    0.497297] ACPI: Power Button [PWRF]
[    0.497511] ACPI: acpi_idle registered with cpuidle
[    0.499559] ERST: Table is not found!
[    0.499737] Linux agpgart interface v0.103
[    0.499753] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.499843] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.500146] 00:0d: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.500210] serial 0000:05:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    0.500276] 0000:05:01.0: ttyS1 at I/O 0xe800 (irq = 17) is a 16550A
[    0.500352] 0000:05:01.0: ttyS2 at I/O 0xe480 (irq = 17) is a 16550A
[    0.501081] brd: module loaded
[    0.501425] loop: module loaded
[    0.501536] ata_piix 0000:00:1f.2: version 2.13
potete aiutarmi per favore ?

Grazie !
Luigi

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 17:38
da il_muflone
esegui e posta

Codice: Seleziona tutto

sudo modprobe parport_pc
dmesg | tail
nella confezione dovrebbero esserci pure i driver per linux, hai verificato il contenuto del cd?

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 17:44
da pieddu
Mi iscrivo.
Voglio vedere gli sviluppi.

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 17:50
da mawii
Ciao !
c'è la cartella linux dove contiene 3 file txt ( io però non ci capisco un H ad esserne sincero ! )
se vuoi vedo di farti avere questa cartella, così magari tu ci capisci qualcosa.....
questo è l' output di quello che mi hai chiesto......
mawi@saws01:~$ sudo modprobe parport_pc
[sudo] password for mawi:
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
mawi@saws01:~$ dmesg | tail
[  40.183546] EXT4-fs (sdb1): re-mounted. Opts: commit=0
[  40.185141] EXT4-fs (sdb10): re-mounted. Opts: commit=0
[  45.511715] EXT4-fs (sdb7): re-mounted. Opts: commit=0
[  45.871304] EXT4-fs (sdb8): re-mounted. Opts: commit=0
[  48.179612] ecryptfs_parse_options: eCryptfs: unrecognized option [ecryptfs_check_dev_ruid]
[  48.261852] Intel AES-NI instructions are not detected.
[  48.304434] padlock: VIA PadLock not detected.
[  68.894962] ISO 9660 Extensions: Microsoft Joliet Level 3
[  69.068566] ISOFS: changing to secondary root
[  273.444824] warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 17:57
da il_muflone
servirebbe un mouse seriale per fare i test :D
puoi collegare che invii dati alla porta seriale senza bisogno di software per verificare se essi arrivino?

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:01
da mawii
No, di seriale non ho proprio niente.... aparte questa pocket Viewer che vorrei usare.....
Non è possibile fare una sorta di PING ( come per gli ip ) ?
Se vuoi, qui ti ho caricato quello che c'è nel cd come driver......

http://www.filefactory.com/file/ce08959/n/Linux.zip

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:03
da il_muflone
non si va lontano senza periferiche seriali per provare se funzioni.

posta pure

Codice: Seleziona tutto

for porta in $(seq 0 3); do sudo setserial /dev/ttyS$porta -a; done

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:07
da mawii
Sto cercando di capire qualcosa su questi txt, ma .......... >:(
mawi@saws01:~$ for porta in $(seq 0 3); do sudo setserial /dev/ttyS$porta -a; done
[sudo] password for mawi:
sudo: setserial: command not found
sudo: setserial: command not found
sudo: setserial: command not found
sudo: setserial: command not found

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:07
da il_muflone
installa il pacchetto setserial

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:12
da mawii
Fatto ! ..... dimmi....

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:24
da pico977
Puoi simulare una periferica seriale semplicemente cortocircutando il pin 2 con il pin 3
In questo modo tutto quello che invii sulla seriale telo ritrovi sul buffer in ingresso della stessa (hai un echo via hardware!)

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:30
da il_muflone
mawii ha scritto: Fatto ! ..... dimmi....
esegui il comando di prima, no?

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:33
da mawii
Ecco fatto !
mawi@saws01:~$ for porta in $(seq 0 3); do sudo setserial /dev/ttyS$porta -a; done
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

/dev/ttyS1, Line 1, UART: 16550A, Port: 0xe800, IRQ: 17
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

/dev/ttyS2, Line 2, UART: 16550A, Port: 0xe480, IRQ: 17
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

/dev/ttyS3, Line 3, UART: unknown, Port: 0x02e8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:37
da il_muflone
la tua scheda madre quante seriali ha?
prima di rispondere nessuna prendi il manuale della scheda madre e controlla, in genere le hanno TUTTE, solo che gli manca il cavo verso l'esterno.

se non le trovi controlla sul bios.

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 18:50
da mawii
Una sola, COM1 c'è un connettore.... ma come dici tu, non ha uscita all' esterno !
( la mia scheda madre è: ASUS P5Q SE PLUS )

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 19:02
da magozurlinux
mawi@saws01:~$ for porta in $(seq 0 3); do sudo setserial /dev/ttyS$porta -a; done
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
  Baud_base: 115200, close_delay: 50, divisor: 0
  closing_wait: 3000
  Flags: spd_normal skip_test

/dev/ttyS1, Line 1, UART: 16550A, Port: 0xe800, IRQ: 17
  Baud_base: 115200, close_delay: 50, divisor: 0
  closing_wait: 3000
  Flags: spd_normal skip_test

/dev/ttyS2, Line 2, UART: 16550A, Port: 0xe480, IRQ: 17
  Baud_base: 115200, close_delay: 50, divisor: 0
  closing_wait: 3000
  Flags: spd_normal skip_test

/dev/ttyS3, Line 3, UART: unknown, Port: 0x02e8, IRQ: 3
  Baud_base: 115200, close_delay: 50, divisor: 0
  closing_wait: 3000
  Flags: spd_normal
quelle evidenziate in rosso sono le due porte seriali sulla mobo; quelle con IRQ 17 sono della scheda PCI.

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 19:30
da il_muflone
se l'intuizione di magozurlinux e` quella giusta configura su virtualbox (altro topic) la porta /dev/ttyS1 o /dev/ttyS2 e prova il device per il quale hai aperto questi due topic.

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: sabato 1 ottobre 2011, 22:21
da mawii
Che Spettacolo  !!!!!!!  (b2b)  ;D  (good)
Grazie a Muflone, Grazie a Magozurlinux....... ho risoltooooo !

Funziona tutto perfettamente !

( Porta COM 1 e percorso /dev/ttyS2  ) va che è una meraviglia !!

Grazie di cuore a Tutti
Luigi

Re: Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: domenica 2 ottobre 2011, 13:52
da il_muflone
allora metti RISOLTO sul titolo del primo messaggio di questa discussione

Re: RISOLTO Ubuntu 10.10 e scheda Seriale RS232 su PCI

Inviato: lunedì 3 ottobre 2011, 0:15
da mawii
Fatto, Grazie ancora !