FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

13340 questions

15854 answers

25644 comments

50341 members

0 votes
228 views 3 comments
by

Hello, 

due to https://wiki.teltonika-networks.com/view/RUT955_Input/Output#Reading it should be possible to read the current values by requesting http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=adc0

But the file "io_value" does not exist. I always get an 404 error. I already checked the systemfolder /cgi-bin and indeed, there are only io_type and io_state, but no io_value

What can I do?

1 Answer

0 votes
by

Hello,

Thank you for your feedback.

This issue will be resolved in next upcoming RUT955 firmware release (version 7.2), which we hope will be released in upcoming weeks.

by
We see the same problem. No idea on a workaround? Could io value be read from CLI?
by

Please refer to this page for CLI commands, Status from command line section.

Best regards,

Žygimantas

by

Yes, input values could be read from SSH/CLI. To connect to device's SSH/CLI use the following credentials:

  • SSH/CLI login: root
  • SSH/CLI password: <your device's password>

The following commands can be used to read input's value:

  • ubus call ioman.gpio.din1 status
  • ubus call ioman.gpio.din2 status
  • ubus call ioman.gpio.iio status
  • ubus call ioman.adc.adc0 status

Similarly, device's outputs can be controlled in the same way:

  • ubus call ioman.relay.relay0 status
  • ubus call ioman.relay.relay0 update '{"state":"open"}'
  • ubus call ioman.relay.relay0 update '{"state":"closed"}'

  • ubus call ioman.gpio.dout1 status
  • ubus call ioman.gpio.dout1 update '{"value":"0"}'
  • ubus call ioman.gpio.dout1  update '{"value":"1"}'

  • ubus call ioman.gpio.dout2 status
  • ubus call ioman.gpio.dout2 update '{"value":"0"}'
  • ubus call ioman.gpio.dout2 update '{"value":"1"}'