maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Pierogi - a universal infrared remote control app (https://talk.maemo.org/showthread.php?t=82243)

Copernicus 2012-02-12 23:21

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by knuthf (Post 1164195)
I use the ON/OFF button on the TV, the sound, and input channel. The rest is on the Set-up box, or the DVD player or even the VHS - and some of these devices are "non-original".

Yes, I've already had inquiries about mapping some buttons to one device and other buttons to another device. :) Lots of universal remotes have the ability to, say, map most of their buttons to a VCR keyset but have the volume controls "punch through" to a television keyset. I really haven't thought hard enough about it yet, to be honest...

Quote:

So, do you have a "learning mode" planned?
Well, the "learning mode" available on many modern universal remotes requires the ability to receive IR data. The N900 can only send IR data, so it isn't possible to do. (At least using the built-in hardware. The LIRC guys get their data by connecting an IR receiver to a PC; I suppose you could hook up a USB IR receiver to the N900, though I don't know much about USB host-mode... I'm not really a hardware guy. :) )

Quote:

And a quick device selection?
Well, I would like to use the volume rocker to advance back and forth through the list of favorite keysets. (The favorite keysets page itself was intended to be a fairly quick way to switch between keysets, but it is still kinda cumbersome.)

Copernicus 2012-02-12 23:29

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by qwazix (Post 1164199)
Thanks! It seems to do something, but I can't figure out what. The volume keys seem to adjust the louver, and the power button causes the A/C to make a sound, but it doesn't turn on or off...

Sorry! I really didn't think too hard when I mapped those keys. :) Here's the current mapping:

"TIMER" -> Timer button
"SLEEP" -> Sleep button
"TEMP+" -> Volume Up button
"TEMP-" -> Volume Down button
"FAN" -> 1 button
"COOL" -> 2 button
"HEAT" -> 3 button
"FAN HIGH" -> 4 button
"FAN MED" -> 5 button
"FAN LOW" -> 6 button
"SWING" -> 7 button
"POWER" -> Power button

I guess mapping "COOL" to Blue and "HEAT" to Red would make sense, but it gets more complicated trying to map the rest to the current UI...

BTW, the source code to Pierogi should be available for download on the Garage site:

https://garage.maemo.org/plugins/ggi...php/?p=pierogi

If I haven't mentioned it before, this project is released under the GPL version 2.0 or later, the same as the LIRC project (upon which I've based much of my code).

Copernicus 2012-02-12 23:39

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by sixwheeledbeast (Post 1164205)
Normal remote controls send the command once pause then sends the command repeatedly.
Pierogi sends the command repeatedly, so sometimes toggle commands can be twitchy like mute for example.

Really? Hmm, pretty much every IR protocol I've seen calls for the remote control to immediately start repeating a command once the button is pressed, and to keep repeating the command until the user lets up on the button. In fact, most protocols go out of their way to tell the receiving device "the user is holding down the button right now, not pressing it repeatedly".

In fact, I have just now held the mute button down in front of my Sanyo, and the TV stayed muted rather than switching mute on and off.

The odds are good that there is a bug in my code; the protocol must not be sending the "I am repeating" code correctly. Can you tell me which keyset you were using?

sixwheeledbeast 2012-02-12 23:58

Re: [Announce] Pierogi - a universal infrared remote control app
 
LG TV Keyset 1
You are correct, must be a bug on that Keyset
Just tested a Sony Keyset mute works perfect.

This LG Keyset Mute toggles on and off rapidly and the volume control is a little twitchy.

The "holding the button down" command makes sense, with the problem I'm having.

I guess my TV must interpret the command so it moves, once pauses and then moves quickly.

Copernicus 2012-02-13 00:14

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by sixwheeledbeast (Post 1164223)
LG TV Keyset 1

Found it. :) That brand of LG is using the standard "NEC" protocol (the most popular IR protocol in the world, by far). You can show that a key is being repeated in two different ways in the NEC protocol, and I've got a flag to set which type of repeat to use.

And I've got that flag set wrong. Darn!

I'll have that fixed in the next update. Thanks!

anyonebutthis 2012-02-13 01:41

Re: [Announce] Pierogi - a universal infrared remote control app
 
@C0pernicus...

2 questions

1 - Have you looked into double bursting key codes to increase range ?

