iron84
14-07-2011, 15:40
Sto installando su Debian questo software Upsilon2000 per la gestione dell'ups.
Con Linux funziona solo tramite porta seriale.
Purtroppo ho provato a mettere la porta in vari modi: ttyS0 , ttyS1, sr0 etc... ma purtroppo non so quale sia quella corretta.
Ottengo anche sempre questo errore:
UPS Adapter No Response!!, type [upsilon stop] to stop this process
Sul manuale dice in caso di questo errore di fare ciņ:
Trouble Shoot the Communication Port
What to do when a "UPS adapter no response" message appears after running UPSilon. (Linux OS was used as an example). Please refer to the system documentation if you do not have the same Unix system as serial port setup procedures may vary from system to system.
1. Make sure no other process uses the same serial port.
2. Turn off function 'getty' of the serial port.
For Linux OS, check the file ‘/etc/ttytab’ for the line below, and change ”respawn” to ”off”:
ttya:2345:respawn:/sbin/getty 9600 ttys0
Execute this command if you modified the ‘/etc/ttytab’ file. This will force an initial process that closes and re-opens the terminals.
kill -1 1
3. Change the file permission of ‘/dev/ttya’
chmod 666 /dev/ttya
Aggiungo ancora:
$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.718712] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.718943] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Con Linux funziona solo tramite porta seriale.
Purtroppo ho provato a mettere la porta in vari modi: ttyS0 , ttyS1, sr0 etc... ma purtroppo non so quale sia quella corretta.
Ottengo anche sempre questo errore:
UPS Adapter No Response!!, type [upsilon stop] to stop this process
Sul manuale dice in caso di questo errore di fare ciņ:
Trouble Shoot the Communication Port
What to do when a "UPS adapter no response" message appears after running UPSilon. (Linux OS was used as an example). Please refer to the system documentation if you do not have the same Unix system as serial port setup procedures may vary from system to system.
1. Make sure no other process uses the same serial port.
2. Turn off function 'getty' of the serial port.
For Linux OS, check the file ‘/etc/ttytab’ for the line below, and change ”respawn” to ”off”:
ttya:2345:respawn:/sbin/getty 9600 ttys0
Execute this command if you modified the ‘/etc/ttytab’ file. This will force an initial process that closes and re-opens the terminals.
kill -1 1
3. Change the file permission of ‘/dev/ttya’
chmod 666 /dev/ttya
Aggiungo ancora:
$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.718712] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.718943] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A