I've checked you plugin code from SVN and here are issues:
- you are trying to call DoGetInfrared function from dll (IgorPLug.dll) which is indeed girder plugin. correct dll would be IgorUSB.dll that comes with driver and is placed in Windows\ folder
- IgorUSB.dll is written in Delphi and for some reason it doesn't work with C#... throws exceptions all the time
- DoGetInfrared function returns timediagram which needs to be converted to code. It is luck to get two exact time diagrams of one key pressed in a row.
Since I have source of IgorUSB.dll I made little utility in Visual C# that reads IR codes and it doesn't need any DLL... it talks directly to driver!
Porting from Delphi (or C/C++) to C# is really pain for me because this is my firstencounter with C#
So, when I finish that utility I will merge my code with your plugin and that should be fine.
If you want any help let me know. I'm still here to help if I can.
Do you have any documentation for the IgorUSB.dll file?
I would like to see exactly how it does the timecode information. I've already got C# code written that can get detect the IR protocol and get the codes from MCE remote time code information for RC5, RC6, RCA, Sony, Sharp, JVC and NEC protocols. So maybe I can save you from porting yours?
Timecode is array of pulses/spaces in 85.3us steps. Documentation says that the last element of timecode array is SPACE but from my experience (when timecode.lenght is odd) that is not true. First element is aways PULSE.
Problem is that I use IgorUSB with 90s2323 uC that has max. timecode length limted to 36. That should be enough for RC5,6, SONY... but not for NEC protocol (AFAIK)... But NEC code can be extracted because we have LAST 36 timecodes.
Since time resolution is 85.3us some time margins must be used.
Currently, I have finished RC5 decoding only and trying to do SONY/NEC(partial).
I would really like to see IR protocol detection routines because I am having problems with it. My detection algo is pretty primitive: if there are long pulses and long spaces in timecode then it is RC5, if there are only long pulses it is SONY and if only long spaces it is NEC
Another issue is key repeating... but later about that
The MCE device uses 50usec timing resolution. I convert the raw timing into useconds and then run my detection algorithms over that. So I think we could probably just use my code to do the ir decoding ...
If you want to make the changes to get the code that is in the SVN to work with the right Dll then I could tack on my ir decoding source and we'd be on a winner ...
My ir decoding source is still a work in progress. There are not enough comments and it is a bit of a mess. I'm hoping to clean it up this week and include it the next version of some of my plugins.
I can send you a copy, but you'd need to give me some time to clean it up.
Well, I need to clean up my code, too.... and familiarize with C# better. It is real miracle that my app compiles without errors and warnings while using kernel32 calls to driver
When I finish my work I'll send you source and we'll see what next.
Thanks for explaining. I found a passing reference to this here:
https://www.team-mediaportal.com/wiki/display/MediaPortal1/HID%20Profiles
which I had overlooked in the past. I would find it logical for a created custom profile to be automatically activated, but until that happens, I will try to create a wiki page for the current...
Thanks for explaining. I found a passing reference to this here...
I have used custom actions in the "Mapping" section of "HID" since moving to a FLIRC as a remote receiver a couple of years ago...
I installed the new EXE on my MP 1.36 64-bit system (Win 10 laptop), and... it works fine. (y) :)
Thank you for making this change :). I hope that it will be included in the next release.
-- from CyberSimian in the UK
I installed the new EXE on my MP 1.36 64-bit system (Win 10 laptop), and... it works fine. (y) :)
Thank you for making this...
In "MP Config" the following setting enables the display of channel numbers in the TV EPG:
But there is no equivalent setting in...
I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is missing in my Titan skin. This only applies to my .TS files, my .MKV files are OK. I believe the difference is likely to be because .MKV files embed the runtime in the file unlike .TS files.
I have done...
I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...
I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...