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:
Lyngdorf MP-60 feedback
This thread has 12 replies. Displaying all posts.
Post 1 made on Monday October 11, 2021 at 11:58
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
I've just upgraded from a Denon to a Lyngdorf MP-60. I had feedback of volume and surround mode working perefectly with the Denon but I need some help writing a script for the Lyngdorf. The IP control protocol is available on their website and all I want is feedback of volume and surrounf mode. Where do I start? Thanks!

By the way I would pay someone if they could write this script for me!
Post 2 made on Monday October 11, 2021 at 12:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
How much and who maintains ownership of the script? You are looking at a mimimum of 8 or so hours work.

If you want someone to give you a quote, can you please provide the link to the protocol document here.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 3 made on Monday October 11, 2021 at 13:46
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
Hi Lyndel, I don't mind who owns the script. The link to the document is here [Link: lyngdorf.steinwaylyngdorf.com]
Post 4 made on Monday October 11, 2021 at 18:58
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Thanks for providing the link. I reviewed the protocol specification. It is fairly easy to do but as I suspected to make a 'product' out of it, there is more than 8 hours and since I don't have access to the equipment for local testing, I have to pass.

Hoping others might be interested as could be a really interesting project.

Also, did you try searching github or google to see if anyone's already done something?
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 5 made on Tuesday October 12, 2021 at 04:21
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
Are there any pointers to any similar code that I could look at so I could have a go?
Post 6 made on Tuesday October 12, 2021 at 08:28
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
The communication protocol uses message frame ending with a Carriage Return (CR) (ASCII 013) (\r).

This is very similar to the denon protocol. Not sure if there is any ready-to-paste example here in this forum.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 7 made on Tuesday October 12, 2021 at 08:54
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
So hacking around with Denon code I've got the Lyngdorf displaying the volume on the Pronto Pro, my only issue is the string that the Lyngdorf outputs is (e.g if my volume is -20.5) "!VOL(-205)". How can I clean that up so it just displays -20.5?
Post 8 made on Tuesday October 12, 2021 at 10:06
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
You can use a RegExp to match the string or use String subString to extract the "-205".

The end result is you need to convert this value to an integer and divide this value by 10 and display using toFixed(1).

var textThatHasBeenExtracted = "-205";
var int = parseInt(text,10).toFixed(1);

This is where you need to find a good RegExp and JavaScript reference such as W3Schools.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 9 made on Tuesday October 12, 2021 at 10:55
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
I've had a look but I wouldn't even know where to start putting this in to the code.
Post 10 made on Tuesday October 12, 2021 at 18:44
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Hopefully this will help get you started.

Go here:
https://regex101.com/

Plug in this in for the Regular expression which follows the PDF for receiving ! or # depending on whether the message is a response or an event. Not going to belabor the point here as hovering over the regex on the site above does a great job of explaining what each thing does.

^([!#])(\w+)\((\w+)\)$

Then, put this in for the text

!MVOL(250)

You will get multiple matches which are presented in java/ProntoScript script as an array.

So, to write this in a button in your config, you'd add the following script.
var PATTERN = /^([!#])(\w+)\((\w+)\)$/;
var messageFromEquipment = "!MVOL(250)\r";
var withoutCR= messageFromEquipment.replace("\r","");
var matches = PATTERN.match(withoutCR);
// To debug this in PEP2 going to the ProntoScript console, add.
System.setDebugMask(9);
System.print(matches[0]);
System.print(matches[1]);
System.print(matches[2]);
System.print(matches[3]);
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 11 made on Wednesday October 13, 2021 at 09:59
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
Thanks Lyndel, I put some time in yesterday working out exactly what the Denon code was doing. I’ve managed to pull in all the data I need from the Lyngdorf into the Pronto. I managed to format the volume using the range finction in the substring command and splitting it in to 2 labels so as I didn’t have to do any maths on it.
Post 12 made on Friday October 15, 2021 at 17:52
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Not the most efficient but it works. :-)
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 13 made on Saturday October 16, 2021 at 06:55
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
You know I’m still so impressed with the 9400. Theres no other remote on the market that I know of with the form factor and hard buttons, 2 way comms, the power of the extender and the infinite customisation that I know of.


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