MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2005-03-07, 21:36   #31 (permalink)
Portal Member
 
Join Date: Mar 2005
Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts


Default Input Mapper and LiveDriveIR Plugins

I've written two plugins: InputDeviceMapper and LiveDriveIR.

InputDeviceMapper accepts events passed to it by other plugins, maps them to Actions, and then passes those Actions on to MediaPortal for processing.

LiveDriveIR listens to the IR receiver on any LiveDriveIR (or Audigy Drive, etc.), and passes any events received to InputDeviceMapper. This plugin works by passing any System Exclusive (sysex) messages it receives on a given MIDI device on to InputDeviceMapper. For those who don't know, the LiveDriveIRs sends any signal their IR receivers pick up as Sysex messages on a MIDI device. The result is that this plugins turns the LiveDriveIR into a generic IR remote reciever. A receiver that, in conjunction with InputDeviceMapper, can control MediaPortal with any IR remote.

Why did I split this functionality into two plugins? The idea is that, now, any plugin can use InputDeviceMapper to map device events to MediaPortal Actions. A plugin that listens to the game port, for example, and passes any event it receives to InputDeviceMapper would allow one to control MediaPortal with gamepads/joysticks.

The mappings used by InputDeviceMapper are completely configurable, allowing any event to be mapped to any Action, at the user's dicrestion.

Both plugins work brilliantly for controlling MediaPortal; the only gremlin in their workings is in their interaction on the configuration side. Said problem will be detailed in a later thread (being written right after this post). I will edit in a link to said thread once it's started.

As promised, here is the thread.

The plugins have been uploaded as patches: InputDeviceMapper, LiveDriveIR

[EDIT]
Here are the threads that should be used for general discussion about these plugins: InputDeviceMapper, LiverDriveIR.
Technical discussions about the plugins, if they exist, are linked to from the above threads.
[/EDIT]
__________________
Thanks,
--kaburke
kaburke is offline   Reply With Quote
Old 2005-03-07, 21:54   #32 (permalink)
Retired Team Member
 
mPod's Avatar
 
Join Date: Jan 2005
Location: Berlin
Age: 33
Posts: 2,086
Thanks: 0
Thanked 3 Times in 3 Posts

Country:

My System

Default Re: Input Mapper and LiveDriveIR Plugins

Quote:
Originally Posted by kaburke
I've written two plugins: InputDeviceMapper...
Where can we get this one? I have planned exactly the same, I think. A unified programming interface for "small" and easy to code remote plugins. And this seems to do exactly the job. It would be cool if you could provide the sources, as my already working (and most action-driven) Hauppauge plugin would surely benefit from your device mapper. If it's not really ready for public, you could have us a look at the sources. Sure my plugin works without your mapper, but it would be really cool to have a basis for all remote controls. No matter if they should be configured or not (learning, mapping, customization)... Did you get this idea on your own or did you follow the "discussion" on IRC?
mPod is offline   Reply With Quote
Old 2005-03-07, 22:00   #33 (permalink)
Portal Member
 
Join Date: Mar 2005
Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts


Default

The plugins are ready, save the problem described.

You, or indeed anyone, can look at the sources, and/or give the binaries a try. The only obstacle is that I don't have anywhere to host the files. If someone could give me some space, or point me in the direction of some free space, then I would be glad to post my files.

Alternatively, I could e-mail the files to you (assuming some relatively private exchange of e-mail addresses is possible).

As to your last question, I came up with this on my own; I didn't realize there was an IRC "discussion." I downloaded MediaPortal a couple of days ago, and was dismayed that there was no support for my AudigyDriveIR, so I decided to write the plugins.
__________________
Thanks,
--kaburke
kaburke is offline   Reply With Quote
Old 2005-03-08, 08:31   #34 (permalink)
ojo
Portal Member
 
Join Date: Sep 2004
Location: Ulstrup, Denmark
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I you register yourself at SourceForge.net (hosts MP exe-files and CVS) you can upload the files as patches for starters.

Load the IRC channel and talk to fx. frodo to get the files added to CVS.

Then maybe talk to the admins (could be frodo, but not sure) and get them to add you to the team to get full r/w access to the CVS repository.
__________________
;-) Ojo
ojo is offline   Reply With Quote
Old 2005-03-08, 08:42   #35 (permalink)
Retired Team Member
 
mPod's Avatar
 
Join Date: Jan 2005
Location: Berlin
Age: 33
Posts: 2,086
Thanks: 0
Thanked 3 Times in 3 Posts

Country:

My System

Default

Quote:
Originally Posted by ojo
Then maybe talk to the admins (could be frodo, but not sure) and get them to add you to the team to get full r/w access to the CVS repository.
He does not need this. The devs are doing it, only a handful of people have rw access ot the CVS. If you made it into CVS, you can send the sources to Frodo. But talk to him if this is possible or if he wants to wait until the development has advanced. It's always dangerous to put "untested" code (meaning not beta-tested) into CVS, as its sometimes hard for "normal" users why a piece of software is not working the way he wants to be, cause it lacks of some kind of implementation. I think it's a good idea to let some people "alpha-test" the plugin before thinking about putting it into CVS.

