Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione Entrambe le parti successive la revisione
projects:upshack [10/11/2013 23:26]
admin
projects:upshack [14/11/2013 15:54]
admin
Linea 106: Linea 106:
  
 I don't know if other //​commands//​ could be sent to the UPS, in addition to the shutdown. I don't know if other //​commands//​ could be sent to the UPS, in addition to the shutdown.
 +
 +== I'm a stupid ==
 +**//Some day after//**
 +
 +Source code of NUT and its drivers, including blazer, is available at [[http://​www.networkupstools.org/​download.html|NUT download page]].
 +
 +If you look in "​blazer.c"​ and "​blazer_ser.c"​ (in the drivers directory) you can understand how the protocol works.
 +
 +**Answer data fields**
 +<​code>​
 +InputVoltage ​    ​InputVoltageFault ​     OutputVoltage ​     UpsLoad ​    ​InputFrequency ​    ​BatteryVoltage ​     UpsTemperature ​     StatusBits
 +</​code>​
 +
 +**StatusBits field**
 +<​code>​
 +bit  if=1                  if=0
 +0    utility fail (OB)     ​online (OL)
 +1    battery low (LB)      battery good
 +2    bypass/​boost active ​  ​normal
 +4    offline/​interactive ​  ​online
 +5    test in progress ​     normal
 +7    beeper on             ​beeper off
 +</​code>​
  
 === Final hack === === Final hack ===
 This is more likely a CISCO router related topic. However, I have connected the ups serial port to the router'​s AUX port and configured as ''​modem inout''​. This is more likely a CISCO router related topic. However, I have connected the ups serial port to the router'​s AUX port and configured as ''​modem inout''​.
  
-Now I can inquiry UPS status remotely connecting to the Cisco. In the next step I'll try to forward the remoted ​session ​to a virtual serial portThis can be usually achieved with unix **socat** command but in my case the Cisco asks for login before relaying ​to the serial port.+Now I can inquiry UPS status remotely connecting to the Cisco through a telnet ​session. 
 + 
 +A small script ​in python has been written ​to keep the telnet connection alive and inquiry UPS status every 10 seconds. If there are problems a mail is sent.
Navigazione

Table of contents

Contact

For any info you can write to:
Per qualunque info potete scrivere a:
info[at]maetech[dot]it

Ads

Stampa/Esporta
QR Code
QR Code projects:upshack (generated for current page)