xkonni/raspberry-remote

Pairing sockets without "Standard-DIP-Switches"

dbrenk opened this issue · 0 comments

Hi there,
I got a Problem getting the scripts to work, maybe someone can point me to a solution:
I used the "RCSwitch" library with an Arduino in the past, now i wanted to connect the sockets with my RPi. In my old Arduino script I called the function as follows: switchOn(4, 2) which worked. Now I am calling: sudo ./send 4 2 1 which seems not to work. It seems the send.cpp script only sends a Signal if one calls it with something like: sudo ./send 00001 2 1

Now I don´t know how to get to the binary representation of the systemcode which in my case is 4 indicated by a Rotary Switch on the socket.
Actually there are 2 Rotary Switches on the socket, first indicating "IV" == 4, second indicating "2"

Does anyone know what the correct Parameter for "send" would be in this case?

I would be very happy if someone could give me a hint.
Thanks,
dbrenk