Forum
Philips SRM7500 - Working config - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: Philips SRM7500 - Working config (/thread-48.html)

Pages: 1 2


Philips SRM7500 - Working config - BartOtten - 15th Dec, 2012 09:16 PM

Code:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="-n"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=false

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="srm7500libusb"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="macShortAddress=12:34,remoteShortAddress=56:78,macPANId=9a:bc"
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF="/etc/lirc/lircd.conf"
LIRCMD_CONF=""

Code:
<!-- Lircmap.xml for Philips SRM7500 MCE Remote -->

<lircmap>
    <remote device="SRM-7500">
        <power>Power</power>
        <back>Back</back>
        <info>More</info>
        <up>Up</up>
        <down>Down</down>
        <left>Left</left>
        <right>Right</right>
        <select>Ok</select>
        <volumeplus>Vol+</volumeplus>
        <volumeminus>Vol-</volumeminus>
        <mute>Mute</mute>
        <channelplus>Ch+</channelplus>
        <channelminus>Ch-</channelminus>
        <display>Windows</display>
        <record>Rec</record>
        <stop>Stop</stop>
        <reverse>Rew</reverse>
        <play>Play</play>
        <forward>Fwd</forward>
        <skipminus>Prev</skipminus>
        <pause>Pause</pause>
        <skipplus>Next</skipplus>
        <livetv>LiveTV</livetv>
        <recordedtv>RecTV</recordedtv>
        <menu>DVD</menu>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
        <star>Star</star>
        <hash>Hash</hash>
        <clear>Clear</clear>
    </remote>
</lircmap>

<!-- Buttons NOT used

        Text
        Guide
        Enter
        AspectRatio
        Red
        Green
        Yellow
        Blue

-->



RE: Philips SRM7500 - Working config - CurlyMo - 15th Dec, 2012 09:20 PM

For implementation in the official distribution we can't alter the Keymap.xml because they're global settings. Can you make the Lircmap.xml + Lircd.conf* generic enough so you don't have to alter the Keymap.xml.

*Can you also post this one.


RE: Philips SRM7500 - Working config - BartOtten - 15th Dec, 2012 09:36 PM

(15th Dec, 2012 09:20 PM)CurlyMo Wrote:  For implementation in the official distribution we can't alter the Keymap.xml because they're global settings. Can you make the Lircmap.xml + Lircd.conf* generic enough so you don't have to alter the Keymap.xml.

*Can you also post this one.

Keymap.xml seems to be obsolete: http://wiki.xbmc.org/index.php?title=Keymap . Can you confirm this, than I shall delete it from my post.


RE: Philips SRM7500 - Working config - CurlyMo - 15th Dec, 2012 10:08 PM

Doesn't matter, just make sure that you're remote works by only providing a custom Lircmap.xml, lircd.conf and hardware.conf. Check "/usr/local/share/xbmc/system/keymaps/remote.xml" for all available functions of XBMC.

Also, can you provide me with a dmesg output so i can see how the remote is recognized by the kernel?


RE: Philips SRM7500 - Working config - CurlyMo - 18th Dec, 2012 09:24 PM

I'm currently working on the Alpha 4 update. If you would like me to add support for this remote, can you then provide me with the config files i requested? Thanks in advanced!


RE: Philips SRM7500 - Working config - BartOtten - 19th Dec, 2012 04:00 AM

Code:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="-n"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=false

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="srm7500libusb"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="macShortAddress=12:34,remoteShortAddress=56:78,macPANId=9a:bc"
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF="/etc/lirc/lircd.conf"
LIRCMD_CONF=""

Code:
<!-- Lircmap.xml for Philips SRM7500 MCE Remote -->

<lircmap>
    <remote device="SRM-7500">
        <power>Power</power>
        <back>Back</back>
        <info>More</info>
        <up>Up</up>
        <down>Down</down>
        <left>Left</left>
        <right>Right</right>
        <select>Ok</select>
        <volumeplus>Vol+</volumeplus>
        <volumeminus>Vol-</volumeminus>
        <mute>Mute</mute>
        <channelplus>Ch+</channelplus>
        <channelminus>Ch-</channelminus>
        <display>Windows</display>
        <record>Rec</record>
        <stop>Stop</stop>
        <reverse>Rew</reverse>
        <play>Play</play>
        <forward>Fwd</forward>
        <skipminus>Prev</skipminus>
        <pause>Pause</pause>
        <skipplus>Next</skipplus>
        <livetv>LiveTV</livetv>
        <recordedtv>RecTV</recordedtv>
        <menu>DVD</menu>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
        <star>Star</star>
        <hash>Hash</hash>
        <clear>Clear</clear>
    </remote>
</lircmap>

<!-- Buttons NOT used

        Text
        Guide
        Enter
        AspectRatio
        Red
        Green
        Yellow
        Blue

