SergiuToporjinschi / rf-command

Sends binary codes via radio waves
GNU General Public License v3.0
7 stars 3 forks source link

help needed for implementing #2

Open Giaitzoglou opened 5 years ago

Giaitzoglou commented 5 years ago

hi beacause i new to programming is it possible to help a litllte bit how to set up the node to control an klikannuit "ac "switch make an example so i can replicate to the next switch say i want to send this AC/A1324/1 (this is how i sent it through rfxcom node )? thanks in advance chris

SergiuToporjinschi commented 5 years ago

Hi, Sorry for the late response; I'm not quite used with github here is an example of my not configured [{"id":"964c7fd2.0f58a","type":"rf-command","z":"ccef8b12.d9c338","gpioType":"BCM","gpio":"14","repeater":"5","repeaterPause":8064,"initSeq":true,"cmdLength":40,"initTimeHigh":"4117","initTimeLow":"2027","bitLongTime":"676","bitShortTime":"338","x":428,"y":96,"wires":[[]]}]

SergiuToporjinschi commented 5 years ago

The thing is that you need to have a string, as input, with the binary code that you want to send. something like return {payload: "10000101 00110001 01010010 10000001"};

SergiuToporjinschi commented 5 years ago

to send this AC/A1324/1 you have to translate it in binary and you need to know the initialisation sequence. And also the parameters of how the 1s and 0s are represented. for example a position from binary it has to have a specific time length and it has to have a specific time length as low and high to be considered as 1 or as 0;