APCUPSD: USV kann an keinem seriellen Port gefunden werden

681
TheComputerGeek010101001

Ich habe APCUPSD auf einem Computer mit zwei physischen seriellen Ports installiert. Die USV ist ein APC SUA1000 mit einem seriellen Port. Ich habe das serielle APC-Kabel an COM1 und COM2 an einen anderen Computer angeschlossen.

ls -l /dev/ttyS* 

meldet ttyS0 bis ttyS31. Ich habe buchstäblich jeden dieser Ports vergeblich versucht.


/ 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 zu 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 

Vollständige Protokolle bei 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 

Vollständige Konfigurationsdatei (mit Kommentaren) zu Pastebin


Das Laufen apcaccessschlägt auch mit dem Fehler "Verbindung abgelehnt" fehl. Ja, ich habe meine /etc/hostsDatei bearbeitet, um den localhost zu korrigieren.

Ich bin verblüfft Kann jemand bitte helfen?

Betriebssystem: Ubuntu Server 16.04.3 i386.

0

1 Antwort auf die Frage

0
TheComputerGeek010101001

Hinweis an sich selbst: Erwarten Sie nicht, dass ein RS232-Kabel mit einem RS422-Port funktioniert.

Wird mit einem RS232-Port gelöst.