| He who joyfully marches to music in rank and file has already earned my contempt. He has been given a large brain by mistake, since for him the spinal cord would fully suffice.Albert Einstein
|
|
|
|
Login to view additional info.
| Ozzik: The MediaPortal guide, part XI. Advanced Setup, Remotes- the last part. |
28-1-07 15:29:44 |
IRTrans
General Information
MediaPortal supports commands from remote controls via the IRTRans Server. IRTrans modules are found in cases produced by DIGN and Zalman.
You can use any remote supported by IRTRans itself. To add support for a special remote, simply create your own Button Mapping.
Configuration Settings
Use MediaPortal Configuration to enable support for IRTrans. Open the Remote\IRTrans Tab to start configuration.
General
* Use IRTrans receiver
Enables or disables IRTrans support
* Mapping
Opens the Input Mapping Editor. Here you can adjust your button mappings to fit your own needs and reset to default mappings if necessary or after a MediaPortal update.
Settings
* Extended Logging
Writes information to the MediaPortal log file, to assist in debugging. This is especially useful, when testing new key mappings.
Server Settings
* IRTrans Server Port
Enter the Port, where the IRTRans Server is listening for client connections. Usually the default of 21000 is ok.
* Test
This button tests, if a IRTrans Server is listening on the indicated port. the result is shown in the Status box.
* Remote Model
The name of the Remote as known to IRTrans. See below for a detailed discussion.
Status
* The results of testing the server connection are shown here.
How do i get support for a new Remote?
Let's first have a look on how IRTrans works.
IRTrans has all remotes that are supported in directory \Program Files\Irtrans\remotes.
Look in the *.rem files. What you find after [NAME] is the remote model. For example for the Microsoft MCE Remote it will be:
[REMOTE]
[NAME]mediacenter
This is what you need to specify for the Remote Model field in MediaPortal Configuration.
MediaPortal comes with support for Microsoft MCE remotes as a default. If you want to use a different one, use the IRTrans Learn to generate a *.rem file.
Make a copy of file IrTrans mediacenter.xml as found in InputDeviceMappings\defaults of the MediaPortal install directory.
The new file needs to be named EXACTLY like this:
IrTrans hauppage
where IrTrans is a fixed constant and hauppage is the name of the remote to be supported, as indicated in the *.rem file of the new remote.
Help!! My remote commands get executed twice!
/!\ CAUTION: This is because of a feature of IRTrans in the app.cfg file, found in the \Program Files\Irtrans\remotes directory.
* This allows to send remote commands to specific applications.
* our problem can be found already on the beginning of this file. Edit the file and remove the following block of lines:
[APP]*
[ACTIVE]
[TYPE]KEY
[REMOTE]mediacenter
[COMMANDS]
1 [KEY]1
2 [KEY]2[KEY]a[KEY]b[KEY]c
3 [KEY]3[KEY]d[KEY]e[KEY]f
4 [KEY]4[KEY]g[KEY]h[KEY]i
5 [KEY]5[KEY]j[KEY]k[KEY]l
6 [KEY]6[KEY]m[KEY]n[KEY]o
7 [KEY]7[KEY]p[KEY]q[KEY]r[KEY]s
8 [KEY]8[KEY]t[KEY]u[KEY]v
9 [KEY]9[KEY]w[KEY]x[KEY]y[KEY]z
0 [KEY]0[KEY]\SPACE
OK [KEY]\ENTER
ENTER [KEY]\ENTER
LEFT [KEY]\LEFT
RIGHT [KEY]\RIGHT
DOWN [KEY]\DOWN
UP [KEY]\UP
CLEAR [KEY]\BACKSPACE
[END-COMMANDS]
[END-APP]
Then restart the IRTrans Server and it'll work as expected. Commands are only executed once.
{i} You might have Microsoft MCE running on the same machine as well, altough i don't understand the reason why.
It will happen that when pressing some keys, MCE is started. To prevent that, you need to remove the following lines out of apps.cfg as well:
[APP]MEDIACENTER
[ACTIVE]
[APPNAME]%SystemRoot%\ehome\ehshell.exe
[CLASSNAME]eHome Render Window
[TYPE]MCE
[REMOTE]mediacenter
[COMMANDS]
EHOME [FNC]EHOME
PLAY [FNC]PLAY
STOP [FNC]STOP
REC [FNC]REC
REW [FNC]REW
FWD [FNC]FWD
PAUSE [FNC]PAUSE
NEXT [FNC]NEXT
PREV [FNC]PREV
EPG [FNC]EPG
INFO [FNC]INFO
LIVETV [FNC]LIVETV[RUN]
VIDEO [FNC]VIDEO[RUN]
MUSIC [FNC]MUSIC[RUN]
TV [FNC]TV
RADIO [FNC]RADIO[RUN]
PICTURES [FNC]PICTURES[RUN]
VOL+ [FNC]VOL+
VOL- [FNC]VOL-
MUTE [FNC]MUTE
CH+ [FNC]CH+
CH- [FNC]CH-
BACK [FNC]BACK
DVDMENU [FNC]DVDMENU
RECTV [FNC]RECTV[RUN]
XX1 [FNC]DVDAUDIO
XX2 [FNC]DVDSUBTITLE
MESSENGER [FNC]MESSENGER
TELETEXT [FNC]TELETEXT
[END-COMMANDS]
[END-APP]
WINLIRC Receive
MP can use WinLIRC in order to send and to receive remote IR codes.
In the following it is only described the receiving case.
MP supports receiving remote commands from the WinLIRC server through the use of the WinLIRC Plugin. WinLIRC requires a very simple IR detector that allows you to decode infra-red signals of many (but not all) commonly used remote controls. There exists a full list of supported remotes.
WinLIRC is an application that runs seperately from MediaPortal and listens to an IR detector on your serial port. When it receives a recognized signal it sends out a socket packet to all listening applications. The WinLIRC Plugin listens to these packets and converts them into something that MediaPortal understands.
See also WinLIRC plugin documentation
Again, you need to restart IRTrans server for the changes to become active. |
|
 |
|
|
|
|
|
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
|
|
|