PDA

View Full Version : How to use other IR-remotes with SB3



Claus-DK
2007-05-28, 01:45
How do I make my SB3 respond to the infrared signals intended for another piece of hardware than the SB or the JVC DVD player?

I would like to be able to define the use of each key so that I control which keys on the alternative remote control that substitutes those of the original one.

Can this be done through software or would there be hardware issues involved?

Can it be done through a plugin or would it take more programming than that?


Regards
Claus

ceejay
2007-05-28, 03:47
Start by having a look at the Home / Technical Information / Help / Button Mapping page in your slimserver...

Claus-DK
2007-05-28, 04:29
Start by having a look at the Home / Technical Information / Help / Button Mapping page in your slimserver...

Thanks!

Now I only need to find out what codes - in the same format - my remote sends.

I wonder how I get that informmation?

Regards
Claus

Claus-DK
2007-05-28, 05:37
Thanks!

Now I only need to find out what codes - in the same format - my remote sends.

I wonder how I get that informmation?

Regards
Claus

Hmm....

Case is that I have a universal remote that is preprogrammed for many different devices. Unfortunately the Squeezebox isn't one of them.

So I thought that I could pick one of the preprogrammed players and set the SB up to respond to them.

Here I found a lot of infrared hex codes:
http://www.remotecentral.com/cgi-bin/codes/

Unfortunately they don't seem to be in the same format as the ones used in the ir-files on my Slimserver.

So how do I translate the codes from Remotecentral to codes that I can use for my Slimserver?

Regards
Claus

ceejay
2007-05-28, 05:40
I don't have an answer for that question but... doesn't your universal remote support a JVC DVD player?

If so that would be your easiest solution.

Ceejay

