x10 remote control mapping problem (1 Viewer)

TheButler

Portal Member
January 28, 2006
18
0
Area: Media Portal Plugins
MediaPortal Version: 0.2.0.0 RC2 (2006-02-22)
MediaPortal Skin: BlueTwo
Windows Version: Windows XP (SP2)
.NET CLR Version: 2.0.50727
DirectX Version: 4.09.00.0904 (9.0c)
Audio Codec: MPEG/AC3/DTS/LPCM Audio Decoder
Video Codec: InterVideo Video Decoder
CPU Type: Intel Pentium D - 3.00GHz
Memory: 1 GB
Motherboard: MS-7204 (MICRO-STAR INTERNATIONAL CO., LTD)
TV Card Model: Medion SAA7131
TV Card Type: -
TV Card Driver: 1.3.3.0
Video Card Model: Nvidia Geforce 6700 XL (128 MB)
Video Card Driver: 8.2.6.5
Video Card Resolution: 1280x768
Video Render Type: VMR9
Audio Card Model: Medion SAA7131, Hybrid Capture Device 2
Audio Card Driver: 5.10.0.5152
Synopsis::

Hi
I'm very happy that MP now has native support for the X10 remote control. I have one. However I'm having a problem trying to map the buttons. When I go into Mapping its fine if there are no conditions to a button, but if I try to specify a condition I get an exception error when trying to apply the settings. It also deletes the custom x10.xml file.Below is a copy of the error. Not to sure how to map the keys yet, I'm just experimenting so I could be doing something wrong.
Details of Unhandled exception.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
at MediaPortal.Configuration.InputMappingForm.SaveMapping(String xmlFile)
at MediaPortal.Configuration.InputMappingForm.applyButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Configuration
Assembly Version: 1.0.2244.1974
Win32 Version: 1.0.2244.1974
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Configuration.exe
----------------------------------------
Core
Assembly Version: 1.0.2244.1940
Win32 Version: 1.0.2244.1940
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Core.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Databases
Assembly Version: 1.0.2244.1945
Win32 Version: 1.0.2244.1945
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Databases.DLL
----------------------------------------
System.ServiceProcess
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.2902.0
Win32 Version: 9.05.132.0000
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Microsoft.DirectX.Direct3D.DLL
----------------------------------------
DirectShowLib
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/DirectShowLib.DLL
----------------------------------------
System.Runtime.Serialization.Formatters.Soap
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
TVCapture
Assembly Version: 1.0.2244.1946
Win32 Version: 1.0.2244.1946
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/TVCapture.DLL
----------------------------------------
RemotePlugins
Assembly Version: 1.0.2244.1956
Win32 Version: 1.0.2244.1956
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/RemotePlugins.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.DirectX.DirectInput
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Microsoft.DirectX.DirectInput.DLL
----------------------------------------
Microsoft.DirectX
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Microsoft.DirectX.DLL
----------------------------------------
TaskScheduler
Assembly Version: 1.1.1007.26951
Win32 Version: 1.1.1007.26951
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/TaskScheduler.DLL
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Hope this helps someone figure out the problem.

Thanks
 

Harry

New Member
February 26, 2006
2
0
x10 remote control mapping

Hi Butler,

It looks like you've a similar remote control than I. Mine is a "MD1 NBC Remote Control" from Medion/Aldi and I figured out that there are indeed some custom mappings to do for this model. One of the funny things is, that the vol+/vol- keys have been swapped.

Here is the layout of the remote control:
www.blueshell.com/dl/mc/x10Mapping.htm
This is my custom mapping file:
www.blueshell.com/dl/mc/x10.xml
(The latter file should be put into the C:\Program Files\Team MediaPortal\MediaPortal\InputDeviceMappings\custom\ folder)

Using the media portal version from today, I had no problems to do edit these mappings.

Best regards,

Harry
 

Harry

New Member
February 26, 2006
2
0
Sorry, again with better formatting:
Hi Butler,

It looks like you've a similar remote control than I. Mine is a "MD1 NBC Remote Control" from Medion/Aldi and I figured out that there are indeed some custom mappings to do for this model. One of the funny things is, that the vol+/vol- keys have been swapped.

Here is the layout of the remote control:
www.blueshell.com/dl/mc/x10Mapping.htm
This is my custom mapping file:
www.blueshell.com/dl/mc/x10.xml
(The latter file should be put into the C:\Program Files\Team MediaPortal\MediaPortal\InputDeviceMappings\custom\ folder)

Using the media portal version from today, I had no problems to do edit these mappings.

Best regards,

Harry
 

TheButler

Portal Member
January 28, 2006
18
0
Hi Harry

Thanks very much for the help. Will give it a try tonight and let you know how I get on.

Paul
 

DutchMaster

Portal Member
March 1, 2006
12
0
Germany
Had the same problem when adding some commands, like window-tvfullscreen.

I have been editing the xml file in notepad, which when I reloaded in the keymappings showed OK.

It does the same with CVS 02-26-2006-01-01
The latest does not have this problem?


Also action keypress does not work for me.
For instance I hoped to implement "x" for fullscreen switching
I used key 120 as well as 88 conform the ASCII code.

Pressing the key on the keyboard works fine and shows:

Code:
key:120 0x78 (2)

and does its screen switching.

Using the remote it receives the command, gives the cursor.wav sound, says "Action mapped", but doesn't switch the screen.
 

