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
143 views 4 comments
by anonymous
How to get the state of the open collector Pin in Rut 955 using http request.

Thank you !

1 Answer

0 votes
by anonymous

Hello,

  

A few Post/Get examples can be found on our Wiki page here.

The available pins are:

  • acl0 - analog input (in current mode) (pin 6,9);
  • adc0 - analog input (in voltage mode) (pin 6,9);
  • din1 - digital input (pin 3 on the power connector);
  • din2 - digital input (pin 1);
  • dout1 - digital output (pin 4 on the power connector);
  • dout2 - OC output (pin 4);
  • iio - isolated input (pin 2,7);
  • relay0 - relay output (pin 5,10);

Hope this helps!

  

Best regards,
DaumantasG 

by anonymous
Hey

I was trying to check if the pin was high or low.

The command i tried

http://192.168.2.254/cgi-bin/io_state?username=user1&password=user1&pin=dout2&state=on

tbut it replies back with " was not found on server" . i can reach the teltonika via that local ip.The username and password is right
by anonymous

It should be noted that the syntax for reading the status, and changing the status is different:

Reading the value:

curl -X GET "http://192.168.1.1/cgi-bin/io_value?username=user1&password=user1&pin=din2"

Setting the state:

curl -X GET "http://192.168.1.1/cgi-bin/io_state?username=user1&password=user1&pin=dout1&state=on"

  

Best regards,
DaumantasG

by anonymous

No idea whats wrong. This is what the web replies :(

The requested URL /cgi-bin/io_value?username=user1&password=user1&pin=din2 was not found on this server.

by anonymous

Hello,

  

Please replicate the issue, navigate to System → Administration → Troubleshoot, and generate a troubleshoot file. This file can be attached to the original question and will only be visible to Teltonika moderators.

Make sure the instance is enabled, and the login credentials are correct.

Of course, please use the latest available firmware which can be downloaded here.

  

Best regards,
DaumantasG