2 - Where can i find the keyset for the NHENS (Digital Stream) DTX9900 ? Its a digital receiver.

Here's the conf file
http://lirc.sourceforge.net/remotes/...stream/DTX9900


ps: widget support would be helpful as well.
A super power off button would kick ***.

datjomp 2012-02-13 02:36

Re: [Announce] Pierogi - a universal infrared remote control app
 
Too bad Saba isn't supported yet. I'm staying at a campinghut with a Saba mini-tv with a lacking remote.
This is a real life scenario where Pierogi could have come to the resque.

I'm staying here for at least a week,you've got plenty of time to fix it(joke!) :)

Copernicus 2012-02-13 02:45

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by anyonebutthis (Post 1164237)
1 - Have you looked into double bursting key codes to increase range ?

Hmm, not sure what "double bursting" means. The IR LED is your basic flashlight -- you can turn it on and turn it off. There are no power settings that I know of. (And the timing of IR codes is fixed -- if you try to run them faster or slower, the target device will simply not understand what you are trying to say...)

Quote:

2 - Where can i find the keyset for the NHENS (Digital Stream) DTX9900 ? Its a digital receiver.

Here's the conf file
http://lirc.sourceforge.net/remotes/...stream/DTX9900
Well, LIRC config files are themselves keysets, written down in a format that the LIRC server can understand. That particular keyset is using the standard "NEC" protocol, so it'd be easy to put into Pierogi as well; I'll go ahead and put it on my list. :)

Quote:

ps: widget support would be helpful as well.
I'm not much of a UI guy, so I'm not sure what kind of widgets would work for this sort of thing. :) Pierogi, as it stands right now, is a bit complex for use as a widget, I would think. Still, I've got the IR device code almost completely separate from the GUI code right now, so it'd be easy to make a different front end for the app (or, for that matter, to port it to other hardware). It shouldn't be too hard to morph the program into some other form...

Quote:

A super power off button would kick ***.
I'm pretty sure that already exists! :) I think it's called tv-b-gone or something like that...

Copernicus 2012-02-13 02:57

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by datjomp (Post 1164248)
Too bad Saba isn't supported yet. I'm staying at a campinghut with a Saba mini-tv with a lacking remote.
This is a real life scenario where Pierogi could have come to the resque.

I'm staying here for at least a week,you've got plenty of time to fix it(joke!) :)

Hey, actually, I have a rather embarrasing LG bug that I'd like to get fixed, this would give me a good excuse to push another update out asap. It looks like Saba is using the "Thomson" protocol; I haven't done a Thomson device yet, but the protocol looks simple to implement. Let me see how quickly I can get it done...

Copernicus 2012-02-13 04:27

Re: [Announce] Pierogi - a universal infrared remote control app
 
Ok, Pierogi 0.6.2 is now working its way into the Extras-Devel repository. This one features:
  • Fix for the LG bug
  • A few new (and possibly somewhat dodgy) Daewoo keysets
  • A first pass at keysets for Sky, Western Digital, and Saba

Once again, as with anything in the extras-devel area, please be ready to deal with potential bugs. :) Thanks!

datjomp 2012-02-13 05:16

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by Copernicus (Post 1164268)
Ok, Pierogi 0.6.2 is now working its way into the Extras-Devel repository. This one features:
  • Fix for the LG bug
  • A few new (and possibly somewhat dodgy) Daewoo keysets
  • A first pass at keysets for Sky, Western Digital, and Saba

Once again, as with anything in the extras-devel area, please be ready to deal with potential bugs. :) Thanks!

Wow,you are fast!
And it works on the Saba
You should accept donations

Thanks for the superfast support :)

mr_pingu 2012-02-13 07:33

Re: [Announce] Pierogi - a universal infrared remote control app
 
The Philips keysets are a mess, no offence.
I used the Philips DVD 3 keyset on my DVDR 7310 H recorder. The power button was mute one time, the other time I only got an pop up with error(just the word error) on my screen, that means it did receive a command but it's not available at that moment. Also I have to admit the IR sensor on this thing sucks. Really requires precise aiming, I think. As I don't understand the "receiving" LED states =/ On my Panasonic TV not really needed to aim that well, atleast I think. However I am not sure as my Philips DVD/HDD recorder might work better with the "right" keyset

sixwheeledbeast 2012-02-13 07:58

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by sixwheeledbeast (Post 1164223)
This LG Keyset Mute toggles on and off rapidly and the volume control is a little twitchy.

