NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMCX2 and other NMT stuff v
« Previous 1 … 18 19 20 21 22 … 37 Next »
Lirc'ing about

 
  • 0 Vote(s) - 0 Average
Lirc'ing about
trummel
Offline

Senior Member

Posts: 276
Threads: 34
Joined: Oct 2008
#1
2009-06-16, 10:02 PM
Sorry, but this is a long and boring post, so feel free to stop reading immediately Rolleyes

I've been playing with LIRC for the PCH/NMT. For those of you who don't know, lirc is the Linux Infrared Remote Control software that is used by lots of linux applications to interface with many supported remote controls.

The PCH has a vastly cut down implementation of lirc built in and Martin Vallevand has successfully amended it to support an additional (Hauppauge) remote. Unfortunately because of the stripped out version of lirc supplied for the NMT, this can only be done by coding and recompiling for every new remote.

I thought it would be nice if any of the long list of supported remotes could be added as they are in 'proper' lirc by adding editable config files into the home directory. That would also allow us to tweak what buttons do what to suit are own preferences. I downloaded the current CVS of lirc and set to work.....

After some time - and not a little rummaging through long forgotten programming skills (or lack of them), I have managed to get to the point that CVS lirc compiles and runs on the NMT. However (I much prefer that word to but), I have now reached a point where I want to integrate into the Gaya and mvpmcx2 applications. Unfortunately, neither app is currently designed to handle the output from the CVS implementation; they use a far simpler, but less configurable method.

CVS lirc work like this...

The signal from IR receiver is decoded by the lirc hardware code based on rules found in /etc/lircd.conf. The details of what key has been pressed on what remote and for how long are then passed to a linux socket in a long human readable string. The user application (irexec, mplayer, mythtv etc) then reads the string from the socket and decides what to do with it using the standard lirc libraries and the contents of the ~/.lircrc file.

The NMT lirc reduces this to...

The signal from IR receiver is decoded by the (fixed) lirc hardware code. That is interpreted by hard coded rules and the output is placed on a linux socket as a short hexadecimal code. That is then used by the application (Gaya or mvpmcx2) with no reference to a .lircrc file.

I can see some merit in having standard CVS lirc on the NMT. It will certainly make it easier to port any apps that use lirc. I am specifically interested in mvpmcx2 here though. To make it work properly, Martin Vallevand would have to rewrite part of the application to include the lirc_client libraries. I don't know how he feels about that, but even if he did, gaya would still not work and I can't see it getting amended in the near future.

To avoid that, I can deviate from the CVS and build a translation into the hardware decoder that still uses part of the .lircrc file to decide its translations, but outputs the hex code directly. That will work for gaya and mvpmcx2, but will make it non portable to other apps.

The alternative is that I write a buffer program that reads the human readable data and translates it using .lircrc and then dumps it onto the socket again for mvpmcx2 and gaya to collect. The down side to that is complication and another daemon running on the poor little NMT's cpu.

I am putting this long and rambling text up here to see if anyone is remotely :eek: interested in me pursuing this further. My wife already thinks I've left her!

Any feedback gratefully received.

Martyn.

Server: Ci5 2500k, 3GB, Windows Server 2012, nPVR 3.5.7. 2xWinTV-DVB-T USB, 1xWinTV-DVB-T PCI, 2 x BlackGold DVB-T, 1xPCTV290E and 1xPCTV460E on Astra 28.2 E.
clients: RPI2, Acer R3700, PCH-A110, NUC, 3xSamsung Smart TV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2009-06-17, 12:33 AM (This post was last modified: 2009-06-17, 01:00 AM by pBS.)
remotely interested :eek: lol
i had a pvr150 die on me and an old mvp so i have 2 mvp remotes to play with, and it's definitely my favorite remote of all time, so i'm extremely pleased MV chose this one to port..
now to just figure out how to inject it into the firmware load for permanency.. Big Grin
so i'm happy with it as-is, but i can see how others wouldn't have a spare mvp remote laying around..and the included remote is not real comfy to work with..see the new box they're planning? [C200] new remote but really same ole same old...different color...it's the layout and button shape/feel that leaves a lot to be desired...

