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
363 views 0 comments
by anonymous

Hello,

I have TRB140 and I would like to turn ON I/O output for 5 sec by SMS 

How do I do that? 

I tried an I /O juggler but that marvellous thing works only for I/O input. 

btw. I need other I/O pin for another application.

1 Answer

+1 vote
by anonymous

Hi,

I believe you would need a script for this as this functionality without one more pin is impossible in the current state of the FW.

With the script, you can grep incoming messages from gsmctl or logread and if it meets conditions you've set - it activates further script sequence that would change your output state for 5 seconds, and after those 5 seconds you can invert it back to the primary state - after which the scripts work in idle again.

To change the I/O state from SSH use ubus call ioman.gpio.dio1 update '{"value": "1"}'

To check the status of I/O  ubus call ioman.gpio.dio1 status

EB.

Best answer