Forum Tiny Control Solution
Relay direct control via HTTP - Wersja do druku

+- Forum Tiny Control Solution (https://forum.tinycontrol.pl)
+-- Dział: LanKontroler - sprzęt i wersje wsadów, problemy, zastosowanie (https://forum.tinycontrol.pl/forumdisplay.php?fid=3)
+--- Dział: LanKontroler - wersje oprogramowania (https://forum.tinycontrol.pl/forumdisplay.php?fid=4)
+--- Wątek: Relay direct control via HTTP (/showthread.php?tid=118)

Strony: 1 2 3


Relay direct control via HTTP - sms.agent - 11-29-2012

Hello, great project! I have one question - may be answerred before, but Polish is difficult for me to read whole forum Wink
So.. I need to control relays directly and easilly like this: (I cant use SNMP, etc...)

http://USER:PASS@LAN_CONTROLLER_IP/control.cgi?r0=0 - relay 0 set OFF
http://USER:PASS@LAN_CONTROLLER_IP/control.cgi?r0=1 - relay 0 set ON
OR
http://USER:PASS@LAN_CONTROLLER_IP/control.cgi?relay=01100 - relay 0 set OFF, relay 1 set ON, relay 2 set ON, relay 3 set OFF etc....

Anythink, but directly so I do not need to know actual state, because this command only switches state:
http://USER:PASS@LAN_CONTROLLER_IP/outs.cgi?out=0
--------------------------------------------------------------------

I am already using Denkovi controller:
http://www.denkovi.com/product/8/snmp-ethernet-controller-with-24-digital-analog-i-o.html

...but I want to build my future applications with yours amazing controller.
In "Denkovi controller" I control relays this beatyful way:
http://USER:PASS@IP_ADDRESS/iochange.cgi?ref=re-done&01=00&02=40 - the last number may be 00,20,40,80...it represents HEX data on port...

Thank you for ALL REPLIES!!
Bye!


Re: Relay direct control via HTTP - wilkxt - 11-30-2012

use this comand


http://USER:PASS@LAN_CONTROLLER_IP/outs.cgi?out0=0 out0 (reley on board) ON
http://USER:PASS@LAN_CONTROLLER_IP/outs.cgi?out0=1 out0 OFF

http://USER:PASS@LAN_CONTROLLER_IP/outs.cgi?out1=0 out1 ON
http://USER:PASS@LAN_CONTROLLER_IP/outs.cgi?out1=1 out1 OFF

etc for all outs


Re: Relay direct control via HTTP - sms.agent - 12-01-2012

Great!
Thank you, that is what I need. I tried it, but I think that I have found a BUG in firmware.
When I make ANY command on ANY relay, controller switches state of OUT0 (relay on board) every time..
I have FW ver. 2.20

Thanks in advance for reply
Smart


Re: Relay direct control via HTTP - wilkxt - 12-03-2012

upgarde soft to 2.35 version http://tinycontrol.ats.pl/forum/viewtopic.php?f=2&t=2567


Re: Relay direct control via HTTP - sms.agent - 12-04-2012

I tried already with LAN_Controler_Tools_v1.2, but it gives me an error that it looses the connection,
the board only reboots without configuration lose.
Do I need to make controller HW reset before upgrade?
What about stability of that FW2.35? This FW2.20 ran over 100 days without problem ;-)

Thanks a lot! ...and may be my last question to this topic Big Grin
Smart


Re: Relay direct control via HTTP - wilkxt - 12-06-2012

sms.agent napisał(a):I tried already with LAN_Controler_Tools_v1.2, but it gives me an error that it looses the connection,
the board only reboots without configuration lose.
Do I need to make controller HW reset before upgrade?
No, Do HW reset after upgrade.
if LAN_Controler_Tools_v1.2 not upgrade Lk use windows comand line and tftp program:tftp -i IP put "upgrade_file.bin"

sms.agent napisał(a):What about stability of that FW2.35? This FW2.20 ran over 100 days without problem ;-)
Stability is Ok, upgrade and test


Re: Relay direct control via HTTP - wilkxt - 12-11-2012

if you want read all data by http you may use

http://USER:PASS@LAN_CONTROLLER_IP/st0.xml


Re: Relay direct control via HTTP - sms.agent - 12-12-2012

Perfect!
And...what is that OUT5 ? Lan Controller can have 6 outputs?

Thanks
Smart


Re: Relay direct control via HTTP - wilkxt - 12-12-2012

sms.agent napisał(a):Perfect!
And...what is that OUT5 ? Lan Controller can have 6 outputs?
No, out5 represents "reverse out state"


Re: Relay direct control via HTTP - sms.agent - 03-14-2013

Hello Tomek,
I am getting in troubles with the last FW 2.39 on LK from you.
Please see my attachement - LK responds very strange to my direct control commands.

Thank you - I think there is still some bug in FW.

Ondrej