APCUPSD: Não é possível encontrar o UPS em QUALQUER porta serial

0

Eu tenho o APCUPSD instalado em um computador com 2 portas seriais físicas. O no-break é um APC SUA1000 com uma porta serial. Eu tenho o cabo serial inteligente da APC conectado à COM1 e a COM2 indo para outro computador.

ls -l /dev/ttyS*

relata ttyS0 em todo o caminho até o ttyS31. Eu tentei literalmente cada uma dessas portas sem sucesso.

/ etc / default / apcupsd

# Defaults for apcupsd initscript

# Apcupsd-devel internal configuration
APCACCESS=/sbin/apcaccess
ISCONFIGURED=yes
UPSCABLE=smart
UPSTYPE=smartups
UPSMODE=disable
DEVICE=/dev/ttyS1
ACCESS=false
ANNOY=240
PROCFS=1
LOGGING=1
BATTERYLEVEL=15
SENSITIVITY=M
WAKEUP=60
LOTRANSFER=100
HITRANSFER=130
RETURNCHARGE=10
BEEPSTATE=L
UPSNAME=TechRm

Link para o Pastebin

/var/log/apcupsd.events :

2018-01-14 12:47:38 -0600  apcupsd error shutdown completed
2018-01-14 12:48:00 -0600  apcupsd 3.14.12 (29 March 2014) debian startup succeeded
2018-01-14 12:48:11 -0600  apcupsd FATAL ERROR in smartsetup.c at line 155
PANIC! Cannot communicate with UPS via serial port.
Please make sure the port specified on the DEVICE directive is correct,
and that your cable specification on the UPSCABLE directive is correct.
2018-01-14 12:48:11 -0600  apcupsd error shutdown completed
2018-01-14 12:48:27 -0600  apcupsd 3.14.12 (29 March 2014) debian startup succeeded
2018-01-14 12:48:38 -0600  apcupsd FATAL ERROR in smartsetup.c at line 155
PANIC! Cannot communicate with UPS via serial port.
Please make sure the port specified on the DEVICE directive is correct,
and that your cable specification on the UPSCABLE directive is correct.
2018-01-14 12:48:38 -0600  apcupsd error shutdown completed

Logs completos no Pastebin

/etc/apcupsd.conf :

UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/ttyS2
POLLTIME 10
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc

ONBATTERYDELAY 6

BATTERYLEVEL 15
MINUTES 3
TIMEOUT 0
ANNOY 120
ANNOYDELAY 0
NOLOGON disable
KILLDELAY 0

NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10

UPSCLASS standalone
UPSMODE disable

STATTIME 5
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0


BATTDATE 01/12/18
SENSITIVITY M
WAKEUP 60

LOTRANSFER  100
HITRANSFER 130
RETURNCHARGE 10
BEEPSTATE L
LOWBATT 0
OUTPUTVOLTS 120
SELFTEST 336

Arquivo de configuração completo (com comentários) no Pastebin

A execução de apcaccess também falha com um erro de "conexão recusada". Sim, eu editei meu arquivo /etc/hosts para corrigir a coisa localhost ...

Estou perplexo. Alguém pode ajudar por favor?

SO: Ubuntu Server 16.04.3 i386.

    
por TheComputerGeek010101001 15.01.2018 / 00:08

1 resposta

0

Observação: não espere que um cabo RS232 funcione com uma porta RS422.

Resolvido usando uma porta RS232.

    
por 16.01.2018 / 04:54