LinuxMCE Forums

General => Developers => Topic started by: ddamron on December 29, 2007, 02:37:16 am

Title: Throw me a BONE!!!
Post by: ddamron on December 29, 2007, 02:37:16 am
I'm SOOOOOO close...
1.  Can't get this damn PnP working right..
2.  need to send STATE info to devices (lights)
Suggestions?? Stab in the dark??
Title: Re: Throw me a BONE!!!
Post by: PeteK on December 29, 2007, 02:52:26 am
What portion exactly are you trying to implement?
Title: Re: Throw me a BONE!!!
Post by: ddamron on December 29, 2007, 02:57:57 am
Part 1.
Trying to get the PnP wizard to run properly...

I can get it to run on the core, but it doesn't 'blink' the light either, and it doesn't save some information it's supposed to...
namely, the [12] info...

Title: Re: Throw me a BONE!!!
Post by: totallymaxed on December 29, 2007, 03:16:25 pm
Part 1.
Trying to get the PnP wizard to run properly...

I can get it to run on the core, but it doesn't 'blink' the light either, and it doesn't save some information it's supposed to...
namely, the [12] info...



Dan... I don't think the current Lighting Wizard will just 'work' with your driver. My understanding is that there are currently some specific dependencies related to the current z-wave implimentation.
Title: Re: Throw me a BONE!!!
Post by: tschak909 on December 29, 2007, 06:15:50 pm
okay, I guess that means I need to start digging through the wizard to figure out how to generalise it, to help out.

-Thom
Title: Re: Throw me a BONE!!!
Post by: ddamron on December 29, 2007, 09:39:41 pm
Ok, I MIGHT have enough info for the lighting wizard...

The real problem is reporting back the state info..

Title: Re: Throw me a BONE!!!
Post by: ddamron on December 30, 2007, 07:47:26 am
State information has been figured out! YAY
It took me a couple hours of trial and error to find a work around...
The Orbiters don't do anything special, they just send a command to the device.
When DCE routes the command, it internally sets the State information inside the device.
So, I said to myself, Self, What are they doing that you're not... Sending a command to self!

gotta love axioms...  when one object A is the same as object B, then Object B can be considered the same as object A...
(remember that in Math class??? except it was when Line A is the same as Line B...) lol

So, the solution was to say: Self, Cmd184, setlevel=x.  ;D

<never had to send myself a useless command before... guess there's a use for everything...>

Dan
Title: Re: Throw me a BONE!!!
Post by: Matthew on January 03, 2008, 03:34:04 pm
State information has been figured out! YAY
It took me a couple hours of trial and error to find a work around...
The Orbiters don't do anything special, they just send a command to the device.
When DCE routes the command, it internally sets the State information inside the device.
So, I said to myself, Self, What are they doing that you're not... Sending a command to self!

(...)

<never had to send myself a useless command before... guess there's a use for everything...>

That is actually the precisely correct OOP approach. "Self.setParam(val)" is called "sending a message to the object itself". LMCE distributes the objects around the network more or less transparently, but it's still objects sending messages around, even more clearly so than when a C++ program is running on a local stack and VM.