View Full Version : NEC 42MP3 Plasma serial and DM Provider File
rpalmer68
January 16th, 2007, 02:17 AM
As I work my though getting Device Manager support for my system sorted I thought I should share my files with others as it may help other people trying to get things working.
These files are certainly not finished, and I'm sure parts of the device manager (device definitions etc) will change before final release, but at least they work at the moment!
I am providing two files, the serial plugin (NEC 42MP3 Serial.lua) and the Provider file (NEC42MP3.lua).
These particular files are for the serial control of a NEC Plasma screen.
A BIG thanks to RobH for all his help as I would never have got to this point without it!
Richard
Promixis
January 16th, 2007, 07:40 AM
Cool. Looks good here.
So you are controlling Power, Source, Aspect from NR without problem?
rpalmer68
January 16th, 2007, 01:26 PM
Most of my control for the screen is via Girder5 as it's all macro driven, but the Meridian gear is all being controlled via NR without too many problems.
My main problem being the IP/Hostname issue that's been logged as this stops a PPC using the DM.
Richard
Promixis
January 16th, 2007, 01:44 PM
Most of my control for the screen is via Girder5 as it's all macro driven, but the Meridian gear is all being controlled via NR without too many problems.
My main problem being the IP/Hostname issue that's been logged as this stops a PPC using the DM.
Richard
we are looking into this one...
rpalmer68
December 29th, 2008, 07:08 PM
Hi Rob,
I need some help please...I need to add volume controls to my NEC lua files (see first post).
The manual has the following code for the volume gain;
DF 80 60 7F 03 05 01 [gain] [Checksum]
Where [gain] is in the range 00 - 2A, with 0A being the default value
[Checksum] is the calculated checksum as per this post http://www.promixis.com/forums/showthread.php?p=115312
Now the remote I am using just has Vol+ and Vol- buttons so I can't use a slider like I have previously with my meridian gear.
So can you please show me what I need to do in my lua files to implement the volume control, and what DM action/code I have to send when the Vol+ or Vol- button is pressed on the remote to send the new volume gain value to the screen?
Many thanks
Richard
Rob H
December 30th, 2008, 06:23 AM
I'm a bit pressed for time at the moment, can we come back to this in the New Year? I'm not entirely clear why you can't use a normal slider here though - if you set the value of a volume control to '+' or '-' it should adjust the current volume accordingly.
rpalmer68
December 30th, 2008, 09:14 AM
I'm a bit pressed for time at the moment, can we come back to this in the New Year? I'm not entirely clear why you can't use a normal slider here though - if you set the value of a volume control to '+' or '-' it should adjust the current volume accordingly.
Sure, I can wait a bit.
I may be able to use a slider, but I'm not sure how to add this to my existing files and how to convert the slider 0-100 value to a hex value etc.
I'll raise this again in 2009
Cheers
Richard
Rob H
December 31st, 2008, 06:58 AM
If gain is in the range 0 - 0x2A (ie 42) then you just need to scale the slider value. Something like
local scaledValue = math.floor((value * 42) / 100)
rpalmer68
December 31st, 2008, 07:26 PM
If gain is in the range 0 - 0x2A (ie 42) then you just need to scale the slider value. Something like
local scaledValue = math.floor((value * 42) / 100)
Thanks Rob, Happy New Year BTW.
I'll leave you for a bit and then raise this again, as I think I should convert the plugin to use the component manager, but the only example I have is your LGTV one (which I'm using) but that still has some issues too as per this thread.
http://www.promixis.com/forums/showthread.php?t=18920&highlight=lgtv
So I'd like to resolve the LGTV issues first, then try to convert my NEC plugin to the new component manager.
Cheers
Richard
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.