You are not logged in.

#1 2017-11-25 20:01:57

jbssm
Member
Registered: 2017-10-28
Posts: 21

Network UPS Tools (NUT) with UPS connected to Serial to USB adapter

I have an UPS Mustek PowerMust 600Va Plus conected to a USB to serial adapter.

Arch detects the USB to serial adapter fine:

~ >>> lsusb                                                                                                                                                                             
...
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
...

And creates the serial device sucessfuly:

~ >>> ls -ltra /dev/serial/by-id                                                                                                                                                        
total 0
lrwxrwxrwx 1 root root 13 Nov 25 16:26 usb-067b_2303-if00-port0 -> ../../ttyUSB0

I configured the UPS as:

~ >>> cat /etc/ups/ups.conf                                                                                                                                                            
[upsmustek]
	driver = blazer_ser
	port = /dev/ttyUSB0
	desc = "Mustek PowerMust 600VA Plus"

But when I try to start the nut-server service I get an error:

~ >>> systemctl status nut-server.service                                                                                                                                               
● nut-server.service - Network UPS Tools - power devices information server
   Loaded: loaded (/usr/lib/systemd/system/nut-server.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2017-11-25 19:39:49 WET; 20min ago
  Process: 6476 ExecStart=/usr/bin/upsd (code=exited, status=0/SUCCESS)
 Main PID: 6477 (upsd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/nut-server.service
           └─6477 /usr/bin/upsd

Nov 25 19:39:49 homelab upsd[6476]: listening on 127.0.0.1 port 3493
Nov 25 19:39:49 homelab upsd[6476]: Can't connect to UPS [upsmustek] (blazer_ser-upsmustek): No such file or directory
Nov 25 19:39:49 homelab upsd[6476]: listening on ::1 port 3493
Nov 25 19:39:49 homelab upsd[6476]: Can't connect to UPS [upsmustek] (blazer_ser-upsmustek): No such file or directory
Nov 25 19:39:49 homelab upsd[6477]: Startup successful
Nov 25 19:39:49 homelab systemd[1]: Started Network UPS Tools - power devices information server.
Nov 25 19:44:50 homelab upsd[6477]: Can't connect to UPS [upsmustek] (blazer_ser-upsmustek): No such file or directory
Nov 25 19:49:50 homelab upsd[6477]: Can't connect to UPS [upsmustek] (blazer_ser-upsmustek): No such file or directory
Nov 25 19:54:50 homelab upsd[6477]: Can't connect to UPS [upsmustek] (blazer_ser-upsmustek): No such file or directory
Nov 25 19:59:50 homelab upsd[6477]: Can't connect to UPS [upsmustek] (blazer_ser-upsmustek): No such file or directory

Any idea on how to solve this?

Offline

Board footer

Powered by FluxBB