xkonni/raspberry-remote

Encoding Plugs as with System in binary and unit in decimal

pascalwhoop opened this issue · 2 comments

Hey dude! First of all great work! I'm gonna pick this up to either wrap it or port it to the java world.

But one thing i noticed:

If i want to send a signal to lets say a plug with the pins switched like this:

11111 10101

How do i do it? AFAIK you did it so you can have any binary system code like

01011 or 00001 or 11111

but for unit codes it is always all 0 except 1 pin set to 1.
Then in the console i have to type

./send 11111 3 1

if the pins are set like this: 11111 00100

So this limits me to 5 plugs per system config. Why not have it like this:

./send 11111 00100 1

would allow me to utulize way more plugs and i could e.g. iterate through all possible combinations of dips to turn all of them off/on together

Hey,

before you start doing things for 'the java world' there are already apps
doing this. one of them is powerswitch (powerswitch.eu) for android.
there's also a webinterface for this and i have written a small daemon for
the raspberry to listen to it.

as you can see in the readme, neither send.cpp nor the underlying rcswitch
library were written by myself, but all the communication is based on
rcswitch.

now in your setup you have a channel, argument 1 of ./send. and a device
id, argument 2. while the channel is binary coded and anything can be
configured, the device id is not, here you have just 5 possible devices per
channel.

i use several channels with some devices attached to each.

On Thu, Sep 26, 2013 at 1:25 PM, Ineffective notifications@github.comwrote:

Hey dude! First of all great work! I'm gonna pick this up to either wrap
it or port it to the java world.

But one thing i noticed:

If i want to send a signal to lets say a plug with the pins switched like
this:

11111 10101

How do i do it? AFAIK you did it so you can have any binary system code
like

01011 or 00001 or 11111

but for unit codes it is always all 0 except 1 pin set to 1.
Then in the console i have to type

./send 11111 3 1

if the pins are set like this: 11111 00100

So this limits me to 5 plugs per system config. Why not have it like this:

./send 11111 00100 1

would allow me to utulize way more plugs and i could e.g. iterate through
all possible combinations of dips to turn all of them off/on together


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

Is there any new feature to set up the devices like https://github.com/Ineffective asked for?