p***@libertysurf.fr
2016-12-30 10:38:37 UTC
When I power on my USB printer and print a file, I get "Warning
communications lost with UPS PHLUPS" while my UPS is a Back UPS PRO 650
using a cable 940-0095A connected to tty0.
I then have to stop apcupsd and start it again to get it running.
(Whith a little help regarding the way that apcupsd works, I can help to
debug with gdb and C language.)
Thanks in advance for any help.
Philippe
Here is my conf:
system :
uname -a
Linux phlsys 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
OS :
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
Logs :
/var/log/apcupsd.events
2016-12-28 08:35:03 +0100 apcupsd 3.14.12 (29 March 2014) debian
startup succeeded
2016-12-28 12:36:59 +0100 Communications with UPS lost.
......
2016-12-28 22:57:25 +0100 Communications with UPS lost.
2016-12-28 23:03:34 +0100 apcupsd exiting, signal 15
2016-12-28 23:03:34 +0100 apcupsd shutdown succeeded
Tests:
# apctest
2016-12-30 11:06:22 apctest 3.14.12 (29 March 2014) debian
Checking configuration ...
sharenet.type = Network & ShareUPS Disabled
cable.type = Custom Cable Smart
mode.type = APC Smart UPS (any)
Setting up the port ...
Doing prep_device() ...
You are using a SMART cable type, so I'm entering SMART test mode
Hello, this is the apcupsd Cable Test program.
This part of apctest is for testing Smart UPSes.
Please select the function you want to perform.
1) Query the UPS for all known values
2) Perform a Battery Runtime Calibration
3) Abort Battery Calibration
4) Monitor Battery Calibration progress
5) Program EEPROM
6) Enter TTY mode communicating with UPS
Q) Quit
Select function number: 1
I am going to run through the series of queries of the UPS
that are used in initializing apcupsd.
Simulating UPSlinkCheck ...
Wrote: Y Got: SM
Attempting to use smart_poll() ...
Sent: Y Got: SM Good -- smart_poll() works!.
Going to ask for valid commands...
Wrote: a Got: 3.?=.')-***@ABDEFGKLMNOPQRSUVWXYZabcdefgjklmnopqrsuxyz~
Protocol version is: 3
Alert characters are: ?=
Command characters are:
^A^N^Z')-***@ABDEFGKLMNOPQRSUVWXYZabcdefgjklmnopqrsuxyz~
Now running through apcupsd get_UPS capabilities().
NA indicates that the feature is Not Available
UPS Status: 08
Line quality: FF
Reason for last transfer to batteries: S
Self-Test Status: NO
Line Voltage: 230.4
Line Voltage Max: 233.2
Line Voltage Min: 230.4
Output Voltage: 230.4
Batt level percent: 100.0
Batt voltage: 13.77
UPS Load: 012.3
Line freq: 50.00
Runtime left: 0067
UPS Internal temp: NA
Dip switch settings: NA
Register 1: 00
Register 2: 00
Register 3: 00
Sensitivity: H
Wakeup delay: 000
Sleep delay: 020
Low transfer voltage: 208
High transfer voltage: 253
Batt charge for return: 00
Alarm status: 0
Low battery shutdown level: 02
UPS Name: UPS_IDEN
UPS Self test interval: 336
UPS manufacture date: 09/30/99
UPS serial number: NB9940151901
Date battery replaced: 09/30/99
Output voltage when on batteries: 230
Nominal battery voltage: 012
Percent humidity: NA
Ambient temperature: NA
Firmware revision: 12.4.I
Number of external batteries installed: NA
Number of bad batteries installed: NA
UPS model as defined by UPS: Back-UPS Pro 650
UPS EPROM capabilities string:
uD43127130133136uA43108110112114uI43253257261265lD43106103100097lA43092090088086lI43208204200196e44200155090oD13115oA13100oI13230s441HMLLq44202050710p443020180300600k4410TLNr443000060180300E443336168ON
OFF
The EPROM string is 205 characters long!
Hours since last self test: 010.7
That is all for now.
ACCESS :
# apcaccess
APC : 001,048,1102
DATE : 2016-12-30 11:15:26 +0100
HOSTNAME : phlsys
VERSION : 3.14.12 (29 March 2014) debian
UPSNAME : PHLUPS
CABLE : Custom Cable Smart
DRIVER : APC Smart UPS (any)
UPSMODE : Stand Alone
STARTTIME: 2016-12-30 11:15:14 +0100
MODEL : Back-UPS Pro 650
STATUS : ONLINE
LINEV : 233.2 Volts
LOADPCT : 12.3 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 69.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
MAXLINEV : 233.2 Volts
MINLINEV : 233.2 Volts
OUTPUTV : 233.2 Volts
SENSE : High
DWAKE : 0 Seconds
DSHUTD : 20 Seconds
DLOWBATT : 2 Minutes
LOTRANS : 208.0 Volts
HITRANS : 253.0 Volts
RETPCT : 0.0 Percent
ALARMDEL : 5 Seconds
BATTV : 13.8 Volts
LINEFREQ : 50.0 Hz
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STESTI : 336
STATFLAG : 0x05000008
REG1 : 0x00
REG2 : 0x00
REG3 : 0x00
MANDATE : 09/30/99
SERIALNO : NB9940151901
BATTDATE : 09/30/99
NOMOUTV : 230 Volts
NOMBATTV : 12.0 Volts
FIRMWARE : 12.4.I
END APC : 2016-12-30 11:15:30 +0100
communications lost with UPS PHLUPS" while my UPS is a Back UPS PRO 650
using a cable 940-0095A connected to tty0.
I then have to stop apcupsd and start it again to get it running.
(Whith a little help regarding the way that apcupsd works, I can help to
debug with gdb and C language.)
Thanks in advance for any help.
Philippe
Here is my conf:
system :
uname -a
Linux phlsys 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
OS :
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
Logs :
/var/log/apcupsd.events
2016-12-28 08:35:03 +0100 apcupsd 3.14.12 (29 March 2014) debian
startup succeeded
2016-12-28 12:36:59 +0100 Communications with UPS lost.
......
2016-12-28 22:57:25 +0100 Communications with UPS lost.
2016-12-28 23:03:34 +0100 apcupsd exiting, signal 15
2016-12-28 23:03:34 +0100 apcupsd shutdown succeeded
Tests:
# apctest
2016-12-30 11:06:22 apctest 3.14.12 (29 March 2014) debian
Checking configuration ...
sharenet.type = Network & ShareUPS Disabled
cable.type = Custom Cable Smart
mode.type = APC Smart UPS (any)
Setting up the port ...
Doing prep_device() ...
You are using a SMART cable type, so I'm entering SMART test mode
Hello, this is the apcupsd Cable Test program.
This part of apctest is for testing Smart UPSes.
Please select the function you want to perform.
1) Query the UPS for all known values
2) Perform a Battery Runtime Calibration
3) Abort Battery Calibration
4) Monitor Battery Calibration progress
5) Program EEPROM
6) Enter TTY mode communicating with UPS
Q) Quit
Select function number: 1
I am going to run through the series of queries of the UPS
that are used in initializing apcupsd.
Simulating UPSlinkCheck ...
Wrote: Y Got: SM
Attempting to use smart_poll() ...
Sent: Y Got: SM Good -- smart_poll() works!.
Going to ask for valid commands...
Wrote: a Got: 3.?=.')-***@ABDEFGKLMNOPQRSUVWXYZabcdefgjklmnopqrsuxyz~
Protocol version is: 3
Alert characters are: ?=
Command characters are:
^A^N^Z')-***@ABDEFGKLMNOPQRSUVWXYZabcdefgjklmnopqrsuxyz~
Now running through apcupsd get_UPS capabilities().
NA indicates that the feature is Not Available
UPS Status: 08
Line quality: FF
Reason for last transfer to batteries: S
Self-Test Status: NO
Line Voltage: 230.4
Line Voltage Max: 233.2
Line Voltage Min: 230.4
Output Voltage: 230.4
Batt level percent: 100.0
Batt voltage: 13.77
UPS Load: 012.3
Line freq: 50.00
Runtime left: 0067
UPS Internal temp: NA
Dip switch settings: NA
Register 1: 00
Register 2: 00
Register 3: 00
Sensitivity: H
Wakeup delay: 000
Sleep delay: 020
Low transfer voltage: 208
High transfer voltage: 253
Batt charge for return: 00
Alarm status: 0
Low battery shutdown level: 02
UPS Name: UPS_IDEN
UPS Self test interval: 336
UPS manufacture date: 09/30/99
UPS serial number: NB9940151901
Date battery replaced: 09/30/99
Output voltage when on batteries: 230
Nominal battery voltage: 012
Percent humidity: NA
Ambient temperature: NA
Firmware revision: 12.4.I
Number of external batteries installed: NA
Number of bad batteries installed: NA
UPS model as defined by UPS: Back-UPS Pro 650
UPS EPROM capabilities string:
uD43127130133136uA43108110112114uI43253257261265lD43106103100097lA43092090088086lI43208204200196e44200155090oD13115oA13100oI13230s441HMLLq44202050710p443020180300600k4410TLNr443000060180300E443336168ON
OFF
The EPROM string is 205 characters long!
Hours since last self test: 010.7
That is all for now.
ACCESS :
# apcaccess
APC : 001,048,1102
DATE : 2016-12-30 11:15:26 +0100
HOSTNAME : phlsys
VERSION : 3.14.12 (29 March 2014) debian
UPSNAME : PHLUPS
CABLE : Custom Cable Smart
DRIVER : APC Smart UPS (any)
UPSMODE : Stand Alone
STARTTIME: 2016-12-30 11:15:14 +0100
MODEL : Back-UPS Pro 650
STATUS : ONLINE
LINEV : 233.2 Volts
LOADPCT : 12.3 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 69.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
MAXLINEV : 233.2 Volts
MINLINEV : 233.2 Volts
OUTPUTV : 233.2 Volts
SENSE : High
DWAKE : 0 Seconds
DSHUTD : 20 Seconds
DLOWBATT : 2 Minutes
LOTRANS : 208.0 Volts
HITRANS : 253.0 Volts
RETPCT : 0.0 Percent
ALARMDEL : 5 Seconds
BATTV : 13.8 Volts
LINEFREQ : 50.0 Hz
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STESTI : 336
STATFLAG : 0x05000008
REG1 : 0x00
REG2 : 0x00
REG3 : 0x00
MANDATE : 09/30/99
SERIALNO : NB9940151901
BATTDATE : 09/30/99
NOMOUTV : 230 Volts
NOMBATTV : 12.0 Volts
FIRMWARE : 12.4.I
END APC : 2016-12-30 11:15:30 +0100