i forgot to say - the ‘Flash Activity’ LED is where the ‘sense’ line comes from, so you should disable anything that does a disk write, like logging. Use Memory or Remote instead.
Very nice. If an RB has an extra ethernet port and ethernet status LEDs, and this model of RB lets you turn ports on and off, you could use an ethernet port’s status LED to power up/power down something with your circuit. Put a loopback plug into the ethernet port (transmit connected to receive), and ethernet would be up whenever the ethernet port is active. (Don’t bridge this port into the rest of the network!) Temporarily disable the ethernet port to turn off the relay controlled poe.
I just found out that the ‘Running’ status of the MT ports can be spoofed by looping back the wires in the RJ45 connector.
One application i thought of for this is to loop back pins 1+3, and have pins 2+6 connected thru a mains-powered relay.
Them when the mains power goes off or back on, you can detect the fact by looking at the port status, and send yourself an email etc.
'course you need battery backup on the AP to be able to do that.
Below is a script (run from Scheduler once in a while) to do that (tested on 3.29).
You just set the ‘port=x’ to select which port you’re montoring, and it uses the Comment field for the port to count how many times it sent you an email - you don’t want it bothing you all the time. ‘emails 2’ means it will send you 2 emails about the power going off/on.
:global port 1
:global emails 2
:global to “adrian@adrianatkins.com”
:global server “a.working.smtp.server.com”
:global goodtxt “Power OK”
:global badtxt “Power Has Failed”
:global stat
:global ostat
:global cnt
:global goodbody ([/system identity get name]." “.$goodtxt)
:global badbody ([/system identity get name].” ".$badtxt)
I’ve just tried it on a 493 board and it works, but the pinning/wiring is different, which is probably the same for any RB that uses the ethernet socket marked as 47F-1205BGYDNW2NL.
If you have your 493 board upside-down, with the PoE and serial sockets facing you, then looking at the pins under the PoE socket, the +ve is on the bottom row, 2nd pin in from the left, and the -ve is on the top row, 3rd in from the left.
I just connected those two pins to the same pins on the next nearest ethernet socket and got an RB333 to power up on PoE from it
If you make this with a 493, and you connect a laptop on it, it’s possible to have problems with the POE and the lan of the laptop. Due to the laptop don’t accept “powered pins”, true?