Community discussions

MikroTik App
 
User avatar
NAB
Trainer
Trainer
Topic Author
Posts: 542
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

Hack/mod to RB411UAHR to switch relay....?

Mon Sep 27, 2010 8:12 pm

Hi,

I have a new customer with an interesting project:

At remote sites, there will be a RB411UAHR tunnelling back to a central concentrator. The RBs will be connected to the Internet via a GSM modems and a black box device will be connected to each RBs Ethernet port. That is the only equipment at the remote site.

The black box runs from a 12V supply and is very unreliable. There is therefore a requirement for forcing a remote power cycle of it.

So, I would like some way of using the RB to switch a relay which would then be used to cycle the black box.

I can think of several ways of doing it if I use external hardware (the best of which would be an Arduino monitoring the serial port), but it would be nice to be able to do it without any additional hardware (apart from the relay, of course).

Any ideas anybody?
 
User avatar
NAB
Trainer
Trainer
Topic Author
Posts: 542
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

Re: Hack/mod to RB411UAHR to switch relay....?

Mon Sep 27, 2010 11:33 pm

Hmmm. Looks like I can set DTR and RTS on the serial port, so I could use that with a much less complicated microprocessor configuration. I'll get the multimeter out tomorrow and have a poke about to see what happens....
 
User avatar
NAB
Trainer
Trainer
Topic Author
Posts: 542
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

Re: Hack/mod to RB411UAHR to switch relay....?

Tue Sep 28, 2010 3:32 pm

Hmm.

Setting DTR and/or RTS high and low seems to have absolutely no effect at all.

Ideas anybody?
 
User avatar
NAB
Trainer
Trainer
Topic Author
Posts: 542
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

Re: Hack/mod to RB411UAHR to switch relay....?

Tue Sep 28, 2010 9:18 pm

OK. Problem solved.

I couldn't find any nice way of getting signals out of the board, so I've decided to use the serial port instead. Creating a special-user and then SSHing into the box works a treat.

I've built a proof of concept Arduino based prototype which offers a simple menu on a serial port and allows for triggering a relay which causes the attached kit to power-cycle. Total cost (excluding the RB itself), £20, so pretty cheap as well.

The down-side is that there's no obvious way for the Arduino to act as a watchguard unless the attached kit can send it a heartbeat. I'll have a think about this. It would be nice if ROS could send text out on the serial port of the RB itself, but that may be asking too much.
 
adrianatkins
Long time Member
Long time Member
Posts: 556
Joined: Wed Sep 05, 2007 10:34 am
Location: Spain
Contact:

Re: Hack/mod to RB411UAHR to switch relay....?

Tue Sep 28, 2010 10:01 pm

Why not set up a PPP server on the serial port ?

if you send FF 03 at it occasionally, the PPP server will send you loads of stuff.

Better still, implement the LCP bit of PPP and 'talk' to it - once LCP is up, the PPP server will keep sending LCP 'pings' once in a while.
 
rmichael
Forum Veteran
Forum Veteran
Posts: 718
Joined: Sun Mar 08, 2009 11:00 pm

Re: Hack/mod to RB411UAHR to switch relay....?

Wed Sep 29, 2010 2:45 am

How about using fan control for control signal?
 
csickles
Forum Guru
Forum Guru
Posts: 1255
Joined: Fri May 28, 2004 8:46 pm
Location: Phoenix, AZ
Contact:

Re: Hack/mod to RB411UAHR to switch relay....?

Fri Oct 01, 2010 5:36 pm

Give Baltic networks a call..
www.balticnetworks.com
Thet are showing off a USB based digital I/O and temp / humidity sensor board at the MUM.

Who is online

Users browsing this forum: kennethrc and 110 guests