TheButler

Portal Member
January 28, 2006
18
0
Hi
I'm still getting the odd exception error when mapping within MP. Have not tried to modify the XML file yet. Need to study it a little more to see how it works. I have also noticed another small bug which I would be grateful if someone else could test to see if they get the same thing. I place my PC in standby when not in use, but when it comes out of standby all the buttons on the remote act as if they had been pressed twice. Have to close down MP and restart to correct.

Edit: Just downloaded latest CVS and seems to have cured the exception error, but the double press bug still exists

Thanks
Paul
 

DutchMaster

Portal Member
March 1, 2006
12
0
Germany
TheButler said:
I place my PC in standby when not in use, but when it comes out of standby all the buttons on the remote act as if they had been pressed twice. Have to close down MP and restart to correct.
Tried it here, it gave me the same result.
The remote utility shows one command: key-on -> key off
Mediaportol log show two commands: key-on -> action mapped; key-on -> actionmapped; key-off; key-off

I'm still getting the odd exception error when mapping within MP
........
Edit: Just downloaded latest CVS and seems to have cured the exception error, but the double press bug still exists
Yeah could map more now, but still got the error when I did a quick test with the latest CVS.

I will do some more testing and document the problems and errors concerning the x10 control.
I've unfortunately not much time till the weekend (long days this week :roll: ) to do so.
 

DutchMaster

Portal Member
March 1, 2006
12
0
Germany
DutchMaster said:
I'm still getting the odd exception error when mapping within MP
........
Edit: Just downloaded latest CVS and seems to have cured the exception error, but the double press bug still exists
Yeah could map more now, but still got the error when I did a quick test with the latest CVS.
I did a fresh install and runned the CVS of 3-3-2006. I could not replicate the problem anymore. Looks like its solved.
 

TheButler

Portal Member
January 28, 2006
18
0
Done a complete reinstall of windows and MP over the weekend. Installed latest CVS, but still have the problem of the double press on the remote. The mapping does seem to be sorted now. Hopefully will be cured on the 18th March when the new release is available
 

markieg

New Member
March 24, 2006
1
0
TheButler said:
Area: Media Portal Plugins
MediaPortal Version: 0.2.0.0 RC2 (2006-02-22)
MediaPortal Skin: BlueTwo
Windows Version: Windows XP (SP2)
.NET CLR Version: 2.0.50727
DirectX Version: 4.09.00.0904 (9.0c)
Audio Codec: MPEG/AC3/DTS/LPCM Audio Decoder
Video Codec: InterVideo Video Decoder
CPU Type: Intel Pentium D - 3.00GHz
Memory: 1 GB
Motherboard: MS-7204 (MICRO-STAR INTERNATIONAL CO., LTD)
TV Card Model: Medion SAA7131
TV Card Type: -
TV Card Driver: 1.3.3.0
Video Card Model: Nvidia Geforce 6700 XL (128 MB)
Video Card Driver: 8.2.6.5
Video Card Resolution: 1280x768
Video Render Type: VMR9
Audio Card Model: Medion SAA7131, Hybrid Capture Device 2
Audio Card Driver: 5.10.0.5152
Synopsis::

Hi
I'm very happy that MP now has native support for the X10 remote control. I have one. However I'm having a problem trying to map the buttons. When I go into Mapping its fine if there are no conditions to a button, but if I try to specify a condition I get an exception error when trying to apply the settings. It also deletes the custom x10.xml file.Below is a copy of the error. Not to sure how to map the keys yet, I'm just experimenting so I could be doing something wrong.
Details of Unhandled exception.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
at MediaPortal.Configuration.InputMappingForm.SaveMapping(String xmlFile)
at MediaPortal.Configuration.InputMappingForm.applyButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Configuration
Assembly Version: 1.0.2244.1974
Win32 Version: 1.0.2244.1974
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Configuration.exe
----------------------------------------
Core
Assembly Version: 1.0.2244.1940
Win32 Version: 1.0.2244.1940
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Core.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Databases
Assembly Version: 1.0.2244.1945
Win32 Version: 1.0.2244.1945
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Databases.DLL
----------------------------------------
System.ServiceProcess
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.2902.0
Win32 Version: 9.05.132.0000
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Microsoft.DirectX.Direct3D.DLL
----------------------------------------
DirectShowLib
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/DirectShowLib.DLL
----------------------------------------
System.Runtime.Serialization.Formatters.Soap
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
TVCapture
Assembly Version: 1.0.2244.1946
Win32 Version: 1.0.2244.1946
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/TVCapture.DLL
----------------------------------------
RemotePlugins
Assembly Version: 1.0.2244.1956
Win32 Version: 1.0.2244.1956
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/RemotePlugins.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.DirectX.DirectInput
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Microsoft.DirectX.DirectInput.DLL
----------------------------------------
Microsoft.DirectX
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/Microsoft.DirectX.DLL
----------------------------------------
TaskScheduler
Assembly Version: 1.1.1007.26951
Win32 Version: 1.1.1007.26951
CodeBase: file:///C:/Program%20Files/Team%20MediaPortal/MediaPortal/TaskScheduler.DLL
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Hope this helps someone figure out the problem.

Thanks

I have a problem with the TV tuner, how did u setup?
 

Users who are viewing this thread

Top Bottom