Just tested 0.6.2, LG TV 1 is all sorted.
The mute button works as it should also the volume button works exactly like the remote now.
Thanks.

sixwheeledbeast 2012-02-13 08:06

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by mr_pingu (Post 1164297)
Also I have to admit the IR sensor on this thing sucks. Really requires precise aiming, I think. As I don't understand the "receiving" LED states =/ On my Panasonic TV not really needed to aim that well, atleast I think.

The "range" is never going to be that great compared to a remote.
The infrared on the N900 is deep inside a plastic case.
Normal remotes use wide LED's that stick out beyond the casing. This means you can get 120 degree spread, you'lll never get that on the N900.

reinob 2012-02-13 10:26

Re: [Announce] Pierogi - a universal infrared remote control app
 
@Copernicus,

First of all. Thanks a lot for this program. I just saw the thread today and quickly installed it :)

I'll try it with my Sony TV + Sony HDD DVR when I'm at home.
Now, I have a so-called "Media Receiver" (MR300) from the Deutsche Telekom. There are no specs for it as far as I know, but I found that the LIRC database contains an entry for a "T-Online" product (S100).

No idea what S100 is, but maybe you could try adding that and then I can try it if works with the Media Receiver.

Cheers.

HtheB 2012-02-13 10:46

Re: [Announce] Pierogi - a universal infrared remote control app
 
1 Attachment(s)
Is it possible to add those "Chinese universal remotes"?
I'm talking about these remotes:

ed_boner 2012-02-13 11:39

Re: [Announce] Pierogi - a universal infrared remote control app
 
i really love this app..too bad that for me it only works maybe 1meter form tv set..is it just me?

Copernicus 2012-02-13 12:57

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by datjomp (Post 1164272)
it works on the Saba

Good to hear! I wasn't sure I had the protocol quite right. :)

Copernicus 2012-02-13 13:08

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by mr_pingu (Post 1164297)
The Philips keysets are a mess, no offence.

No offence taken. As I've noted above, the possibility that Philips is completely messed up would not be a surprise. :)

Quote:

I used the Philips DVD 3 keyset on my DVDR 7310 H recorder. The power button was mute one time, the other time I only got an pop up with error(just the word error) on my screen, that means it did receive a command but it's not available at that moment.
Hmm. The Philips protocol is really quite well designed, such that even if you had a remote for another device, it shouldn't really mess up your device like that. It does sound like there may be an error in my code, then. I'll take another look at it.

(Also, I haven't been able to find a keyset specifically associated with the 7310, so it may be that I simply don't have the right codes.)

On the aiming -- I could certainly believe that if I've got the protocol timings wrong, the receiver might still be able to recognize signals (or, at least, believe that it recognized signals) if you hold the phone close enough to saturate the sensor. So if I manage to tweak it correctly, it may in fact work at a normal range.

J4ZZ 2012-02-13 13:15

Re: [Announce] Pierogi - a universal infrared remote control app
 
Hi there, requesting LG TV's Service_Menu (resp. IR Hack) if possible.

Thanks,

J4ZZ

Copernicus 2012-02-13 13:31

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by reinob (Post 1164348)
Now, I have a so-called "Media Receiver" (MR300) from the Deutsche Telekom. There are no specs for it as far as I know, but I found that the LIRC database contains an entry for a "T-Online" product (S100).

No idea what S100 is, but maybe you could try adding that and then I can try it if works with the Media Receiver.

I'll put it on the list! It appears to be using the RC5 protocol, so no trouble there. But yeah, I can't tell either if it is in fact the MR300 or something like it.

Hmm, actually, just took a swing past the hifi-remotes website; it looks like they've got some rough decodes for a Deutsche Telekom "T-Home 300", but it isn't using RC5 protocol. :( I'll see if I can make heads or tails of their discussion...

Copernicus 2012-02-13 13:37

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by HtheB (Post 1164351)
Is it possible to add those "Chinese universal remotes"?

??? I'm not sure what you mean. Pierogi is a universal remote...

Copernicus 2012-02-13 13:39

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by ed_boner (Post 1164377)
it only works maybe 1meter form tv set..is it just me?

I'm getting distances of at least 2 meters from most devices. Can you tell me what keyset you are using? Maybe I've got some settings wrong...

mr_pingu 2012-02-13 13:41

Re: [Announce] Pierogi - a universal infrared remote control app
 
Just did some more tests and I was able to turn it on and off the first time easily with dvd set 3 ;) Then I turned the recorder on for the second time with some more effort, it requires much effort to properly recognize it , even from 10 cm distance ;) Then I thought I would also turn of with the power button on pierogi, but instead it muted again. Then after holding power button en moving the phone to find the sensor, which is really hard aiming compared to my Panasonic TV, the device(recorder) turned off in the end. So sometimes it mutes, and sometimes the powerbutton works like it should.