Mark Lanctot
2007-05-28, 05:43
IRBlaster (http://wiki.slimdevices.com/index.cgi?IRLearning) in learning mode can learn the codes of most remotes.

Not sure if the result is compatible - it produces lines and lines of codes on a single button press for me. Works fine with IRBlaster but if you're looking for a single code it may not help.

Claus-DK
2007-05-28, 05:51
I don't have an answer for that question but... doesn't your universal remote support a JVC DVD player?

If so that would be your easiest solution.

Ceejay

Yes! But for two resons I don't want to use this solution:

1. I would like to use the DVD section of the remote with my DVD-player

2. The way the keys are used could be far better

Regards
Claus

Claus-DK
2007-05-28, 05:52
IRBlaster (http://wiki.slimdevices.com/index.cgi?IRLearning) in learning mode can learn the codes of most remotes.

Not sure if the result is compatible - it produces lines and lines of codes on a single button press for me. Works fine with IRBlaster but if you're looking for a single code it may not help.

Could I ask you to give me an example of how IRBlaster returns the learned codes?

Regards
Claus

Mark Lanctot
2007-05-28, 05:56
Could I ask you to give me an example of how IRBlaster returns the learned codes?

Here's the .conf file for my Marantz RC1400:


begin remote
name Marantz_RC1400
flags RAW_CODES

begin raw_codes
name Power on
1025 725 1900 1625 1825 800
950 800 950 800 950 800
950 800 950 1675 950 800
1825 800 950 89700
1000 750 1825 1675 1825 800
975 775 975 775 975 775
975 775 975 1650 975 775
1850 775 975 20000
name Switch to CD input
1050 700 1050 725 975 775
1825 1675 1825 800 950 1675
950 800 950 800 950 800
950 800 950 800 950 88800
950 775 950 800 950 800
1825 1675 1825 800 950 1675
950 800 950 800 950 800
950 800 950 800 950 20000
name V-Mute on
1050 700 1875 1650 1825 800
950 800 975 775 975 4300
975 775 975 1650 975 775
1825 1675 1825 800 950 800
950 800 950 1675 1825 20000
end raw_codes
end remote

The names I specified myself.

Unfortunately as you see it's not hexadecimal codes like on Remote Central.

Claus-DK
2007-05-28, 06:02
Here's the .conf file for my Marantz RC1400:


begin remote
name Marantz_RC1400
flags RAW_CODES

begin raw_codes
name Power on
1025 725 1900 1625 1825 800
950 800 950 800 950 800
950 800 950 1675 950 800
1825 800 950 89700
1000 750 1825 1675 1825 800
975 775 975 775 975 775
975 775 975 1650 975 775
1850 775 975 20000
name Switch to CD input
1050 700 1050 725 975 775
1825 1675 1825 800 950 1675
950 800 950 800 950 800
950 800 950 800 950 88800
950 775 950 800 950 800
1825 1675 1825 800 950 1675
950 800 950 800 950 800
950 800 950 800 950 20000
name V-Mute on
1050 700 1875 1650 1825 800
950 800 975 775 975 4300
975 775 975 1650 975 775
1825 1675 1825 800 950 800
950 800 950 1675 1825 20000
end raw_codes
end remote

The names I specified myself.

Unfortunately as you see it's not hexadecimal codes like on Remote Central.

Thanks!

Here's the content ot the Slim_Devices_Remote.ir file:

---

# This mapping is for the custom Slim Devices remote

# Additionally, some new codes may be defined for use with programmable
# remotes

################################################## ################################
# Button names to IR code mappings
################################################## ################################
0 = 76899867
1 = 7689f00f
2 = 768908f7
3 = 76898877
4 = 768948b7
5 = 7689c837
6 = 768928d7
7 = 7689a857
8 = 76896897
9 = 7689e817
arrow_down = 7689b04f
arrow_left = 7689906f
arrow_right = 7689d02f
arrow_up = 7689e01f
voldown = 768900ff
volup = 7689807f
power = 768940bf
rew = 7689c03f
pause = 768920df
fwd = 7689a05f
add = 7689609f
play = 768910ef
search = 768958a7
shuffle = 7689d827
repeat = 768938c7
sleep = 7689b847
now_playing = 76897887
size = 7689f807
brightness = 768904fb
favorites = 768918e7
browse = 7689708f
power_on = 76898f70
power_off = 76898778

---

So I guess that I'm back to how do I translate the codes from IRBlaster or the ones I find on the Internet into something that can be used in a ir-file?

Regards
Claus

Mark Lanctot
2007-05-28, 06:06
The IRBlaster codes are formatted in a way LIRC (http://www.lirc.org/) understands. Perhaps there is a conversion script available?

Claus-DK
2007-05-28, 06:11
The IRBlaster codes are formatted in a way LIRC (http://www.lirc.org/) understands. Perhaps there is a conversion script available?

Good idea!

Any idea on what the format used in the IR-file is called?

Regards
Claus

Mark Lanctot
2007-05-28, 06:15
Any idea on what the format used in the IR-file is called?


I don't think there's a name for it, it's just a format LIRC uses.

LIRC is open-source so if you have the programming skills you could dig in. It appears to support custom actions so you could have it send a CLI command to SlimServer based on a button press from remote controller X.

Claus-DK
2007-05-28, 06:24
I don't think there's a name for it, it's just a format LIRC uses.


Just came across this: http://www.herger.net/slim/detail.php?nr=716&kategorie=slim

It seems as though Michael Herger did the same thing with a NAD remote.

I hope that he can give a few input for me to come further with this project.

Regards
Claus

gdpeck
2007-05-28, 07:42
Just came across this: http://www.herger.net/slim/detail.php?nr=716&kategorie=slim

It seems as though Michael Herger did the same thing with a NAD remote.

I hope that he can give a few input for me to come further with this project.

Regards
Claus

This is the coolest thing I have seen today, since I just bought a NAD c720BEE reciever (which uses this remote) for my bedroom squeezebox system.

Thanks for posting it!!

Claus-DK
2007-05-28, 09:26
Just came across this: http://www.herger.net/slim/detail.php?nr=716&kategorie=slim

It seems as though Michael Herger did the same thing with a NAD remote.

I hope that he can give a few input for me to come further with this project.

Regards
Claus

I think that I have come a bit further:

Fumbeling around in the webinterface of my Slimserver I came across "Server settings" "Debugging". When activating d_ir I was able to read out the codes from any remote in the logfile.

Then I created the file AlfaView_Remote.ir and placed it in the IR directory on my Slimserver.

The content of the file is shown here:

---

# This mapping is for the AlfaView DeLuxe remote for AUX code 142

################################################## ################################
# Button names to IR code mappings
################################################## ################################
0 = 0000cd06
1 = 0000cd86
2 = 0000cd46
3 = 0000cdc6
4 = 0000cd26
5 = 0000cda6
6 = 0000cd66
7 = 0000cde6
8 = 0000cd16
9 = 0000cd96
arrow_down = 0000cdf6
arrow_left = 0000cde6
arrow_right = 0000cd76
arrow_up = 0000cd4e
voldown = 0402aa55
volup = 04022ad5
power = 0000cd22
rew = 04022ad5
pause = 0402aa55
fwd = 0000cd32
add = 7689609f
play = 0000cdb2
search = 768958a7
shuffle = 7689d827
repeat = 768938c7
sleep = 7689b847
now_playing = 76897887
size = 7689f807
brightness = 768904fb
favorites = 768918e7
browse = 7689708f
power_on = 76898f70
power_off = 76898778

---

Unfortunately it doesn't seem to work. Not even after restarting my SlimServer Version: 6.5.1 - 10260 - Linux - EN - iso-8859-1

So hmmm what the .... is the problem here?

Regards
Claus

Claus-DK
2007-05-28, 10:16
I think that I have come a bit further:

So hmmm what the .... is the problem here?



Stupid me!

I was logged in as root when i copied the file to the IR directory - Well changing ownership to Slimserver did the trick.

The only thing left now is to fine tune the layout of the buttons on the remote.

Thanks to those who helped me!

Regards
Claus

mherger
2007-05-28, 13:12
> The only thing left now is to fine tune the layout of the buttons on
> the remote.

I guess I'm rather late here :-) (this is a public holiday in Switzerland)

> Thanks to those who helped me!

I didn't, but didn't you have to enable the IR file for your player
manually?

Michael

mherger
2007-05-28, 13:13
> This is the coolest thing I have seen today, since I just bought a NAD
> c720BEE reciever (which uses this remote) for my bedroom squeezebox
> system.

Have fun! But don't turn it up to much - that's a quite powerful amp for a
bedroom :-)

Michael

Claus-DK
2007-05-28, 13:29
>
Didn't you have to enable the IR file for your player manually?


When putting a new file into the library my Slimserver found it itselves.

When updating the file I could restart Slimserver og simply just uncheck it and then check it again in the webinterface.

For those who would like to do this themselves I just threw together a short guide with no fancy pictures:

http://www.slim.nygaard-pedersen.dk/any_remote.htm

Regards
Claus