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!


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

vBulletin® Version 3.8.8