Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Previous page Next page Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Page 1 of 3
Topic:
Rako for TSU9600
This thread has 33 replies. Displaying posts 1 through 15.
Post 1 made on Friday May 2, 2008 at 02:12
alexpant
Long Time Member
Joined:
Posts:
January 2008
31
Hello. This is my first Pronto project, and I need help in dimming up and down the lights manually.

HO:64\rRO:5\rCH:1\rCO:1\r is the "dim up" command which should be executed while the button is pressed. As soon as the button is released then HO:64\rRO:5\rCH:1\rCO:15\r which is the "stop" command, should be executer.

How do I code this simple procedure?

Thank you for your help.
Post 2 made on Friday May 2, 2008 at 02:23
dave964
Long Time Member
Joined:
Posts:
January 2008
172
Can you give some idea of your level of knowledge. Do you know how to send / receive via RS232 with prontoscript? Do you know how to execute the actions of a different button from prontoscript?

By the way - you only need to send the House command once. You do not need to send it for every command.
Dave
Post 3 made on Friday May 2, 2008 at 03:32
charris
Advanced Member
Joined:
Posts:
March 2006
840
Dave,

thank you for your quick answer. I work with Alex and I would also like to know how to do this.

We have zero experience with prontoscript. The problem is that we really have to utilise it in this project as there is no other way to dim/fade the lights with Rako and RS232. As Alex said a fade or dim command has to be sent when the button is pressed and a stop command when the button is released.

The problem is that the client is waiting for his remote and we have to move fast on this.

Thank u for the house code tip.
OP | Post 4 made on Friday May 2, 2008 at 04:34
alexpant
Long Time Member
Joined:
Posts:
January 2008
31
Hi Dave. Thanks for the quick reply. This is what i am thinking of basically. Could this be what i'm after?


var e = CF.extender [0];

if (e == null)

{

Diagnostics.log ("Extender 0 is not defined");

}

else

{

var s = e.serial [0];
s.bitrate = 9600;
s.databits = 8;
s.parity = 0;
s.stopbits = 1;

s.send ("HO:64\rRO:5\rCH:1\rCO:1\r")
}


onRelease = function()

{
var s = e.serial [0];
s.bitrate = 9600;
s.databits = 8;
s.parity = 0;
s.stopbits = 1;

s.send ("HO:64\rRO:5\rCH:1\rCO:15\r")
}

Last edited by alexpant on May 2, 2008 05:51.
Post 5 made on Friday May 2, 2008 at 04:36
dave964
Long Time Member
Joined:
Posts:
January 2008
172
OK - I can offer you a complete Rako module, that was recently written by myself and SimonO for Rako. It's currently been released to a handful of dealers in the UK for testing, and will be officially released in the coming weeks. And it will be demonstrated / launched at the UK CEDIA show in June.

If you PM me your email address, I will email the complete module to you. It contains light and curtain controls (curtain controls will only appear if you configure curtains on the parameter page). It will allow configuration for multiple rooms (up to 16), and if you hold down the Scene 1 or Off buttons for more than 2 seconds, they will switch all lights in the house on / off.
Dave
Post 6 made on Friday May 2, 2008 at 04:38
dave964
Long Time Member
Joined:
Posts:
January 2008
172
Your example is not a bad starting point - but you should not need to configure the serial port each time. Do that at an activity level and simply send the command in the buttons.

But see my comment above.

Edit - just noticed you've missed the "r" from some of the commands in the script you posted - even though you have the "\".

Last edited by dave964 on May 2, 2008 05:13.
Dave
OP | Post 7 made on Friday May 2, 2008 at 05:52
alexpant
Long Time Member
Joined:
Posts:
January 2008
31
Thanks again Dave!
Post 8 made on Monday May 5, 2008 at 03:19
Deaky
Long Time Member
Joined:
Posts:
August 2007
53
Hi Alex

Here is how I have my Rako set up



Individual channels can be selected by pushing the apropriate button. Pushing it again will deselect the channel and go back to scene control. When any button is selected the white border around it turns orange. The colour change icon is only visible when the channel selected can be colour changed.

I've set up a seperate device called 'RAKO' with all the RS232 codes on for all my rako rooms. I find it easier this way then defining them on my 'control' pages.

