UPSilon 2000 doesn't work USB on Linux, what could I do? trying to use either NUT or Megatec software

I got an UPS, UPSilon 2000. And in Windows, it works with USB cable but in Linux, it is not finding it in the configured port. Program files and Manual

Maybe it’s not on that port, but how would I figure? Or I could use minicom to fake the RS232 port as in this guide

 (UPSilon) UPS Status Screen, Ver. 2.1.02
 Copyright(C) 2008 Mega System Technologies, Inc.       2020-11-02, 08:15 Mon.
+-------------------------------------++--------------------------------------+
|  UPS Type          : N/A            ||   UPS Input Voltage: N/A             |
|  UPS Rating Voltage: N/A            ||   |----|----|----|----|----|----|--  |
|  UPS Rating Current: N/A            ||   70   80   90  100  110  120  130   |
|  UPS Line Frequency: N/A            ||                                      |
|  Communication Port: /dev/ttyS1     ||   UPS Output Voltage: N/A            |
|                                     ||   |----|----|----|----|----|----|--  |
|     Input AC Power : N/A            ||   70   80   90  100  110  120  130   |
|     Battery Status : N/A            ||                                      |
|     UPS Functioning: N/A            ||   UPS Power Loading: N/A             |
|     Boost/Buck     : N/A            ||   |----|----|----|----|----|----|--  |
|     UPS Temperature: N/A            ||   0    20   40   60   80  100  120   |
|     UPS Self-Test  : N/A            ||                                      |
|                                     ||   UPS Battery Level: N/A             |
|  Count Down Function: ON            ||   |----|----|----|----|----|----|--  |
|  Scheduling Function: OFF           ||   0    20   40   60   80  100  120   |
|  Next Shutdown Time : ---  --:--    ||                                      |
|  Next Restart  Time : ---  --:--    ||   UPS Input Frequency: N/A           |
|  ACfail Shutdown Delay:  5.0 Min.   ||   |----|----|----|----|----|----|--  |
|  UPS Turn Off Delay   :  3.0 Min.   ||   0    20   40   60   80   90  100   |
+-------------------------------------++--------------------------------------+
 System: Linux[linux-pc]      Type 'r' to Redraw, Type 'q' to Quit

$sudo dmesg | grep tty
[    0.084171] printk: console [tty0] enabled
[    2.505718] systemd[1]: Created slice system-getty.slice.
[   14.332400] audit: type=1006 audit(1604312655.329:78): pid=1407 uid=0 subj==unconfined old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=2 res=1
[   14.384039] audit: type=1006 audit(1604312655.379:82): pid=1409 uid=0 subj==unconfined old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=3 res=1

So I think NUT could work. But i get this after following a guide

$sudo upsd
Network UPS Tools upsd 2.7.4
fopen /run/nut/upsd.pid: No such file or directory
upsd.conf: invalid directive [myups]
upsd.conf: invalid directive driver = blazer_usb langid_fix=0x409
upsd.conf: invalid directive port = /dev/ttyS1
upsd.conf: invalid directive desc = UPSilon 2000
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Warning: no UPS definitions in ups.conf
Fatal error: at least one UPS must be defined in ups.conf

I’m following the Arch Wiki

upsdrvctl start               
Network UPS Tools - UPS driver controller 2.7.4
Error: no UPS definitions found in ups.conf

Ok I fiexed where I messed up now I have just the no definition error

Network UPS Tools upsd 2.7.4
fopen /run/nut/upsd.pid: No such file or directory
listening on 127.0.0.1 port 3493
Warning: no UPS definitions in ups.conf
Fatal error: at least one UPS must be defined in ups.conf

Maybe using USB as RS232 as in this guide but lsusb is not working

Note: I haven’t tested but this seems it’s running properly. I would have to unplug my UPS and wait for 5 minutes. This is /etc/nut/upsmon.conf

Install NUT

paman -S nut

Find out you USB IDs

lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c084 Logitech, Inc. G203 Gaming Mouse
Bus 003 Device 002: ID 046d:c336 Logitech, Inc. Gaming Keyboard G213
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 05a3:9331 ARC International Camera
Bus 001 Device 002: ID 0001:0000 Fry's Electronics 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Find out your Drivers. Mine is listed as blazer_usb langid_fix=0x409

Configure /etc/nut/ups.conf

[upsilon-2000]
driver = "blazer_usb"
port = auto
langid_fix="0x409"
desc="Upsilon 2000"
vendorid = "0001"
productid = "0000"

Edit nano /etc/nut/nut.conf

MODE=standalone

Enable service and start

systemctl enable nut-server.service
systemctl start nut-server.service

Start driver: (Maybe it’s better to do this before starting the service)

upsdrvctl start

You may need to reboot to make the server work properly.

Check status

systemctl status nut-server
● nut-server.service - Network UPS Tools - power devices information server
     Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-11-18 08:27:09 AST; 1h 4min ago
    Process: 997 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)
   Main PID: 998 (upsd)
      Tasks: 1 (limit: 19048)
     Memory: 1.5M
     CGroup: /system.slice/nut-server.service
             └─998 /lib/nut/upsd

nov 18 08:27:09 carlos-AB350-Gaming-3 systemd[1]: Starting Network UPS Tools - power devices information server...
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: fopen /run/nut/upsd.pid: No such file or directory
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on 127.0.0.1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on ::1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on 127.0.0.1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: listening on ::1 port 3493
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: Connected to UPS [upsilon-2000]: blazer_usb-upsilon-2000
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[997]: Connected to UPS [upsilon-2000]: blazer_usb-upsilon-2000
nov 18 08:27:09 carlos-AB350-Gaming-3 upsd[998]: Startup successful
nov 18 08:27:09 carlos-AB350-Gaming-3 systemd[1]: Started Network UPS Tools - power devices information server.
upsc upsilon-2000@localhost ups.status 2>&1 | grep -v '^Init SSL'
OL

For all the info

upsc upsilon-2000@localhost
Init SSL without certificate database
battery.charge: 100
battery.voltage: 27.20
battery.voltage.high: 26.00
battery.voltage.low: 20.80
battery.voltage.nominal: 24.0
device.type: ups
driver.name: blazer_usb
driver.parameter.langid_fix: 0x409
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0000
driver.parameter.synchronous: no
driver.parameter.vendorid: 0001
driver.version: 2.7.4
driver.version.internal: 0.12
input.current.nominal: 15.0
input.frequency: 59.9
input.frequency.nominal: 60
input.voltage: 118.2
input.voltage.fault: 118.2
input.voltage.nominal: 120
output.voltage: 118.2
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 20
ups.productid: 0000
ups.status: OL
ups.type: offline / line interactive
ups.vendorid: 0001

source

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.