Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Relay direct control via HTTP
#1
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-et...g-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!
<t></t>
Odpowiedz
#2
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
pozdrawiam
tomek
Odpowiedz
#3
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
<t></t>
Odpowiedz
#4
upgarde soft to 2.35 version http://tinycontrol.ats.pl/forum/viewtopi...f=2&t=2567
pozdrawiam
tomek
Odpowiedz
#5
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
<t></t>
Odpowiedz
#6
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
pozdrawiam
tomek
Odpowiedz
#7
if you want read all data by http you may use

http://USER:PASS@LAN_CONTROLLER_IP/st0.xml
pozdrawiam
tomek
Odpowiedz
#8
Perfect!
And...what is that OUT5 ? Lan Controller can have 6 outputs?

Thanks
Smart
<t></t>
Odpowiedz
#9
sms.agent napisał(a):Perfect!
And...what is that OUT5 ? Lan Controller can have 6 outputs?
No, out5 represents "reverse out state"
pozdrawiam
tomek
Odpowiedz
#10
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


Załączone pliki
.pdf   relays.pdf (Rozmiar: 73.58 KB / Pobrań: 678)
<t></t>
Odpowiedz


Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości