Home/Support/Support Forum/How to send a signal through IO ports when ethernet interface is down/up
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to send a signal through IO ports when ethernet interface is down/up

0 votes
I'm trying to develop a python application that allows me to use a telemetry card 2 on a DigiWR41 to send a signal through one of the IO ports when the ethernet interface of the router goes up/down. Any thoughts on how to approach this?
asked Oct 29, 2014 in Digi TransPort by fchavez14 New to the Community (7 points)

Please log in or register to answer this question.

1 Answer

+1 vote
 
Best answer
Hi
if you are using python you can execute a CLI command to check the state of ethernet

eth 1 status
Activation Status: Inactive
Connection Status: Disconnected
Link: 10Base-T Half-Duplex
Physical Port: ETH 0
MAC: 00 04 2D 02 54 FC
IP Address: 0.0.0.0
Mask: 255.255.255.0
Gateway: 0.0.0.0

then scrape the state

on the result set the io up or down

for ethernet port to go up and down you will needed to enable the "linkdeact" setting so when the cable is removed from ethernet the interface will go down
answered Nov 6, 2014 by James.Wilson Veteran of the Digi Community (1,225 points)
selected Dec 22, 2014 by fchavez14
...