I have these functions defined at page level

//Define function to either fade whole room up or individual channels
function FadeUp()
{
if (C==0)
{
CF.widget("FADEALLUP" , "CONSERVATORY", "RAKO").executeActions();
}
else
{
CF.widget("FADECH"+C+"UP" , "CONSERVATORY", "RAKO").executeActions();
}
}



//Define function to either fade whole room down or individual channels
function FadeDown()
{
if (C==0)
{
CF.widget("FADEALLDOWN" , "CONSERVATORY", "RAKO").executeActions();
}
else
{
CF.widget("FADECH"+C+"DOWN" , "CONSERVATORY", "RAKO").executeActions();
}
}



//Define a function to stop the whole room or individual channels fading
function StopFade()
{
CF.widget("STOP" , "CONSERVATORY", "RAKO").executeActions();
}


'C' is a variable that is set when any of the channels are selected.

Then on the fade up and down buttons I have these

FadeUp();

onRelease = function()
{
StopFade()
}

and

FadeDown();

onRelease = function()
{
StopFade()
}

Last edited by Deaky on May 6, 2008 01:52.
Post 9 made on Monday May 5, 2008 at 04:45
SimonO
Long Time Member
Joined:
Posts:
January 2003
226
Hello Deaky, would you be prepared to test the official module we have developed for Rako - the more feedback we get the better!?

PM me your email if you're able to help.

Last edited by SimonO on May 5, 2008 08:13.
Post 10 made on Monday May 5, 2008 at 08:10
Deaky
Long Time Member
Joined:
Posts:
August 2007
53
On May 5, 2008 at 04:45, SimonO said...
Hello Deaky, would you be pepared to test the official
module we have developed for Rako - the more feedback
we get the better!?

PM me your email if you're able to help.

Hi SimonO

YGPM :)
OP | Post 11 made on Monday May 5, 2008 at 12:07
alexpant
Long Time Member
Joined:
Posts:
January 2008
31
Deaky thank you very much for the help. Hopefully i'll give it a go in the next few days, along with the sleak-looking module of Dave and Simon.

I appreciate everyone's help. Thank you again.
Post 12 made on Monday May 5, 2008 at 16:01
SimonO
Long Time Member
Joined:
Posts:
January 2003
226
Looking forward to some quality feedback :-)! The module we've developed for Rako makes use of the buttons available in one of the default Philips .xcf's to aid integration, however I do like Deaky's clean looking graphics. It's actually surprising just how much time it takes to move a module on from being perfectly acceptable for internal/private use, to being ready for a wider third-party audience...
Post 13 made on Monday May 5, 2008 at 22:31
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,910
Deaky,

Would you mind sharing the font name you used? It's nice and clean and I'd like to see if I already have it in my arsenal.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 14 made on Tuesday May 6, 2008 at 01:53
Deaky
Long Time Member
Joined:
Posts:
August 2007
53
Hi Lyndel

The font I used is Tahoma with a drop shadow on the buttons. Here's a pic of my activity page

OP | Post 15 made on Thursday May 8, 2008 at 03:26
alexpant
Long Time Member
Joined:
Posts:
January 2008
31
Hello again everyone. I've managed to make my rako module work thanks to a lot of help from Deaky and Dave964, so thank you again. I have a small problem left though. Having created a test page which has the following actions:

On / Off / Raise / Lower

I have used Deaky's way by calling the function on the button, which then executes the button actions, as so:

//Page codes for widgets

function on()
{
CF.widget("BUTTON2" , "ROOM" , "TEST").executeActions();
};

function stop()
{
CF.widget("STOP" , "ROOM" , "TEST").executeActions();
};

function raise()
{
CF.widget("RAISE" , "ROOM" , "TEST").executeActions();
};

function lower()
{
CF.widget("LOWER" , "ROOM" , "TEST").executeActions();
};

//Button codes for calling functions
raise();

onRelease = function()
{
stop();
};


lower();

onRelease = function()
{
stop();
};


Unfortunately in order to have the "stop" function available and working, I need to have a "stop" button on the same page so that it can correctly link to the code. Is there a way to hide the button or any other option that might remove it off my non-hidden GUI?
Page 1 of 3


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse