[Nut-upsuser] Cannot access Patriot Pro II from new system

Olav Seyfarth olav at seyfarth.de
Thu Nov 26 23:56:14 UTC 2015

Hi Charles,

thank you VERY MUCH for all your hints.

> If you have a jumper wire handy, you can connect the PC's TxD to RxD
I should have tried to connect from another computer in the first place.
Or access another device known to work from this computer. It turned out
that the shield I used to connect the mainboard connector to the PC case
expected another mainboard pin layout. So all I had to do is to
re-arrange the wires... See attached log.

> open an issue on the DDL repository, and include the output of "upsc",
> "upsrw", and "upscmd -l"
Done: https://github.com/networkupstools/nut-ddl/issues/4

Please email me if I should provide/add anything else.

-------------- next part --------------
// I could not get nut on my new server running dibian jessie to connect to my UPS Best Power Patriot Pro 750.
// THIS is is a trail of my tests on a SECOND computer - so this shows what you see if all DOES work well.

// added user to dialout group and logged out and back in

$ setserial -g /dev/ttyS0 
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

$ stty -F /dev/ttyS0
speed 9600 baud; line = 0;
-brkint -imaxbel

$ sudo apt-get install nut
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libupsclient3 nut-client nut-server
Vorgeschlagene Pakete:
  nut-monitor nut-cgi nut-snmp nut-ipmi nut-xml
Die folgenden NEUEN Pakete werden installiert:
  libupsclient3 nut nut-client nut-server
0 aktualisiert, 4 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 876 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 5.345 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] 
Holen: 1 http://archive.ubuntu.com/ubuntu/ trusty/main libupsclient3 amd64 2.7.1-1ubuntu1 [60,0 kB]
Holen: 2 http://archive.ubuntu.com/ubuntu/ trusty/main nut-client amd64 2.7.1-1ubuntu1 [87,2 kB]
Holen: 3 http://archive.ubuntu.com/ubuntu/ trusty/main nut-server amd64 2.7.1-1ubuntu1 [609 kB]
Holen: 4 http://archive.ubuntu.com/ubuntu/ trusty/main nut all 2.7.1-1ubuntu1 [120 kB]
Es wurden 876 kB in 2 s geholt (416 kB/s).

$ sudo cat >>/etc/nut/ups.conf <<EOF
    driver = bestups
    port = /dev/ttyS0

// added user to nut group and logged out and back in
// all that's necessary for a DRIVER test should be there now
// UPS device is OFF (neither plugged in nor switched on, but serial cable plugged in)

$ /lib/nut/bestups -a Best_Power_Patriot_Pro_750 -DDDDD
Network UPS Tools - Best UPS driver 1.06 (2.7.1)
   0.000000	debug level is '5'
   0.000881	send_to_all: SETINFO device.type "ups"
   0.000931	send_to_all: SETINFO driver.version "2.7.1"
   0.000959	send_to_all: SETINFO driver.version.internal "1.06"
   0.000986	send_to_all: SETINFO driver.name "bestups"
  17.267267	Unable to detect a Best/SOLA or Phoenix protocol UPS

$ stty -F /dev/ttyS0
speed 2400 baud; line = 0;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

$ setserial -g /dev/ttyS0 
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

// note that the port has been reconfigured
// UPS is plugged, on and connected

$ /lib/nut/bestups -a Best_Power_Patriot_Pro_750 -DDDDD
Network UPS Tools - Best UPS driver 1.06 (2.7.1)
   0.000000	debug level is '5'
   0.000809	send_to_all: SETINFO device.type "ups"
   0.000861	send_to_all: SETINFO driver.version "2.7.1"
   0.000890	send_to_all: SETINFO driver.version.internal "1.06"
   0.000918	send_to_all: SETINFO driver.name "bestups"
   0.648605	get_ident: got [PRO,750,230,230,20.0,27.3]
   0.648678	send_to_all: SETINFO input.voltage.nominal "230"
   0.648715	send_to_all: SETINFO output.voltage.nominal "230"
   0.648749	send_to_all: SETINFO ups.mfr "Best Power"
   0.648766	send_to_all: SETINFO ups.model "Patriot Pro 750"
   0.648783	send_to_all: SETINFO battery.voltage.nominal "24"
Detected Best Power Patriot Pro 750 on /dev/ttyS0
   0.749072	send_to_all: ADDCMD test.battery.start
   0.749128	send_to_all: ADDCMD test.battery.stop
   1.149812	send_to_all: SETINFO battery.voltage "27.5"
   1.149863	send_to_all: SETINFO input.voltage "233.0"
   1.149895	send_to_all: SETINFO output.voltage "233.0"
   1.149919	send_to_all: SETINFO ups.load "000"
   1.149940	send_to_all: SETINFO input.frequency "50.0"
   1.149965	send_to_all: SETINFO battery.charge "100.0"
   1.149990	send_to_all: SETINFO ups.status "OL"
   1.150011	send_to_all: DATAOK
   1.150112	dstate_init: sock /var/run/nut/bestups-Best_Power_Patriot_Pro_750 open on fd 5
   1.150155	send_to_all: SETINFO driver.parameter.pollinterval "2"
   1.150193	send_to_all: SETINFO device.mfr "Best Power"
   1.150230	send_to_all: SETINFO device.model "Patriot Pro 750"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20151127/62acc0dd/attachment.sig>

More information about the Nut-upsuser mailing list