View Full Version : problem solved for sharing same code for winfast 2000XP TV
arey
November 18th, 2002, 10:03 PM
Hi,
I have been following the problems that people using the winfast 2000xp TV are facing with(the remote sharing the same codes for some buttons). I have modified two functions in the source code which resolve the problem. They are as follows:
DWORD GetRemoteData(void) {
//The mask has been changed to reflect the tv tuner card.
DWORD data, mask=0x8f8;
data = g_dTVDriver.memoryReadDWORD(BT848_GPIO_DATA);
// FIXME This is specific of the Winfast TV2000. See lirc_gpio.c of
// the lirc project to see appropriate values of mask and displacement
// for other cards
data = (data & mask);
return data;
}
//Method has been modified to use the standard library function that //converts an integer to hexadecimal format
void SendKey(int key) {
char Buffer[100];
itoa(key, Buffer, 16);
SendString(Buffer);
}
P.S.: Ron, I have tested it and all buttons on the remote generated unique
hex codes. So feel free to make changes to the appropriate source code file(igirder.cpp). For the sake of credits my name is Seshu Parvataneni.
Send me a pm if you want to contact me, Thanks.
Ron
November 19th, 2002, 01:44 AM
ehm,.. you question in the other thread is solved ?
arey
November 19th, 2002, 08:00 AM
yes, Ron. But this is specific to the winfast 2000XP TV remote. The mask has to be changed for each different TV tuner card(as you already know). I think the function, SendKey() can remain unchanged though. TIA.
Ron
November 19th, 2002, 08:49 AM
Could you pack it all up and send me a zip file ? I do not have this hardware nor the time to test it. I'll be more then happy to upload the fixed file.
arey
November 19th, 2002, 08:56 AM
Here is the zipped file containing the source code for the winfast 2000xp TV plugin. The zipped file contains only the source code. Compile it by setting the active configuration(under Build menu option) for the VC++ project to "Win32- Release version".
arey
November 19th, 2002, 09:00 AM
....by the way when compiled the name of the dll that is created is winfast.dll. It is created one directory level above the one where the winfast project files are.
Ron
November 19th, 2002, 09:11 AM
So just to get things straight,.. this is the code for the Winfast 2000 XP. This is a different plugin from the Winfast 2000 ?
arey
November 19th, 2002, 10:29 AM
yes this is different from the winfast plugin. But with very minor changes. The changes were made only to the two functions mentioned in this thread(see previous messages).
:)
BSOD2600
November 19th, 2002, 05:56 PM
Sweet!!! I'm looking forward to this plugin being finalized!! Can I beta test!?
arey
November 19th, 2002, 07:12 PM
yes you can test it. Download the source code from the attachment in one of the previous messages and compile it. Note that you have to set the active configuration of the VC++ project to "Win32 - Release" version. Then copy the winfast.dll to your girder plugins directory. If you have any problems please do let me know.
---------------------------
To save my butt :roll:
I am not responsible for any damages that may have caused to your computer due to this dll file. You should download this file at your own risk.
:wink:
BSOD2600
November 19th, 2002, 08:42 PM
Well unfortiantly I dont have C++ 6, but instead have visual studio .net. I imported and converted the entire project and when I tried to build it as Win32 release it goes, but with a warning...
Compiling...
main.cpp
igirder.cpp
Linking...
.\src\plugin.def(4) : warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
Creating library .\Release/winfast.lib and object .\Release/winfast.exp
I doesnt fail, but I dont see any .dll in the release directory....
mind compiling it for me?
BSOD2600
November 19th, 2002, 08:59 PM
Ok, I'm stupid....I was in the top level of the winfast folder! DUH!
Well it seems to be working with girder. For example, my Full screen button use to share the same code as the play/pause. Now fullscreen is code #18 and play/pause is #818.
COOL!
knoertploert
November 20th, 2002, 09:05 AM
Hi,
I'm not an expert in C++ and I don't have visual studio or something like that. So can somebody be so kind to upload the compiled file?
Thanks
BSOD2600
November 20th, 2002, 09:17 AM
Here is the file compiled under visual studio.net
knoertploert
November 20th, 2002, 10:15 AM
Thanks, It's working for met too.
Ron
November 20th, 2002, 10:15 AM
Arey, what is your name so I can add you to the authors list on the download page.
Here is a version of the plugin compiled with MSVC6,.. so no .net libraries needed.
http://www.girder.nl/downloadn.php?Link=445
arey
November 22nd, 2002, 08:56 AM
Hi Ron,
My name is Seshu Parvataneni.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.