doc:appunti:hardware:ups_apc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:hardware:ups_apc [2010/09/16 16:04] – niccolo | doc:appunti:hardware:ups_apc [2022/11/02 17:49] (current) – [APC Back-UPS CS 500] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Using APC UPS on Debian GNU/Linux ====== | ||
+ | |||
+ | My home-server system is powered through an UPS unit, the system is composed of the following: | ||
+ | |||
+ | * A **Dell PowerEdge T110** with two 4 Tb hard disks, running Debian GNU/Linux. | ||
+ | * A **DSL router**. | ||
+ | * An **8 ports switch**. | ||
+ | |||
+ | All the equipments drawn about **62 W** during daily operation. In several years I tested the following two APC UPSs: | ||
+ | |||
+ | * In 2006 I purchased an **APC Smart-UPS 750 USB**. | ||
+ | * In 2022 I purchased an **APC Back-UPS CS 500**. | ||
+ | |||
+ | Both units support monitoring through an **USB cable** and the **apcupsd** program, it seems that the Back-UPS CS 500 does not support the periodic self-test. | ||
+ | |||
+ | The **APC Back-UPS CS 500** should be able to supply power for about **30 minutes** to the above system (which the USP itself senses as a 16% load); doing battery calibration with the '' | ||
+ | |||
====== APC Smart-UPS 750 USB ====== | ====== APC Smart-UPS 750 USB ====== | ||
+ | |||
+ | L' | ||
Installare il pacchetto **apcupsd**. Per visualizzare convenientemente lo stato dell' | Installare il pacchetto **apcupsd**. Per visualizzare convenientemente lo stato dell' | ||
Line 34: | Line 53: | ||
UPSTYPE usb | UPSTYPE usb | ||
DEVICE | DEVICE | ||
+ | </ | ||
+ | |||
+ | Per i vecchi sistemi basati sugli **initscript sysv** bisogna editare anche il file **/ | ||
+ | |||
+ | < | ||
+ | ISCONFIGURED=yes | ||
+ | </ | ||
+ | |||
+ | |||
+ | Gli altri parametri importanti sono le **soglie a cui iniziare lo shutdown** in caso di mancanza di tensione di rete. Si indica quando iniziare lo spengimento in termini di percentuale di carica residua della batteria o di autonomia in minuti (delle due condizioni, quella che si verifica prima): | ||
+ | |||
+ | < | ||
+ | BATTERYLEVEL 40 | ||
+ | MINUTES 8 | ||
</ | </ | ||
Line 66: | Line 99: | ||
11) Quit | 11) Quit | ||
</ | </ | ||
- | |||
^ New battery date MM/ | ^ New battery date MM/ | ||
Line 72: | Line 104: | ||
| 11/ | | 11/ | ||
| 09/ | | 09/ | ||
+ | | 09/ | ||
+ | | 01/ | ||
+ | | 10/ | ||
+ | | 05/ | ||
+ | | 10/ | ||
+ | |||
+ | ====== APC Back-UPS CS 500 ======= | ||
+ | |||
+ | The UPS system was configured on a **Debian 11 Bullseye**, it is equipped with a **single user-replaceable battery** sized **151 x 65 x 97.5 mm**, terminals are **Faston F2** type (6.35 mm), the battery is rated **12 volt 7.0 Ah**, | ||
+ | |||
+ | Install the **apcupsd** Debian package. Once connected to the USB port, the GNU/Linux kernel 5.15 will log the following (through **dmesg**): | ||
+ | |||
+ | < | ||
+ | usb 1-6: new low-speed USB device number 14 using xhci_hcd | ||
+ | usb 1-6: New USB device found, idVendor=051d, | ||
+ | usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2 | ||
+ | usb 1-6: Product: Back-UPS CS 500 FW:808.q14 .I USB FW: | ||
+ | usb 1-6: Manufacturer: | ||
+ | usb 1-6: SerialNumber: | ||
+ | hid-generic 0003: | ||
+ | [American Power Conversion Back-UPS CS 500 FW:808.q14 .I USB FW:q14 ] | ||
+ | on usb-0000: | ||
+ | </ | ||
+ | |||
+ | When the service **apcupsd.service** is running it is possibile to execute the **apcaccess** tool: | ||
+ | |||
+ | < | ||
+ | apcaccess status | ||
+ | </ | ||
+ | |||
+ | the output will show the following: | ||
+ | |||
+ | < | ||
+ | APC : 001, | ||
+ | DATE : 2022-10-26 21:12:53 +0200 | ||
+ | HOSTNAME : ithaca | ||
+ | VERSION | ||
+ | UPSNAME | ||
+ | CABLE : USB Cable | ||
+ | DRIVER | ||
+ | UPSMODE | ||
+ | STARTTIME: 2022-10-26 21:12:51 +0200 | ||
+ | MODEL : Back-UPS CS 500 | ||
+ | STATUS | ||
+ | LINEV : 228.0 Volts | ||
+ | LOADPCT | ||
+ | BCHARGE | ||
+ | TIMELEFT : 188.3 Minutes | ||
+ | MBATTCHG : 5 Percent | ||
+ | MINTIMEL : 3 Minutes | ||
+ | MAXTIME | ||
+ | OUTPUTV | ||
+ | SENSE : Medium | ||
+ | DWAKE : 0 Seconds | ||
+ | DSHUTD | ||
+ | LOTRANS | ||
+ | HITRANS | ||
+ | RETPCT | ||
+ | ITEMP : 29.2 C | ||
+ | ALARMDEL : 30 Seconds | ||
+ | BATTV : 13.5 Volts | ||
+ | LINEFREQ : 50.0 Hz | ||
+ | LASTXFER : No transfers since turnon | ||
+ | NUMXFERS : 0 | ||
+ | TONBATT | ||
+ | CUMONBATT: 0 Seconds | ||
+ | XOFFBATT : N/A | ||
+ | SELFTEST : NO | ||
+ | STESTI | ||
+ | STATFLAG : 0x05000008 | ||
+ | MANDATE | ||
+ | SERIALNO : 4B2214P31216 | ||
+ | BATTDATE : 2022-04-10 | ||
+ | NOMOUTV | ||
+ | NOMINV | ||
+ | NOMBATTV : 12.0 Volts | ||
+ | NOMPOWER : 300 Watts | ||
+ | FIRMWARE : 808.q14 .I USB FW:q | ||
+ | END APC : 2022-10-26 21:12:54 +0200 | ||
+ | </ | ||
+ | |||
+ | When the service is stopped, it is possible to configure the UPS using the command **apctest**: | ||
+ | |||
+ | < | ||
+ | systemctl stop apcupsd.service | ||
+ | apctest | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Checking configuration ... | ||
+ | sharenet.type = Network & ShareUPS Disabled | ||
+ | cable.type = USB Cable | ||
+ | mode.type = USB UPS Driver | ||
+ | Setting up the port ... | ||
+ | Doing prep_device() ... | ||
+ | |||
+ | You are using a USB cable type, so I'm entering USB test mode | ||
+ | Hello, this is the apcupsd Cable Test program. | ||
+ | This part of apctest is for testing USB UPSes. | ||
+ | |||
+ | Getting UPS capabilities...SUCCESS | ||
+ | |||
+ | Please select the function you want to perform. | ||
+ | |||
+ | 1) Test kill UPS power | ||
+ | 2) Perform self-test | ||
+ | 3) Read last self-test result | ||
+ | 4) View/Change battery date | ||
+ | 5) View manufacturing date | ||
+ | 6) View/Change alarm behavior | ||
+ | 7) View/Change sensitivity | ||
+ | 8) View/Change low transfer voltage | ||
+ | 9) View/Change high transfer voltage | ||
+ | 10) Perform battery calibration | ||
+ | 11) Test alarm | ||
+ | 12) View/Change self-test interval | ||
+ | Q) Quit | ||
+ | |||
+ | Select function number: | ||
+ | </ | ||
+ | |||
+ | The two most important functions are the **#10 battery calibration** and the **#12 self-test interval**. Battery calibration must be initiated with a fully charged battery and the normal load (it should be above 10%); it will end when battery drops below about 25%. | ||
+ | |||
+ | Unfortunately it seems that the **Back-UPS CS 500** model does not support the configuration of the **periodic self-test**; | ||
+ | |||
+ | ^ New battery date (MM/ | ||
+ | | 04/ | ||
+ | |||
+ | ====== Voltaggio batterie ======= | ||
+ | |||
+ | {{ sealed-lead-acid-battery-voltage.jpg? | ||
+ | L'UPS ospita due batterie di dimensioni **15.1** x **6.5** x **9.5** **cm** (larghezza, profondità, | ||
+ | |||
+ | Le batterie in questo UPS sono di tipo **[[wp> | ||
+ | |||
+ | Generalmente la corrente in standy-by (//**float voltage**//, | ||
+ | |||
+ | ^ Float voltage | ||
+ | ^ Boost voltage for cyclic use | 14.40 - 15.00 V | | ||
doc/appunti/hardware/ups_apc.1284645882.txt.gz · Last modified: 2010/09/16 16:04 by niccolo