Smart Home Automation Forum

Full Version: Kcs question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. With kcs, it is possible that two boards e16p to talk with each other? I mean, I want with an digital pin from board 1 to control an output from board 2. It is possible? Thx
yes, it support, just create customsize protocol for IFTTT "THEN" command.
Thank you for your answer. But i didnt manage it to make it work. This is what i did
I have two bords, e16p.
Board1 on 192.168.1.10
Board2 on 192.168.1.20
I want Board1 to control Board2

On the Board1 on Protocol-General i activate TCP Client, Ip 192.168.1.20 Port 4196. Then on Protocol-Custom in Router - Tcp client, Message - RELAY-SET-255,1,1, URL blank
Doesn't activate relay 1 of board2 if i run it on IFTTT

I need to do something on Board2? Thx
board2 need enable "TCP Server" protocol.
Thank you! Now it works!
I have another question. It is possible to toggle between on and off through custom protocol? What is the code for it? When i hold on a button, to toggle between ALL relay ON and ALL relays OFF.
these two commands use for TOGGLE:

13. Toggle state of digital output
Send:RELAY-KEY-255,id,1
Feedback:RELAY-KEY-255,id,1,OK
"id" means: 1-MAX channel number.
change the status of one digital output, such as your output is ON, when send this command , it will be OFF. if your
output is OFF, when send this command , it will be ON.

---------------------------
8. Set ON/OFF/TOGGLE for any multi channel of digital output
RELAY-SET_MULTI-255,
D23,D22,D21,D20,D19,D18,D17,D16,D15,D14,D13,D12,D11,D10,D9,D8,D7,D6,D5,D4,D3,D2,D1,D0
if use KC868-A64 , it have 64 digital output, every byte have 8 bit, every bit mean every digital output state, so KC868-
A64 have 8 bytes. We will use ON/OFF/TOGGLE for these, so total need 8*3=24 bytes.
(D23,D22,D21,D20,D19,D18,D17,D16) use for ON command
(D15,D14,D13,D12,D11,D10,D9,D8) use for OFF command
(D7,D6,D5,D4,D3,D2,D1,D0) use for TOGGLE command
D23,D22,D21,D20,D19,D18,D17,D16,D15,D14,D13,D12,D11,D10,D9,D8,D7,D6,D5,D4,D3,D2,D1,D0
are “decimal” number, every data convert to binary, bit ”1” is effective , bit “0” is ineffective.
For example:
send:RELAY-SET_MULTI-255,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,32
feedback:RELAY-SET_MULTI-255,OK
D16=(128)dec=(10000000)b means: turn ON output-8
D8=(64)dec=(01000000)b means: turn OFF output-7
D0=(32)dec=(00100000)b means: TOGGLE output-6
So send this command, will turn ON output-8,turn OFF output-7, TOGGLE output-6 simultaneously.