Using Lirc on a Mac mini with a URC 8820

General JP1 chit-chat. Developing special protocols, decoding IR signals, etc. Also a place to discuss Tips, Tricks, and How-To's.

Moderator: Moderators

Post Reply
abarea
Posts: 8
Joined: Wed Sep 07, 2005 8:39 am

Using Lirc on a Mac mini with a URC 8820

Post by abarea »

Hello guys,

I started to post on the apple ipod remote thread ( https://www.hifi-remote.com/forums/viewtopic.php?t=5317 ) and figured out i should start a new post as i was deviating more and more from the original goal.

My goal is to be able to use lirc to drive Freevo, an HTPC (Home theatre PC) application using the macmini internal IR receiver.
It looks like the mac mini receiver is limited to the apple remote code. More than that, it looks like it's limited to only 6 codes, which is not enough to control Freevo.
The thing is, you can use different apple remotes, so if i can get my urc 8820 to use several apple remote codes at the same time i should be good.

I tried to use lirc with my urc8820 and the device and protocol upgrade that are below (copied from the apple ipod protocol thread).
I use lirc in raw mode.

This is the resulting lircd.conf file:
begin remote

name /usr/local/lirc/lircd.conf.macmini-OFA-raw
bits 32
eps 30
aeps 100

one 0 0
zero 0 0
gap 204000
toggle_bit_mask 0x87EE4306

begin codes
play 0x87EE4303
fwd 0x87EE430C
rew 0x87EE4309
pause 0x87EE430A
stop 0x87EE4306
ffwd 0x87EE4309
frew 0x87EE4306
guide 0x87EE4305
menu 0x87EE4303
info 0x87EE4305
cc 0x87EE4306
prev 0x87EE4305
fav 0x00000000
ch+ 0x87EE4306
ch- 0x87EE4309
m1 0x00000000
m2 0x00000000
+100 0x87EE4309
left 0x87EE4305
end codes

end remote

For reference, here's my protocol upgrade taken from IR 7.06:
Protocol ID 01FF
20 15 22 48 31 C7 4D 08 08 01 13 03 57 01 13 01
22 D2 F0 11 A5 08 CA 6E 01 B2 01 63 03 6E 12 B2
B6 63 BE 62 BF 63 A4 FE B7 62 CC FF 5F

Here's my device upgrade:
Type PVR
Setup code 2000
FF 00 7E D2 0E D5 77 E1 C2 50 30 A0 60 90 A1 C0
60 90 30 50 C0 A0 A0 A0 91 61 A0 90 60

It looks like the important part are the 4 last bytes (for exemple in 0x87EE4305 that's 4305) that lirc receives for each key. The 2 last one identify the key, the other 2 identify the remote (i didn't guess it it's from this wise guy https://www.hifi-remote.com/forums/viewt ... 9792#p59792).

Is is possible to create a protocol/device upgrade that would generate those 2 bytes?
abarea
Posts: 8
Joined: Wed Sep 07, 2005 8:39 am

solution found

Post by abarea »

Well guys. I found a way by myself.
It looks like the mac mini can see more than 6 codes after all. But choosing codes it will understand is pretty hard as it seems to be somewhat random. Although it seems that choosing parity OBC numbers (when converted to binary) is the best way to start (found that out in the forum by the way).
For the rest, i used trial and error.
Anyway, here's a remote master upgrade for a 8820 with (nearly) all the PVR buttons active and understood by the mac mini and lirc 0.8.3cvs
https://www.hifi-remote.com/forums/dload ... le_id=5104
Post Reply