I know you kind of know that's something not right on the Philips sets, but I thought this might be valuable information. Have nice day, and thanks for the working remote for my Panasonic TV :D

Copernicus 2012-02-13 13:47

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by J4ZZ (Post 1164416)
Hi there, requesting LG TV's Service_Menu (resp. IR Hack) if possible.

I do have about a half-dozen "factory codes" for the LG TV Keyset #1, but I'm kinda nervous about putting them in the UI; you can really damage your TV if you don't know what you are doing. I suppose I could make a special "Do not use unless you know what you are doing!" window, or some such...

shrijith1 2012-02-13 15:51

Re: [Announce] Pierogi - a universal infrared remote control app
 
After todays update, got the Philips keyset 2 working for my Television :) Not sure if I was pointing my N900 in wrong direction yesterday. A wonderful intelligent app. Appreciate the way you (Copernicus) answer and support every single query on this thread. Hats off!

Copernicus 2012-02-13 16:11

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by shrijith1 (Post 1164472)
After todays update, got the Philips keyset 2 working for my Television :) Not sure if I was pointing my N900 in wrong direction yesterday. A wonderful intelligent app. Appreciate the way you (Copernicus) answer and support every single query on this thread. Hats off!

Thanks! :) And hey, by the way, if you get the chance, could you do a few tests for me? In particular, make sure the "Mute" button is working correctly, and if you hold down one of the Volume keys, that the volume will increase or decrease for as long as you hold the button. (I.E., I'd like to know if the repeat functionality is working.)

The Philips TV Keyset 2 and Philips DVD Keyset 3 are using the exact same RC6 protocol. If TV Keyset 2 is working fine, that means the problems mr_pingu is having must lie in the key values themselves, not in the protocol...

mr_pingu 2012-02-13 16:19

Re: [Announce] Pierogi - a universal infrared remote control app
 
I am home I will test if my recorder acts on commands of keyset 2 ;)

Brian_7 2012-02-13 16:34

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by sixwheeledbeast (Post 1163817)
Anybody with an Admiral try all the Sharp and Zenith keysets.

Philco try all Magnavox, Samsung or Yamaha keysets.

none of them worked on my admiral and philco tvs -.-

hycraig 2012-02-13 16:48

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by Copernicus (Post 1164189)
Sky+HD looks good: the LIRC has a config file, and it looks like standard RC6 protocol! This could be the first satellite receiver I manage to get right...

works great thanks again

Copernicus 2012-02-13 16:59

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by Brian_7 (Post 1164495)
none of them worked on my admiral and philco tvs -.-

Drat. But yeah, codes for those TVs are hard to find. :(

Copernicus 2012-02-13 17:00

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by hycraig (Post 1164499)
works great thanks again

Right on! I was starting to think that I'd never get any satellite control working correctly. :)

shrijith1 2012-02-13 18:12

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by Copernicus (Post 1164484)
Thanks! :) And hey, by the way, if you get the chance, could you do a few tests for me? In particular, make sure the "Mute" button is working correctly, and if you hold down one of the Volume keys, that the volume will increase or decrease for as long as you hold the button. (I.E., I'd like to know if the repeat functionality is working.)

The Philips TV Keyset 2 and Philips DVD Keyset 3 are using the exact same RC6 protocol. If TV Keyset 2 is working fine, that means the problems mr_pingu is having must lie in the key values themselves, not in the protocol...

Both the things you had asked me works fine. Mute buttons works correctly. Holding the colume keys increases/decreases it for as long as I hold the button. Thanks again.

qwazix 2012-02-13 18:49

Re: [Announce] Pierogi - a universal infrared remote control app
 
about the Samsung Air/con, the keys definitely do not do the intended functions. Is there any other Samsung A/C keyset out there? What would I need to decipher the codes myself and send you the keyset? I have a MS ehome (mce) reciever. Can I use it for learning? I think I also have IrDA on an old laptop running debian.

Copernicus 2012-02-13 19:18

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by shrijith1 (Post 1164526)
Both the things you had asked me works fine. Mute buttons works correctly. Holding the colume keys increases/decreases it for as long as I hold the button.

Thank you! Hmm. I guess that means I need to find a better keyset for the DVDR 7310...

Copernicus 2012-02-13 19:34

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by qwazix (Post 1164545)
about the Samsung Air/con, the keys definitely do not do the intended functions. Is there any other Samsung A/C keyset out there?

That's the only keyset available in the LIRC config files, but I've found one more in the hifi-remotes website. I'll try to decipher that one. (For some reason, that one looks like it has more than two dozen codes; do you know how many buttons there are/were on your A/C's original remote?)

