RB532 and UPS

I am developing a 12v UPS that I want to connect to the RB532 Serial Port so the Mikrotik sends an email when the power: GOES OFF, BATTERY IS LOW, POWER RETURNS

The UPS is designed to run the RB532 + 2 mPCI cards for about 35hours at average WLAN throughput

The microcontroller is a PIC16F877A including a status LCD


I understand that routeros supports the APC smart protocol, which I found some info on the web, but didn’t really find it usefull/understandable

I have not managed to “trick” router os by sending data via the serial port from a PC (Null modem → Hyperterm); Under UPS in Winbox the UPS status status remains OFFLINE

Does anyone know anything about the protocol or what values have to be sent via serial to the mikrotik. What I am after are just 3 states; On mains ; On battery ; battery low

I might also consider writing an ADC program to read the voltage from the battery and send that to the Mikrotik aswell

Once this project is complete I am willing to publish it including PCB’s and PIC source code on the mikrotik WIKI page

Thanks

Stanley Grixti 9H1LO
:unamused:

Hi Stanley

Welcome to the forum!

Your project sounds like just the kind of thing I’ve been wanting to build but I’m probably better at baking cakes than I am electronics (belive me my cakes are terrible)

Maybe this project may have useful information for you?

http://www.apcupsd.org/

Kind Regards

Harvey

http://www.stourvalleywireless.org.uk - community networks

Hi Harvey and thanks for your reply

however the page http://www.apcupsd.org/ seems down :frowning:

Good luck with your cakes!! and great job on the community wireless project!

Stan

try http://sourceforge.net/projects/apcupsd