FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
113 views 2 comments
by anonymous

Hi,

we try to use output on pin4 and uci show changing values:

root@Teltonika-RUTX08:~# uci show | grep ioman.dout
ioman.dout1=gpio
ioman.dout1.direction='out'
ioman.dout1.bi_dir='0'
ioman.dout1.value='1'

root@Teltonika-RUTX08:~# uci show | grep ioman.dout
ioman.dout1=gpio
ioman.dout1.direction='out'
ioman.dout1.bi_dir='0'
ioman.dout1.value='0'

But the pin4 is always low, cable is ok (test between connector and cable end).
Is there some setting I missing or is it an faulty hardware?

RUTX_R_00.07.04.3

1 Answer

0 votes
by anonymous

Hello,

  

Could you clarify if you are only experiencing this issue when using UCI? Or does the DOUT pin stay LOW even when changing the values via the WebUI?

Additionally, could you clarify how you are measuring the state of the pin?

In case there are some misunderstandings about DOUT pin functionality, to measure it, you should select the continuity test on the multimeter, and measure between the ground pin (black wire) and the digital output (white wire). Once the pin is set to high, the multimeter should indicate short-circuit between these pins.

One last note, if you are only experiencing issues when using UCI, make sure to commit the changes by running the command uci commit ioman and the restart of ioman service may be needed as well (/etc/init.d/ioman restart).

  

Best regards,
DaumantasG

Best answer
by anonymous

Additionally, could you clarify how you are measuring the state of the pin?

Good point!
I measure betwern 1/red and 4/white voltage, but you write "short-circuit" that mean ohm?
I expected volts (Vcc)?

by anonymous

Hello,

  

No, the digital output pin is connected to the ground pin of the PSU. So if you want to power something from the router, you will need to connect the negative pin to the DOUT, and the positive pin to the positive terminal of the PSU.

Please keep in mind, that 300mA is the maximum current that can be drawn this way (more information here). The usual use case if to use DOUT with a relay of choice, which can be rated for any power, as long as the current draw does not exceed 300mA.

EDIT: And yes, you should see 0Ω between DOUT and negative pin, and you should see the same voltage as the PSU supplies when measuring voltage between positive terminal and DOUT (while it's HIGH).

  

Best regards,
DaumantasG