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
1,116 views 1 comments
by
Hi,
We have a problem with "cgi output". The response is waiting for the "time"-parameter. We need the response immediately then we send the command because the time is 10 minutes and our server timeout waiting for response.

A very god solution will be that the router send the response immediately and a new request after the time in the parameter if it is more than 30 seconds.

Can you help us?
/Goran Tickoff AB

2 Answers

0 votes
by anonymous
Hello,

Could you provide more details about your use case and specify the router that is used ?
by
Hello,

The router is: RUT230

Then we send: "/cgi-bin/output?username=output&password=[pw]&action=on&pin=oc" we immediately get a response: "OK".

Problem is then we send: "/cgi-bin/output?username=output&password=St@rt0115&action=on&pin=oc&time=600". Because of the time parameter we have to wait 10 minutes for the response "OK". We need a immediately response telling us that the relay is "on" right now.
0 votes
by anonymous

Hello,

There is no quick and easy way to change response time, because it is designed this way. You are going to get "OK" acknowledgment only when action is successfully completed, not when action starts. However, there are several ways how to immediately verify the alteration in digital collector output state. One of them is to login to the router's WebUI and navigate to the Status -> Events Log -> System Events -> Configuration page. Second one is to login to the router via ssh and execute gpio.sh get DOUT1 command. Third one is to use SMS Utilities tools to consult output status via SMS, more info on that here.