[Nut-upsuser] NUT support for CyberPower PR1500LCDRTXL2Ua

Ben Kamen bkamen at benjammin.net
Mon Jan 18 22:08:11 UTC 2016


Hey all,

  I ended up picking up the module listed in Subject line.

I switched over my config but apparently not all going smoothly.

My config is:

[office]
         driver = powerpanel
         port   = /dev/ttyS0
         desc   = "Office UPS"



When I test the driver running power-panel as a test, I get:

> [root at cornelius init.d]# powerpanel -a office -D -D -D -D
> Network UPS Tools - CyberPower text/binary protocol UPS driver 0.25 (2.6.5)
> Warning: This is an experimental driver.
> Some features may not function correctly.
>
>    0.000000     debug level is '4'
>    0.011515     Trying binary protocol...
>    0.213611     send: (2 bytes) => 46 0d
>    0.667149     read: timeout
>    0.667192       \_: (0 bytes) =>
>    0.768409     send: (2 bytes) => 46 0d
>    1.223223     read: timeout
>    1.223270       \_: (0 bytes) =>
>    1.324495     send: (2 bytes) => 46 0d
>    1.777587     read: timeout
>    1.777634       \_: (0 bytes) =>
>    1.798033     Trying text protocol...
>    1.898845     send: (2 bytes) => 0d 0d
>    1.999995     read: (3 bytes) => 23 2d 32
>    2.151843     send: (3 bytes) => 50 34 0d
>    2.399718     read: (52 bytes) => 23 50 52 31 35 30 30 4c 43 44 52 54 58 4c 32 55 61 20
>    2.399766      20 20 20 2c 34 2e 33 35 30 2c 50 53 55 45 56 32 30 30 30 31 31 33 2c 43 59
>    2.399794      42 45 52 20 50 4f 57 45 52
>    2.399818     CyberPower UPS with text protocol on /dev/ttyS0 detected
>    2.551420     send: (3 bytes) => 50 33 0d
>    2.703743     read: (29 bytes) => 23 31 32 2c 34 78 31 2c 39 2c 30 30 2c 30 30 35 2c 34
>    2.703786      38 30 2c 31 32 2c 34 78 32 2c 39
>    2.855643     send: (3 bytes) => 50 32 0d
>    2.996719     read: (31 bytes) => 23 31 35 30 30 2c 31 33 35 30 2c 31 32 30 2c 34 37 2c
>    2.996765      36 33 2c 31 32 2e 30 2c 35 33 2c 35 37
>    3.148635     send: (3 bytes) => 50 31 0d
>    3.249251     read: (21 bytes) => 23 31 32 30 2c 31 35 30 2c 30 38 30 2c 33 35 2c 30 30
>    3.249287      33 30 30
>    3.401125     send: (3 bytes) => 50 36 0d
>    3.615723     read: (44 bytes) => 23 31 34 30 2c 31 34 31 2c 31 34 32 2c 31 34 33 2c 31
>    3.615799      34 34 2c 31 34 35 2c 31 34 36 2c 31 34 37 2c 31 34 38 2c 31 34 39 2c 31 35
>    3.615823      30
>    3.767688     send: (3 bytes) => 50 37 0d
>    3.964712     read: (44 bytes) => 23 30 38 30 2c 30 38 31 2c 30 38 32 2c 30 38 33 2c 30
>    3.964781      38 34 2c 30 38 35 2c 30 38 36 2c 30 38 37 2c 30 38 38 2c 30 38 39 2c 30 39
>    3.964806      30
>    4.116667     send: (3 bytes) => 50 38 0d
>    4.256708     read: (30 bytes) => 23 32 30 2c 32 35 2c 33 30 2c 33 35 2c 34 30 2c 34 35
>    4.256746      2c 35 30 2c 35 35 2c 36 30 2c 36 35
>    4.408610     send: (3 bytes) => 50 35 0d
>    4.509005     read: (3 bytes) => 23 2d 32
>    4.660827     send: (3 bytes) => 50 39 0d
>    4.761975     read: (4 bytes) => 23 d5 df f0
>    4.863075     send: (2 bytes) => 43 0d
>    4.964149     read: (2 bytes) => 23 30
>    5.064982     send: (2 bytes) => 44 0d
>    5.266667     read: (35 bytes) => 23 49 31 31 39 2e 30 4f 31 31 39 2e 30 4c 30 31 38 42
>    5.266710      31 30 30 54 30 32 37 48 30 36 30 2e 30 46 30 36 30
>    5.266834     Parsing status string failed
>    5.266876     Communications with UPS lost: Status read failed!
>    5.267201     dstate_init: sock /var/run/nut/powerpanel-office open on fd 5
>    5.368488     send: (2 bytes) => 44 0d
>    5.569134     read: (35 bytes) => c0 88 80 57 00 81 0d 23 49 31 32 30 2e 30 4f 31 32 30
>    5.569183      2e 30 4c 30 31 38 42 31 30 30 54 30 32 37 48 30 36
>    5.569208     Parsing status string failed
>    5.569231     Communications with UPS lost: Status read failed!
>    7.374181     send: (2 bytes) => 44 0d
>    7.575264     read: (35 bytes) => 23 49 31 32 30 2e 30 4f 31 32 30 2e 30 4c 30 31 38 42
>    7.575313      31 30 30 54 30 32 37 48 30 36 30 2e 30 46 30 36 30
>    7.575351     Parsing status string failed
>    7.575377     Communications with UPS lost: Status read failed!

Maybe better off just switching to different driver?

(is the USBHID worth using?)

I'm running CentOS 6.7 on this system. not sure if the gnome USB UPS drivers are installed. (meh)

Thanks,

  -Ben



More information about the Nut-upsuser mailing list