Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: anton.todorov on November 19, 2010, 02:08:51 pm

Title: NEC IR protocol decoder
Post by: anton.todorov on November 19, 2010, 02:08:51 pm
Hi,
The attached perl script is my simple try to decode NEC's IR protocol(details from here (http://http://www.sbprojects.com/knowledge/ir/nec.htm)). As an single parameter pass a bin file generated by IRToyRecPlay utility.

Usage in cmd prompt:
> ir_NEC.pl dumpfile.bin

Here is sample session:
Quote
G:ProjectsEclipse-3.6IRToy>ir_NEC.pl test000.bin
0x00F7AA55 IR-NEC: Addr1:0x00, Addr2:0xF7, Cmd:0xAA OK
0xFFFFFFFF R
0xFFFFFFFF R
0xFFFFFFFF R
0x00F7EA15 IR-NEC: Addr1:0x00, Addr2:0xF7, Cmd:0xEA OK
0xFFFFFFFF R
0xFFFFFFFF R
0xFFFFFFFF R
0xFFFFFFFF R

BR,
Anton

ps. the RC-5 is almost ready too

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01012050792session_write_close ( )...(null):0
20.01052182384ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01052183160Database_MySQL->query( ).../DatabaseHandler.php:119
40.05632321888Database_MySQL->error( ).../Db-mysql.class.php:273