Quote:

What would I need to decipher the codes myself and send you the keyset? I have a MS ehome (mce) reciever. Can I use it for learning? I think I also have IrDA on an old laptop running debian.
I think yes, on both machines. I know for certain that LIRC folks are using MCE receivers with the LIRC server; that is, in fact, the main purpose of LIRC to begin with, to allow you to interact with a PC with an infrared remote control. I've gotta admit, though, that I don't know enough about it. I've really only played with IR on the N900. :)

(I really need to start doing this myself, I've still got a few remotes lying around the house here that I'd like to get keysets for...)

anyonebutthis 2012-02-13 21:18

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by Copernicus (Post 1164249)
Hmm, not sure what "double bursting" means. The IR LED is your basic flashlight -- you can turn it on and turn it off. There are no power settings that I know of. (And the timing of IR codes is fixed -- if you try to run them faster or slower, the target device will simply not understand what you are trying to say...)



Well, LIRC config files are themselves keysets, written down in a format that the LIRC server can understand. That particular keyset is using the standard "NEC" protocol, so it'd be easy to put into Pierogi as well; I'll go ahead and put it on my list. :)



I'm not much of a UI guy, so I'm not sure what kind of widgets would work for this sort of thing. :) Pierogi, as it stands right now, is a bit complex for use as a widget, I would think. Still, I've got the IR device code almost completely separate from the GUI code right now, so it'd be easy to make a different front end for the app (or, for that matter, to port it to other hardware). It shouldn't be too hard to morph the program into some other form...



I'm pretty sure that already exists! :) I think it's called tv-b-gone or something like that...


Thanks for the quick reply!
Perhaps a dedicated section for digital ("DTV") receivers would be helpful. Anyways, i appreciate all your help.


edit: that receiver i mentioned is ATSC for what its worth

mr_pingu 2012-02-13 21:49

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by Copernicus (Post 1164561)
Thank you! Hmm. I guess that means I need to find a better keyset for the DVDR 7310...

Probably, as the second DVD set didn't work at all ;) Don't wanna force you to fix this, give other things of this project more priority...

Copernicus 2012-02-13 22:02

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by anyonebutthis (Post 1164624)
Perhaps a dedicated section for digital ("DTV") receivers would be helpful.

Actually, I have been (slowly) trying to build up a list of devices alongside the list of keysets, to provide an alternative way to set up the buttons in Pierogi. (That is, in fact, what is behind the currently nearly-useless filter-keyset-by-device option in the keyset selection window; I've got each keyset object registering the names and types of devices that are known to work with that object's codes.)

But it'll be quite a while before that list becomes very useful. :)

(BTW, I really should ask folks to tell me the make and model of devices that work with Pierogi, so I can register them in the list. Let me go put that on the first post...)

Copernicus 2012-02-13 22:06

Re: [Announce] Pierogi - a universal infrared remote control app
 
Quote:

Originally Posted by mr_pingu (Post 1164635)
Probably, as the second DVD set didn't work at all ;) Don't wanna force you to fix this, give other things of this project more priority...

Well, drat. Yeah, it may take a while to find the right codes.

If you're really interested, the way that the LIRC guys get their codes is by hooking up an IR receiver to a PC and reading them directly off of the remote, button by button. (As qwazix was mentioning earlier.) I don't know enough about it myself, though to say just how much effort that takes...


All times are GMT. The time now is 00:11.

vBulletin® Version 3.8.8