Page 1 of 1

Getting Access When Using UPS

Posted: Fri Jul 23, 2004 1:04 am
by GJS
I want to use my routerboard 230 and routerOS with APC smartUPS support, connected to the serial port of the routerboard. If I mis-configure the ethernet interfaces so that they are, for example, both disabled, how can I access the router to fix the problem?

Thanks,
Guy

Posted: Fri Jul 23, 2004 9:52 am
by netcomp
I see from Routerboard's picture that it has USB port, maybe Mikrotik installed USB keyboard support so you can type without looking enywhere :-), or even you can put one PCI vga card and connect it to monitor :P.

Posted: Fri Jul 23, 2004 10:29 am
by normis
actually USB keyboard and PCI video cards are supported on the routerboard. Read the manual for details:

http://www.routerboard.com/PDF/RouterBO ... A4-2-5.pdf

Posted: Fri Jul 23, 2004 11:06 am
by netcomp
vga to serial – whether to map VGA output to the serial console (yes | no; yes by default). Should be
enabled if working via serial terminal.
???? Am I understanding this right, is there also VGA card integrated on board and can be redirected to RS232 pins, if yes, where is schematics which pins are what when is in VGA mode or how to make cable for monitors????

Posted: Fri Jul 23, 2004 1:50 pm
by lastguru
vga-to-serial is not redirecting VGA analog signal to RS232 pins, but rather makes text-mode output to the serial port.

There is a J16 jumper (marked as CIN on the board) - if you close it, the serial console will return to the serial port. See the RouterBoard 200 manual for more details.

Posted: Fri Jul 23, 2004 4:24 pm
by GJS
OK, thanks lastguru. In the routerboard manual J16 is just listed as a programable jumper. However, in the RouterOS manual, under routerboard specific functions the console reset facility is described. RouterOS Routerboard package needs to be installed for this to work.

Guy

UPS Monitoring...

Posted: Wed Aug 04, 2004 12:54 am
by BelWave
Did you get your RB230 to monitor the APC UPS?

I am trying right now:

set port=serial0 enabled=yes

But I get:

ERROR: port is already in use

There is nothing plugged into the serial port. I have rebooted and tried with the APC UPS plugged into the RB230 and without it plugged in. No workie...

Anyone ever use the UPS monitor feature? Once I get it enabled how do I setup email notifications?

Thanks,

Brad

UPS Monitoring..

Posted: Wed Aug 04, 2004 1:31 am
by BelWave
Ok, got it to enable by removing serial-console, but it's not showing any signs of life.

Suggestions?


Brad

Posted: Wed Aug 04, 2004 1:51 am
by lastguru
1. That is normal - the console occupies the first serial port so that it would be possible to connect to it with a serial terminal.

2. If UPS is not working, check out cabling first - you need to use a special APC UPS cable...

Posted: Wed Aug 04, 2004 1:57 am
by GJS
Well, if it's the same problem that I had, it's because your APC UPS does not support the "smart" signalling protocol. :oops:

APC uses two types of signalling: "smart" which is RS232 based and passes lots of data in ASCII strings about the status of the UPS and this is what RouterOS supports. What I like to call "dumb" signalling just sends a couple of lines on the interface high and low to indicate "on battery", and "battery low".

It is difficult to know which APC UPSs support smart signalling but anything with "Pro" in it seems to have it. The "Back UPS" range does not. Check with APC tech support before you buy. If you have already bought a dumb model joint the :x club.

Hope this helps.
Guy

Posted: Wed Aug 04, 2004 1:59 am
by GJS
Yes, good point. APC now supplies the correct cable with the UPS but if you don't have one, Google for the pin out.

Guy

Posted: Wed Aug 04, 2004 2:14 am
by lastguru
Yes, BackUPS Pro and SmartUPS should work OK. And I hope the pinout here http://www.mikrotik.com/docs/ros/2.8/system/ups.main works with APC.

Now what to do with the dumb signaling? May be sigwatch tool will give a possibility at least to send an e-mail on such events? Just an idea, I might be wrong, but that could be interesting if GJS would try it out...

Posted: Wed Aug 04, 2004 3:11 am
by GJS
Hmm...very interesting. I was not aware of the sigwatch tool at all. I've had a quick look at the manual and it sounds like this should work.

Unfortunately, I have yet to tackle my first MT script so I am not an ideal candidate to try this out in the immediate future. I will certainly give it a go however, and in the meantime I will post what the non-smart UPS capabilities are so that we have an idea of what should be possible.

That's a great tip, lastguru, as the non-smart UPS range gives you considerably more bang (Ah) for your buck! 8)

Guy

Posted: Wed Aug 04, 2004 7:05 am
by Bill
When I brought my new router on-line, I had trouble getting it to recognize the UPS that was connectged to the old router. The new router only had one serial port, instead of two, and MT wouldn't recognize the add-in PCI card I bought. I tried disabling the serial console, but couldn't get it to recognize the UPS.

I finally got it to work by changing the address and irq assigned to the serial port. It was originally setup in the BIOS as COM1 (3f8, irq4). I changed the settings to what would normally be assigned to COM2 (2f8, irq3). When it booted up, it saw and connected to the UPS with no problem. I don't have a serial console anymore, but this router sits inside with a keyboard and monitor attached.

Posted: Thu Aug 12, 2004 7:21 pm
by GJS
OK, well, I found that the simple signalling capabilities of the APC UPS are one line goes high for on-battery and one line goes high for low-battery. Then there is one line which when sent high by an attached device, turns off the UPS output. I am unsure about this third line as I do not understand how or why an attached device would immediately kill the power to itself. How does this help with graceful shutdown of the attached device?

Does anyone have any ideas on this?

Thanks,
Guy

Posted: Thu Aug 12, 2004 8:10 pm
by lastguru
For me it would only make sense if the attached device first shut down, then sent that signal to the UPS to terminate power, but when the utility power would return, the UPS would power the device up again.

Posted: Thu Aug 12, 2004 10:42 pm
by GJS
Yes, same for me, though the UPS does turn the output power back on autonimously when the mains supply is restored.

I'll be doing some practical experiments to confirm the pins and the behaviour of the device over the weekend so I'll post my findings then.

Guy

Smartups 700

Posted: Wed Feb 09, 2005 12:33 am
by Jrslick22
I got my Smartups 700 going with no problem, I’m WinBox I just went system>serial console> and then un ticked the enable box. Then went to the system>ups tab and enabled ups support. Then that was that it works fine.

What I would like to know is now that I have it all working how do I get it to send me email? I know this was mentioned in some of the topic listed above, but did anyone get it to work?

Posted: Wed Feb 09, 2005 12:59 am
by GJS
I haven't actually done this yet but instruction are here and I see no reason why it shouldn't work:

http://www.mikrotik.com/docs/ros/2.8/ho ... o.frameset

Something I would like to know from you, Jrslick22, how did you post in this topic? Topics of this age appear locked to me.

Thanks.

No sure

Posted: Sun Feb 27, 2005 6:51 am
by Jrslick22
It must be my good looks?

I just clicked post reply?

Re: Getting Access When Using UPS

Posted: Sat Oct 20, 2007 12:16 am
by Adam McLaughlin
I too am having problems working the serial port with the Smart UPS.

How can I change the port configuration information on the RouterBoard to match what the UPS is looking for?

Yes, I disabled console first. Still thinks that this port is in use.

Adam