Hi, The remote that shipped with the board is a Philips 'universal' remote. In its 'as shipped' state it does not have any settings for the various devices - it may have some default I suppose but for the demos it needs the DVD player mode set to Code 0020. Anyway the process to change it is (from the Quick Start Guide).... 1/ Press 'code search' button until the LED stays on 2/ Press DVD button & enter the code 0020 IIRC the LED will go out once the code is entered correctly. If it doesn't work you can reset the remote by removing the batteries & hold down the power button for at least a minute - then put the batteries back in & repeat the above step. Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/>
________________________________ From: Rodolfo Leffa [mailto:[EMAIL PROTECTED] Sent: 04 August 2008 21:13 To: Phil Quiney Cc: [email protected] Subject: Re: Infrared device on DM6446 Hi, thanks again Phil. I still can not read the key value from the IR. It keeps on reading the same value (0xbefffcc8). The program initializes the MSP430LIB, but can't get a correct value. About the examples, i cant run then because of problems in the compilation. I'm working on that too. What is this setup of the remote control you are talking about? (You did set up the remote control for device '0020' (or whatever it was) & remote is set for DVD? ) Where should I do that? Maybe thats whats missing for my program to work. Thanks again. Regards, On Mon, Aug 4, 2008 at 4:18 AM, Phil Quiney <[EMAIL PROTECTED]> wrote: Hi, I checked the sample code in the dvsdk and it is the same as the code fragments I gave you....here is a list of files that reference the IR functions. [EMAIL PROTECTED] dvsdk_01_20_00_014]$ find . -type f -name *.[ch]|xargs grep -l get_ir_key ./demos/dm6446/decode/ctrl.c ./demos/dm6446/interface/start.c ./demos/dm6446/interface/encdec.c ./demos/dm6446/interface/tparty.c ./demos/dm6446/interface/enc.c ./demos/dm6446/interface/menu.c ./demos/dm6446/interface/dec.c ./demos/dm6446/encodedecode/ctrl.c ./demos/dm6446/utils/msp430lib/msp430lib.c ./demos/dm6446/utils/msp430lib/msp430lib.h ./demos/dm6446/utils/include/msp430lib.h ./demos/dm6446/encode/ctrl.c ./demos/dm355/decode/ctrl.c ./demos/dm355/interface/start.c ./demos/dm355/interface/encdec.c ./demos/dm355/interface/tparty.c ./demos/dm355/interface/enc.c ./demos/dm355/interface/menu.c ./demos/dm355/interface/dec.c ./demos/dm355/encodedecode/ctrl.c ./demos/dm355/utils/msp430lib/msp430lib.c ./demos/dm355/utils/msp430lib/msp430lib.h ./demos/dm355/encode/ctrl.c Now why doesn't yours work - you have tried running the demos? You did set up the remote control for device '0020' (or whatever it was) & remote is set for DVD? Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/> ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Quiney Sent: 01 August 2008 22:10 To: Rodolfo Leffa Cc: [email protected] Subject: RE: Infrared device on DM6446 Hi , Your English is fine, I can understand what you are asking - I think anyway ;-) I will have another look at this on Monday - I pulled the code snippets from an area of code I have never seen before so it is possible I missed something. The code we have definitely works as we use it daily.... You might be able to find some similar code amongst the examples....find, xargs & grep are your friends here. Something like ... find dir_name -type f -name '*.[ch]'|xargs grep -l msp430lib_get_ir_key ...to save you looking it up. Regards Phil Q -----Original Message----- From: Rodolfo Leffa [mailto:[EMAIL PROTECTED] Sent: Fri 8/1/2008 1:57 PM To: Phil Quiney Cc: [email protected] Subject: Re: Infrared device on DM6446 Hi Phil, first of all thanks for the answer. It was very helpfull. I tried to read the IR using the structure you put here, but only one value is returned by msp430lib_get_ir_key(). Even pressing diferent keys on the remote only one number is returned. Is there any configuration needed for the receiver ou for the remote control? I mean, something like configurate the remote control(s) that the msp430lib can comunicate with? Thanks again and sorry for my bad english. On Fri, Aug 1, 2008 at 6:12 AM, Phil Quiney <[EMAIL PROTECTED]> wrote: Hi, The IR receiver can be read by using the msp430lib.a library that ships with the example programs. To use it (some code snippets)... #include "msp430lib.h" initMask |= MSP430LIBINITIALIZED; // Initialize the MSP430 library to be able to receive IR commands if (msp430lib_init() == MSP430LIB_FAILURE) { perror( "Failed to initialize msp430lib" ); return(-1); } enum msp430lib_keycode key; /* See if an IR remote key has been pressed */ if( msp430lib_get_ir_key( &key ) == MSP430LIB_FAILURE ) { printf("Failed to get IR value.\n"); } The key returned is one of... MSP430LIB_KEYCODE_POWER MSP430LIB_KEYCODE_CHANINC MSP430LIB_KEYCODE_CHANDEC MSP430LIB_KEYCODE_VOLINC MSP430LIB_KEYCODE_VOLDEC MSP430LIB_KEYCODE_OK MSP430LIB_KEYCODE_0 MSP430LIB_KEYCODE_1 MSP430LIB_KEYCODE_2 MSP430LIB_KEYCODE_3 MSP430LIB_KEYCODE_4 MSP430LIB_KEYCODE_5 MSP430LIB_KEYCODE_6 MSP430LIB_KEYCODE_7 MSP430LIB_KEYCODE_8 MSP430LIB_KEYCODE_9 MSP430LIB_KEYCODE_FASTFORWARD MSP430LIB_KEYCODE_REWIND MSP430LIB_KEYCODE_ENTER MSP430LIB_KEYCODE_INPUT MSP430LIB_KEYCODE_MENU MSP430LIB_KEYCODE_MENUDONE MSP430LIB_KEYCODE_INFOSELECT MSP430LIB_KEYCODE_SLEEP MSP430LIB_KEYCODE_SUBTITLE MSP430LIB_KEYCODE_REPEAT MSP430LIB_KEYCODE_PLAY MSP430LIB_KEYCODE_RECORD MSP430LIB_KEYCODE_STOP MSP430LIB_KEYCODE_PAUSE Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/> ________________________________ From: [EMAIL PROTECTED] [mailto:davinci-linux-open-source-bounces+pquiney <mailto:davinci-linux-open-source-bounces%2Bpquiney> [EMAIL PROTECTED] On Behalf Of Rodolfo Leffa Sent: 31 July 2008 22:46 To: [email protected] Subject: Infrared device on DM6446 Hello, i am new on the list and i have a doubt. Does anybody know to which device the infrared receiver on DM6446 board is mapped in the linux filesystem? Does the infrared device need some especific driver to work? I'm trying to integrate lirc with vlc player on this board. Any help would be nice! Best regards, -- Rodolfo Leffa de Oliveira -- Rodolfo Leffa de Oliveira Laboratório de Integração de Software e Hardware - LISHA Mestrando em Ciência da Computação - PPGCC Universidade Federal de Santa Catarina - UFSC -- Rodolfo Leffa de Oliveira Laboratório de Integração de Software e Hardware - LISHA Mestrando em Ciência da Computação - PPGCC Universidade Federal de Santa Catarina - UFSC
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
