Discussion:
[Apcupsd-users] APCUPSD communication lost
p***@libertysurf.fr
2016-12-30 10:38:37 UTC
Permalink
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
p***@libertysurf.fr
2016-12-30 12:49:35 UTC
Permalink
Sorry list,

I sent this message this morning by mistake as I already sent it to this
list at the beginning of december.

I was not able to find it in apcupsd archives and wanted to open a bug
ticket but it conduct me to this same list again.

Philippe

-------- Message transféré --------
Sujet : APCUPSD communication lost
Date : Fri, 30 Dec 2016 11:38:37 +0100
De : ***@libertysurf.fr <***@libertysurf.fr>
Pour : apcupsd-***@lists.sourceforge.net



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
--
Philippe Lefèvre - PGP : 7552AC04 - Debian 8.6 - AMD64b Adoptez un
pingouin au lieu de jeter de l'argent par la fenêtre
Ted Mittelstaedt
2017-01-02 00:16:31 UTC
Permalink
Hi Philippe,

I don't think this is fixable in apcupsd. If it was me I'd switch
over to a serial cable if I had a serial port on the PC or I'd buy a
network print server.

Ted
Post by p***@libertysurf.fr
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
uname -a
Linux phlsys 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
/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
# 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...
Protocol version is: 3
Alert characters are: ?=
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
uD43127130133136uA43108110112114uI43253257261265lD43106103100097lA43092090088086lI43208204200196e44200155090oD13115oA13100oI13230s441HMLLq44202050710p443020180300600k4410TLNr443000060180300E443336168ON
OFF
The EPROM string is 205 characters long!
Hours since last self test: 010.7
That is all for now.
# 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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
p***@libertysurf.fr
2017-01-04 16:15:27 UTC
Permalink
Hi Ted,

thank you very much for your reply.

First of all, let me whish you and apcupsd list an happy and healthy new
year.

Unfortunately I have only one tty port and it is used by my Back-Ups 650
(which is not equiped with usb ports).

Do you think that this issue should be more a trouble with the print
system than an apcupsd one ?

Regarding the printer itself, I'm going to try a WIFI connection but
have issues for the time being.

Any advise if I would try to compile acpusd and run it against dbg?

Rgds
Philippe
Post by Ted Mittelstaedt
Hi Philippe,
I don't think this is fixable in apcupsd. If it was me I'd switch
over to a serial cable if I had a serial port on the PC or I'd buy a
network print server.
Ted
Post by p***@libertysurf.fr
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
uname -a
Linux phlsys 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
/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
# 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...
Protocol version is: 3
Alert characters are: ?=
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
uD43127130133136uA43108110112114uI43253257261265lD43106103100097lA43092090088086lI43208204200196e44200155090oD13115oA13100oI13230s441HMLLq44202050710p443020180300600k4410TLNr443000060180300E443336168ON
OFF
The EPROM string is 205 characters long!
Hours since last self test: 010.7
That is all for now.
# 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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Ted Mittelstaedt
2017-01-05 11:14:20 UTC
Permalink
Hi Philippe,

I think the problem is the USB device driver for your USB chipset and
I think you are wasting your time trying to debug it. Since it's
possible to put a printer on an ethernet network with an inexpensive
print server that is what I would do.

Ted
Post by p***@libertysurf.fr
Hi Ted,
thank you very much for your reply.
First of all, let me whish you and apcupsd list an happy and healthy new
year.
Unfortunately I have only one tty port and it is used by my Back-Ups 650
(which is not equiped with usb ports).
Do you think that this issue should be more a trouble with the print
system than an apcupsd one ?
Regarding the printer itself, I'm going to try a WIFI connection but
have issues for the time being.
Any advise if I would try to compile acpusd and run it against dbg?
Rgds
Philippe
Post by Ted Mittelstaedt
Hi Philippe,
I don't think this is fixable in apcupsd. If it was me I'd switch
over to a serial cable if I had a serial port on the PC or I'd buy a
network print server.
Ted
Post by p***@libertysurf.fr
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
uname -a
Linux phlsys 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
/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
# 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...
Protocol version is: 3
Alert characters are: ?=
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
uD43127130133136uA43108110112114uI43253257261265lD43106103100097lA43092090088086lI43208204200196e44200155090oD13115oA13100oI13230s441HMLLq44202050710p443020180300600k4410TLNr443000060180300E443336168ON
OFF
The EPROM string is 205 characters long!
Hours since last self test: 010.7
That is all for now.
# 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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
p***@libertysurf.fr
2017-01-05 11:26:02 UTC
Permalink
Hi Ted,

I finally successfuly configured my printer over the WiFi network and
now I no longer lose Apc communications.
So it ok for me like this ;)

Thanks again for your help Ted.

Rgds,
Philippe
Post by Ted Mittelstaedt
Hi Philippe,
I think the problem is the USB device driver for your USB chipset and
I think you are wasting your time trying to debug it. Since it's
possible to put a printer on an ethernet network with an inexpensive
print server that is what I would do.
Ted
Post by p***@libertysurf.fr
Hi Ted,
thank you very much for your reply.
First of all, let me whish you and apcupsd list an happy and healthy new
year.
Unfortunately I have only one tty port and it is used by my Back-Ups 650
(which is not equiped with usb ports).
Do you think that this issue should be more a trouble with the print
system than an apcupsd one ?
Regarding the printer itself, I'm going to try a WIFI connection but
have issues for the time being.
Any advise if I would try to compile acpusd and run it against dbg?
Rgds
Philippe
Post by Ted Mittelstaedt
Hi Philippe,
I don't think this is fixable in apcupsd. If it was me I'd switch
over to a serial cable if I had a serial port on the PC or I'd buy a
network print server.
Ted
Post by p***@libertysurf.fr
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
uname -a
Linux phlsys 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
/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
# 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...
Protocol version is: 3
Alert characters are: ?=
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
uD43127130133136uA43108110112114uI43253257261265lD43106103100097lA43092090088086lI43208204200196e44200155090oD13115oA13100oI13230s441HMLLq44202050710p443020180300600k4410TLNr443000060180300E443336168ON
OFF
The EPROM string is 205 characters long!
Hours since last self test: 010.7
That is all for now.
# 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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Loading...