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

Login:
Pass:
 
 

Topic:
Pronto Script Serial Send Command Problem
This thread has no replies.
Post 1 made on Monday August 13, 2007 at 04:58
paffman
Lurking Member
Joined:
Posts:
August 2007
1
Hi,

i´m trying to send a hex code via extender[0].serial[0].send() command.

This looks like this:

var e=CF.extender[0];
var s=e.serial[0];
s.bitrate = 9600;
s.databits = 8;
s.parity = 0;
s.stopbits = 2;
s.send("0x1B,0x01,0x40,0x00,0x00 \r");

...but it didn´t work....

I also tried: s.send("1B 01 40 00 00 \r");
and: s.send("27 1 64 00 \r");

Any ideas?

I´m trying to control a remote Relay Interface Card, which works fine by using normal actions in ProntoEdit (but i´m trying to simplify the GUI which is only possible by using prontoscript :-)


PROBLEM SOLVED:
simply add \x to each hex byte in the string

Last edited by paffman on August 13, 2007 06:57.

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