Don't be too strict about terminal settings

Don't log an error when tcgetattr() reports different settings on the
port (patch #20 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3585 72a954d1-e00c-0410-aa02-d9c7bb700a61
Use bitwise left shift for status flags definitions

Use (1 << N) to define a bit flag at bit N, which is more coherent with
other similar implementations in NUT (patch #21 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3586 72a954d1-e00c-0410-aa02-d9c7bb700a61
Cosmetic changes

Remove dead / redundant #defines, and enable interesting debug traces
that were commented out (based on patch #22 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3587 72a954d1-e00c-0410-aa02-d9c7bb700a61
Use bitwise left shift for flags definitions

Use (1 << N) to define a bit flag at bit N, which is more coherent with
other similar implementations in NUT (patch #23 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3588 72a954d1-e00c-0410-aa02-d9c7bb700a61
Mention General Electric in blazer manual page

Mention General Electric as a user of the Megatec/Q1 protocol
(patch #24 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3589 72a954d1-e00c-0410-aa02-d9c7bb700a61
Fix status processing for "ECO mode"

When running in "ECO mode", the driver should report an ups.status
set to "OL", or it otherwise ends up with an empty string that
confuses upsmon (patch from Ivan Kuznetsov)

git-svn-id: svn://svn.debian.org/nut/trunk@3590 72a954d1-e00c-0410-aa02-d9c7bb700a61
Complete APC SNMP compatibility information

Mention more varieties of APC SNMP cards, and mention the POWERNET MIB
(patch #25 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3593 72a954d1-e00c-0410-aa02-d9c7bb700a61
Add comment on shutdown.return ondelay value

Add a comment reinforcing the need for ondelay=3
(partial patch #26 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3594 72a954d1-e00c-0410-aa02-d9c7bb700a61
Update and cleanup

Convert flags defitions to bitwise left shift, convert some comments
about variables to actual values, and do a bit of cleanup
(patch #27 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3596 72a954d1-e00c-0410-aa02-d9c7bb700a61
Rename peakcurrent to current.peak (as per RFC)

Rename peakcurrent to current.peak, since it is more coherent
and suitable

git-svn-id: svn://svn.debian.org/nut/trunk@3597 72a954d1-e00c-0410-aa02-d9c7bb700a61
Add missing battery.voltage data to the namespace

Add missing battery.voltage.{low,high} to the standard NUT namespace

git-svn-id: svn://svn.debian.org/nut/trunk@3598 72a954d1-e00c-0410-aa02-d9c7bb700a61
Fix formating issue

git-svn-id: svn://svn.debian.org/nut/trunk@3599 72a954d1-e00c-0410-aa02-d9c7bb700a61
Remove dead code

Remove dead code, related to shutdown handling (no functional changes)
(based on patch #29 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3601 72a954d1-e00c-0410-aa02-d9c7bb700a61
Whitespace fixes

Remove some extraneous spaces, suggested by "git diff --check", and
improve a bit formatting (patch #36 from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3602 72a954d1-e00c-0410-aa02-d9c7bb700a61
Final fix to the tcsetattr() / tcgetattr() issue

The most likely cause of all spurious differences between what was set
on the port with tcsetattr() and what tcgetattr() shows are likely to do
with the c_local PENDIN flag, which is a status bit, not a control bit.
It will change when there's unread pending input, which can be quite
often on an APC UPS.

The right way to compare struct termios values is to clear the status
flags _after_ the tcsetattr() and of course after the tcgetattr() call
and then compare the result with what was set.

Also set NOKERNINFO, if available, as we don't want the UPS or noise on
the line to accidentally trigger status output back to the UPS, and
finally make sure IEXTEN is also cleared along with ISIG since it too
can cause weird things to happen.

This change also adds some debug code to show any differences in the
structures in a logical manner in debug output (and squashes one tiny
compiler warning) (patch from Greg A. Woods)

git-svn-id: svn://svn.debian.org/nut/trunk@3603 72a954d1-e00c-0410-aa02-d9c7bb700a61
beeper.status belongs to the "ups" data collection

git-svn-id: svn://svn.debian.org/nut/trunk@3604 72a954d1-e00c-0410-aa02-d9c7bb700a61
Add support for PowerShield Defender 1200VA

Add PowerShield Defender 1200VA (USB ID 0665:5161) to the list of
blazer_usb supported models (reported by Tom Clarkson)

git-svn-id: svn://svn.debian.org/nut/trunk@3605 72a954d1-e00c-0410-aa02-d9c7bb700a61
Add 3-phases support to Socomec Netvision MIB

Improve Socomec Netvision MIB, by adding support for 3-phases UPS
(patch from Manuel Bouyer)

git-svn-id: svn://svn.debian.org/nut/trunk@3606 72a954d1-e00c-0410-aa02-d9c7bb700a61
Fix Liebert firmware (incorrect exponents)

There are at least two Liebert firmware types which both report
a VID:PID of 10af:0001. The newer ones tend not to have the Belkin
broken Usage Pages (and therefore use standard HID PDC paths) but they
have incorrect exponents for some fields. This patch fixes the values
for the latter implementation

Author: Charles Lepple <clepple+nut@gmail.com>

git-svn-id: svn://svn.debian.org/nut/trunk@3607 72a954d1-e00c-0410-aa02-d9c7bb700a61
Add support for ARTronic ranges

Add ARTronic models, both serial and USB, to the list of blazer_ser and
blazer_usb supported models

git-svn-id: svn://svn.debian.org/nut/trunk@3608 72a954d1-e00c-0410-aa02-d9c7bb700a61