Your Universal Remote Control Center
RemoteCentral.com
RS-232 & IP Control Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Denon 4311ci 2way RS232 Help
This thread has 5 replies. Displaying all posts.
Post 1 made on Saturday March 10, 2012 at 22:18
kate-br
Lurking Member
Joined:
Posts:
March 2012
7
Dear Friends from RC,

First of all I would like to say thank you for all the information you guys have posted, I have learned so much with this forum. I've been reading it for months and now I can pretty much do all the basic stuff.

Recently I've been trying to deal the prontoscript and actually i got most of things to work when I followed the developer's guide 1.4.3

However I am stuck into something very simple (for all of you)...

My goal is to create a very simple widget that reads the current volume and change its label...

On the page 42 of the guide, I associated the following code to a button:
var e,s;
e = CF.extender[0];
if (!e) {
Diagnostics.log("Extender 0 is not defined");
} else {
s = e.serial[0];
if (!s) {
Diagnostics.log("Extender 0 is not a serial extender");
} else {
s.bitrate = 9600;
s.databits = 8;
s.parity = 0; // None
s.stopbits = 1;
label = s.match("MV?\r","\r",250);
}
}

And it works!

But how do I do for a widget using non asynchronous operation?

where do I put this line:

s.onData = function(v) { label = v; };

How does it work? Which part goes to the "home" and which goes to button or widget advanced panel?

Please please... just give me a step by step guide to create something THIS simple and I promise you I wont bug you guys anymore!

Thank you!!
Post 2 made on Sunday March 11, 2012 at 23:53
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,996
you put your line anywhere between the last line of setup of the port and before you do your first match operation. as you are doing async 232, you must also handle the onTimeout of the serial port as it is possible that there could be partial message (CR not yet received when the match times out) that you must handle as well. I know you are using serial port but some of the asynchronous example you can find here on sockets should also help to shed some light as to correct placement of the statement. Also note that when you assign an onData function, a call to serial.receive or serial.match no longer returns data and you must examine the single parameter passed during the call to your onData or onTimeout callback functions.

Also go to http://www.the-gordons.net and have a look at some of thr documents that Barry has posted explaining Serial and TCP data communications.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 3 made on Sunday March 11, 2012 at 23:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,996
P.S. This thread is best served in the Pronto Pro Forum. Not going to move it unless you would like me to.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 4 made on Monday March 12, 2012 at 12:12
kate-br
Lurking Member
Joined:
Posts:
March 2012
7
Please! :)

Move, im sorry I posted it in the wrong place!

THank you!
OP | Post 5 made on Monday March 12, 2012 at 21:46
kate-br
Lurking Member
Joined:
Posts:
March 2012
7
Hello Lyndel,

Well I have checked Gordon's page but I have not found any documentation regarding RS-232 except the ones for command fusion.

I so wish I could find a very simple XCF file that would show the denon's receiver volume in "real-time" in a widget.

But I cant find any...

I guess the documentation from Philips is intended for programmers not beginners like me.

If you have time, please help me!


Thank you!
Post 6 made on Tuesday March 13, 2012 at 17:58
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,996
Email me at the addy on my profile and i will send you the prontoscript file from philips site for denon. to fully use this file, you should also have a copy of the protocol spec for your denon receiver. Should be available from denon. You should also consider purchasing the flanagan book referenced in the dev guide. The first 200 pages are applicable for a solid understanding of javascript.
Lyndel McGee
Philips Pronto Addict/Beta Tester


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