But SF is a good place to post the plugins in the "patches" section. Please supply the sources as well, I'm so curious, what's under the hood. :wink:
mPod is offline   Reply With Quote
Old 2005-03-08, 09:06   #36 (permalink)
ojo
Portal Member
 
Join Date: Sep 2004
Location: Ulstrup, Denmark
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by mPod
Quote:
Originally Posted by ojo
Then maybe talk to the admins (could be frodo, but not sure) and get them to add you to the team to get full r/w access to the CVS repository.
He does not need this.
Hear hear !

Quote:
Originally Posted by mPod
The devs are doing it, only a handful of people have rw access ot the CVS. If you made it into CVS, you can send the sources to Frodo. But talk to him if this is possible or if he wants to wait until the development has advanced. It's always dangerous to put "untested" code (meaning not beta-tested) into CVS, as its sometimes hard for "normal" users why a piece of software is not working the way he wants to be, cause it lacks of some kind of implementation. I think it's a good idea to let some people "alpha-test" the plugin before thinking about putting it into CVS.
This actually points out a whole other discussion. This has to do with how you wan't to use your code-repository. I know it can be a problem to administer, but my experience tells me that code is stored in CVS (AT ALL TIMES) This not to insure integrety, but to insure the investment in work hours. Yes the freshly version in CVS would always be in an unsure state, but this the nature of the thing. Tagging, branching etc. is the way to ensure stabillity.

BTW isn't the coder's responsible for alpha testing?

Anyway, I'm not trying to start that religous discurssion.... so if you disagree please just disregard my remarks.

Quote:
Originally Posted by mPod
But SF is a good place to post the plugins in the "patches" section. Please supply the sources as well, I'm so curious, what's under the hood. :wink:
Exactly !
__________________
;-) Ojo
ojo is offline   Reply With Quote
Old 2005-03-08, 09:13   #37 (permalink)
Retired Team Member
 
mPod's Avatar
 
Join Date: Jan 2005
Location: Berlin
Age: 33
Posts: 2,086
Thanks: 0
Thanked 3 Times in 3 Posts

Country:

My System

Default

Quote:
Originally Posted by ojo
BTW isn't the coder's responsible for alpha testing?
Have you asked Microsoft about this? :twisted:

But this is not the correct thread for such discussions. It's an annoucement, not a discussion... :wink:
mPod is offline   Reply With Quote
Old 2005-03-08, 16:06   #38 (permalink)
Portal Member
 
Join Date: Mar 2005
Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts


Default InputDeviceMapper and LiveDriveIR Plugin Availability

The plugins have been uploaded as patches: InputDeviceMapper, LiveDriveIR
__________________
Thanks,
--kaburke
kaburke is offline   Reply With Quote
Old 2005-03-10, 15:46   #39 (permalink)
Portal Member
 
Join Date: Mar 2005
Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts


Default New Versions of InputDeviceMapper of LiveDriveIR

Version 0.2 of InputDeviceMapper and version 0.2 of LiveDriveIR have now been uploaded.

InputDeviceMapper has had some serious work done to it. There have been some feature upgrades, a reworked plugin system, and some code clean up. See the changelog for more details.

The only change to LiveDriveIR was to make it compatible with the new InputDeviceMapper.

The plugins have been uploaded as patches: InputDeviceMapper, LiveDriveIR

If people have some spare time, I would appreciate feedback on these plugins (both their usefulness and how they're written). I will start a thread for such a discussion in the Plugins area and post a link here when it is created.

Here is the discussion thread.
__________________
Thanks,
--kaburke
kaburke is offline   Reply With Quote
Old 2005-04-12, 00:02   #40 (permalink)
Portal Member
 
mbuzina's Avatar
 
Join Date: Apr 2005
Location: Germany
Age: 34
Posts: 457
Thanks: 1
Thanked 2 Times in 2 Posts

Country:


Default Re: Input Mapper and LiveDriveIR Plugins

Quote:
Originally Posted by kaburke
I've written two plugins: InputDeviceMapper and LiveDriveIR.
Thanks, this saved me a lot of coding and is defnitely more usable. I just finished first beta of my X10 RF Remote Control Plugin. In Germany the Medion RF Remote Control is bundled with PCs bought in the Aldi Stores (Supermarket, but good value for your money).

People interested may have a look at http://sourceforge.net/tracker/index...97&atid=647927.
mbuzina is offline   Reply With Quote
Reply

Bookmarks

Tags
announce, plugin, progress

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
would plugin sub-sections by plugin name help? arjay Plugins 0 2006-06-28 07:58
Work in progress? wietze MediaPortal 1 Talk 0 2006-06-11 20:19
RW plugin doesn't work well with MP0.2 RC2 sla General Support 0 2006-01-04 14:54
A work in Progress mickb Completed HTPC Projects 8 2005-08-02 18:47
Work in progress frodo Skins 2 2004-06-23 17:49


All times are GMT +1. The time now is 07:57.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress