Community discussions

MikroTik App
 
Josephny
Member
Member
Topic Author
Posts: 453
Joined: Tue Sep 20, 2022 12:11 am

UPS Connection to hEX?

Sat Mar 11, 2023 3:18 pm

I'd like to be able to connect a UPS to a hEX.

Possible?

Thanks.
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: UPS Connection to hEX?

Sat Mar 11, 2023 3:29 pm

If it is an APC UPS just plug the USB cable from the UPS into the hEX and install the ups package. For much older APC devices with serial but no USB you can also connect via any serial-to-USB adapters supported by Mikrotik, in the past I've used a Smart UPS VS650 and a Prolific serial adapter.

IIRC there have been posts that some other manufacturers UPS with USB connections also work, but many don't.
 
Josephny
Member
Member
Topic Author
Posts: 453
Joined: Tue Sep 20, 2022 12:11 am

Re: UPS Connection to hEX?

Sat Mar 11, 2023 3:39 pm

If it is an APC UPS just plug the USB cable from the UPS into the hEX and install the ups package. For much older APC devices with serial but no USB you can also connect via any serial-to-USB adapters supported by Mikrotik, in the past I've used a Smart UPS VS650 and a Prolific serial adapter.

IIRC there have been posts that some other manufacturers UPS with USB connections also work, but many don't.
Plug the USB cable into an RJ56 on hEX?

Does the USB carry IP?

Thanks!
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: UPS Connection to hEX?

Sat Mar 11, 2023 4:00 pm

No. APC supply a cable with a 10P10C modular connector at one end to connect to the UPS and a USB A plug at the other. A hEX (RB750Gr3) has a USB socket, as do hEX S, hEX PoE lite and hEX PoE. The hEX lite does not have USB, but you said you have a hEX.
 
Josephny
Member
Member
Topic Author
Posts: 453
Joined: Tue Sep 20, 2022 12:11 am

Re: UPS Connection to hEX?

Sat Mar 11, 2023 5:19 pm

No. APC supply a cable with a 10P10C modular connector at one end to connect to the UPS and a USB A plug at the other. A hEX (RB750Gr3) has a USB socket, as do hEX S, hEX PoE lite and hEX PoE. The hEX lite does not have USB, but you said you have a hEX.
Got it -- I didn't realize the hEX had a USB port.

Do you know if Cyberpower UPS will also work?

Thank you.
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: UPS Connection to hEX?

Sun Mar 12, 2023 2:31 pm

I don't. You could search the forums to see if anyone else has reported success or failure, or as you have a hEX and UPS try it - the worst that can happen is that the UPS is not recognised by the Mikrotik package.
 
Josephny
Member
Member
Topic Author
Posts: 453
Joined: Tue Sep 20, 2022 12:11 am

Re: UPS Connection to hEX?

Sun Mar 12, 2023 10:30 pm

Works!

Is there a way to have the data logged and graphed?
[admin@212Hex] /system/ups> print
Flags: X - disabled; I - invalid 
 0    name="ups1" port=usbhid1 offline-time=0s min-runtime=never alarm-setting=immediate model="EC850LCD" serial="BF01201HBP1.y" load=0% on-line=yes 
[admin@212Hex] /system/ups> monitor 0
         on-line: yes
    runtime-left: 4h4m10s
  battery-charge: 100%
    line-voltage: 121V
  output-voltage: 121V
            load: 0%
 
Josephny
Member
Member
Topic Author
Posts: 453
Joined: Tue Sep 20, 2022 12:11 am

Re: UPS Connection to hEX?

Sun Mar 12, 2023 11:20 pm

Home Assistant:

Screenshot 2023-03-12 172007.jpg
You do not have the required permissions to view the files attached to this post.
 
olivier2831
Member Candidate
Member Candidate
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

Re: UPS Connection to hEX?

Mon Mar 13, 2023 2:25 pm

Works!
What do you mean by that ? hEX to Cyberpower or hEX to APC ?
 
Josephny
Member
Member
Topic Author
Posts: 453
Joined: Tue Sep 20, 2022 12:11 am

Re: UPS Connection to hEX?

Mon Mar 13, 2023 6:00 pm

I think I posted too quickly.

Using the Cyberpower EC850.

Line voltage and general status is available, but I don't get any load usage.
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: UPS Connection to hEX?

Mon Mar 13, 2023 7:10 pm

At least you can read something. It could be that model doesn't provide the information (certainly not all APC models do), or if it does as a data element which the Mikrotik HID UPS parser is not checking.

Regarding graphing you run something on a small computer (e.g. Raspberry Pi) and use SNMP to read the values seen by the Mikrotik.

Who is online

Users browsing this forum: Bing [Bot], fragment, RobertsN, smirgo and 80 guests