-->

Code:
Output of dmesg
[175799.251121] usb 1-1.3.1: USB disconnect, device number 8
[175802.819713] usb 1-1.3.1: new full-speed USB device number 9 using dwc_otg
[175802.899560] usb 1-1.3.1: device descriptor read/64, error -32
[175803.124194] usb 1-1.3.1: New USB device found, idVendor=0471, idProduct=0617
[175803.124229] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[175803.124248] usb 1-1.3.1: Product: Philips RF Dongle
[175803.124265] usb 1-1.3.1: Manufacturer: Philips
[175803.124281] usb 1-1.3.1: SerialNumber: 9d40000000eb0d00

The default http://www.mideiros.net/doc/share/lirc/remotes/philips/lircd.conf.srm7500libusb


RE: Philips SRM7500 - Working config - BartOtten - 19th Dec, 2012 04:05 AM

@[CurlyMo] Here you go Smile


RE: Philips SRM7500 - Working config - CurlyMo - 19th Dec, 2012 04:38 AM

Don't you have a lircd.conf?


RE: Philips SRM7500 - Working config - BartOtten - 19th Dec, 2012 04:41 AM

http://www.mideiros.net/doc/share/lirc/remotes/philips/lircd.conf.srm7500libusb Here it is Smile Just rename


RE: Philips SRM7500 - Working config - CurlyMo - 19th Dec, 2012 05:18 AM

Owk, almost done.

Can you match the names of your buttons in the lircd.conf as linked above with these:
https://github.com/xbianonpi/xbian/blob/xbian-alpha4/etc/lirc/remotes/devinput.conf

Then start with a clean Lircmap.xml and only add those buttons that don't work by default. Probably up/down/left/right do. Your custom Lircmap.xml will then most likely be a bit smaller and uniform than it is now.

Thanks!


RE: Philips SRM7500 - Working config - BartOtten - 19th Dec, 2012 05:58 AM

Any way to test this? renaming lirc.conf, hardware.conf etc?


RE: Philips SRM7500 - Working config - CurlyMo - 19th Dec, 2012 06:01 AM

Just remove the current lircmap.xml, rename the buttons in your current lircd.conf to the uniform names (like in devinput). Then restart lirc & xbmc and check what buttons work and which don't.


RE: Philips SRM7500 - Working config - BartOtten - 19th Dec, 2012 06:06 AM

Just see a nice tutorial of a guy named....curlymo. First have to check some bugs on the forum though


RE: Philips SRM7500 - Working config - BartOtten - 19th Dec, 2012 07:06 AM

Code:
Output IRW
0000000000001101 00 KEY_DOWN SRM-7500
0000000000001103 00 KEY_DOWN SRM-7500
0000000000002901 00 KEY_LEFT SRM-7500
0000000000002903 00 KEY_LEFT SRM-7500
0000000000003301 00 KEY_INFO SRM-7500
0000000000003303 00 KEY_INFO SRM-7500
0000000000003101 00 KEY_RIGHT SRM-7500
0000000000003103 00 KEY_RIGHT SRM-7500
0000000000002901 00 KEY_LEFT SRM-7500
0000000000002903 00 KEY_LEFT SRM-7500
0000000000001101 00 KEY_DOWN SRM-7500
0000000000001103 00 KEY_DOWN SRM-7500

Code:
Output lirc-daemon when XBMC starts

lircd: accepted new client on /var/run/lirc/lircd
lircd: initializing driver
lircd: 802.15.4 network parameters
lircd:     macShortAddress 12:34
lircd:     macPANId 9a:bc
lircd:     LogicalChannel 19
lircd:     remoteShortAddress 56:78
lircd:     macBeaconPayload PHILIPSxbian
lircd: initializing Philips USB receiver
lircd: USB receiver initialized

The new lircd.conf is working (fine). I have removed the Lircmap.xml bot XBMC does not react at all. I understand that I can make a -full- Lircmap myself, however I don't think that is what you want. It should be (partly) recognized by using the same 'names' as devinput right?


RE: Philips SRM7500 - Working config - CurlyMo - 19th Dec, 2012 07:28 AM

When you look at my digitenne remote map: https://github.com/xbianonpi/xbian/blob/xbian-alpha4/etc/lirc/remotes/smt1000t.conf
and compare that to the actual xbmc lircmap: https://github.com/xbianonpi/xbian/blob/xbian-alpha4/home/xbian/.xbmc/userdata/Lircmap.xml

Buttons i didn't have to map ('cause i used the default devinput names):
KEY_0 till KEY_9
KEY_UP
KEY_DOWN
KEY_LEFT
KEY_RIGHT

So just use your own Lircmap.xml (with the names names) but leave those out that already work by default.