one suggestion tho, if you do add a 'generic' remote, might be good to use MCE codes...
lots of those around, and lots of others have those codes pre-programmed nowdays...[i know where to get a 2x20 vfd and a remote and reciever for 25$] plus it's sort of a standard, 'RC-6', where mvp is the 'RC-5' codes standard..
plus they usually have enough buttons to be usefull...[the colored buttons etc]
but if you get .ini's working then it's all good..Smile

i know i wouldn't mind remapping some of the keys on my mvp remote to match my pvr where i use HIP with same remote.. Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#3
2009-06-17, 01:13 AM
Martyn, it's not gaya I worry about, mono and amp_test need remote codes through the named pipe (not socket) non-mpeg files are pretty important to the entire package. I am not really looking at enhancing mvpmcx2 this way because it doesn't have any knowledge of the content, a better use of lirc would probably be on the server if a plugin could hook in.

I've got all the tools for adding other remotes if anyone wants to do the mapping. If all mce remotes codes are the same maybe I should add one of mine.

pBS, I have this 4x20 VFD being shipped to me now http://www.mini-box.com/PicoLCD-4X20-Sideshow The new PCH remote is cool because it is RF not IR.

Martin
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2009-06-17, 01:57 AM (This post was last modified: 2009-06-17, 02:01 AM by pBS.)
ooOOoo....cool...the ir eye sucks on pch units...way too far back on board..
sweet, that lcd has ir bult-in! [better coverage] not sure if you could use ir and buttons but i see Linux drivers..Smile
i like the idea of external usb plugin, not bad pricing and 4 lines..i bet a spectrum analyzer would really easy to implement...[lol..not!] the extra buttons could come in handy..
i've got vfd's on all my boxes now, this would make them all similar..
i assume it'd be setup to read info directly from server getting info from pvrx2 plugin?
[i use a custom imonvfd plugin w/smartie that uses registry to share data,no file]
smartie is nice cuz it allows me to do spectrum and lots of other stuff..but there are limitations to spectrums..[grabbing input audio is hardest part]
there is a display output plugin framework also so direct plugin would be simple to write..

will be interested to see how that lcd comes along...Big Grin

oh and as far as i know all the mce remotes are same codes, but vista versions added a few buttons and i think win7 maybe one or two new ones, but the current set for Vista MCE remotes should cover all we need..
so far, all of my versions[mce2005,vista,preprogrammed,OEM] they are interchangable without reconfig...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
trummel
Offline

Senior Member

Posts: 276
Threads: 34
Joined: Oct 2008
#5
2009-06-17, 03:48 AM
Quote:mono and amp_test need remote codes through the named pipe (not socket)

Sorry, thought pipe, wrote socket.

Actually the buffer proglet option might work quite well, all of the normal codes could be put onto the pipe, but I could also inject sequences of keys onto the pipe or run shell scripts directly from a single (or combination) key press. So for instance, once lircd and the buffer prog were loaded, even if you left mvpmcx2 and ran gaya, a single key press could kill gaya and relaunch mvpmcx2 from anywhere.

I like the idea of the mce remote. Actually I've got a couple of mceusb keyboards I'd quite like to use. IIRC tho, the mce codes are a bit different to normal, so might take a bit of fiddling.

Server: Ci5 2500k, 3GB, Windows Server 2012, nPVR 3.5.7. 2xWinTV-DVB-T USB, 1xWinTV-DVB-T PCI, 2 x BlackGold DVB-T, 1xPCTV290E and 1xPCTV460E on Astra 28.2 E.
clients: RPI2, Acer R3700, PCH-A110, NUC, 3xSamsung Smart TV
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#6
2009-07-06, 03:27 AM
pBS Wrote:ooOOoo....cool...the ir eye sucks on pch units...way too far back on board..
sweet, that lcd has ir bult-in! [better coverage] not sure if you could use ir and buttons but i see Linux drivers..Smile

Stage one for my picoLCD is complete I can output to the device or I can use it for keyboard like input, I just need to remap the keys but I'd like to do both. I doubt it is worth using the IR eye.

I also doubt I can do much more from GB-PVR, unless maybe I work with ACTCMS and have MLPanel pass some information about the current song to the device, it uses it's own server.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode