Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: ecr on December 06, 2016, 07:10:52 pm

Title: IRToy questions
Post by: ecr on December 06, 2016, 07:10:52 pm
When using IRToy in record mode, a set of hex numbers are displayed.  Are these the on/off pulses for the codes?
And in the output file, are these actually recorded as binary (not text)?  I'm assuming this isn't raw waveform data...

And when IRToy plays back the file, is the firmware responsible for modulating the signal?  (not sure if that's the correct terminology)

If so, what tells the firmware what frequency to use?

Thanks,
ECR


IRToy output display below:
[font=Courier:]-------------------------------------------------------------------------

 IR TOY Recorder/Player utility v21 (CC-0)
 http://dangerousprototypes.com (http://dangerousprototypes.com)

-------------------------------------------------------------------------
 Opening IR Toy on COM6 at 115200bps...
 IR Toy Firmware version: V222
 Entering IR sample mode ....  Done.
 IR Toy Protocol version: S01
 Current sample timer Resolution: 21.3333us
 Recording at Resolution= 21.333300us
 Allocated Record Buffer size: 512
 Recording started.....
 Press a button on the remote.

 Waiting..any key to exit..
 Creating file: test_000.bin
 IR Toy said:
 00  6E  00  1E  00  37  00  1D  00  1B  00  1D  00  37  00  1D  00  1B  00  1D  00  37  00  1D  00  1B  00  1D  00  1B  00  1D  00  37  00  1D  00  1B  00  1D  00  1B  00  1D  00  1B  00  1D  00  1B  00  A2  00  6F  00  1E  00  37  00  1D  00  1B  00  1D  00  36  00  1E  00  1B  00  1D  00  36  00  1E  00  1B  00  1D  00  1B  00  1D  00  37  00  1D  00  1B  00  1D  00  1B  00  1D  00  1B  00  1D  00  1B  00  A1  00  6F  00  1D  00  37  00  1D  00  1B  00  1D  00  37  00  1D  00  1B  00  1D  00  37  00  1D  00  1B  00  1C  00  1B  00  1C  00  37  00  1D  00  1B  00  1C  00  1B  00  1C  00  1B  00  1C  00  1B  00  A2  00  70  00  1D  00  37  00  1C  00  1C  00  1C  00  37  00  1C  00  1B  00  1C  00  38  00  1C  00  1B  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  A1  00  70  00  1D  00  38  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  37  00  1C  00  1C  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  A1  00  70  00  1D  00  37  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  A0  00  70  00  1C  00  38  00  1C  00  1C  00  1C  00  38  00  1D  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  1C  00  1C  00  37  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  A1  00  70  00  1D  00  38  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  37  00  1C  00  1C  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1B  00  1C  00  A1  00  71  00  1C  00  38  00  1C  00  1C  00  1B  00  38  00  1C  00  1C  00  1C  00  38  00  1C  00  1C  00  1B  00  1C  00  1C  00  38  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C  00  1C
 IR Toy said:
 FF  FF
 writing test_000.bin

 Waiting..  Any key to exit..

 Recording ends..


 Thank you for playing with the IR Toy! Utility version: v21.[/font:]
Title: Re: IRToy questions
Post by: Barf on December 07, 2016, 08:26:26 am
The technical questions you ask are all answered in this document (http://http://dangerousprototypes.com/docs/USB_IR_Toy:_Sampling_mode).

Let me suggest that you try IrScrutinizer (http://http://www.harctoolbox.org/IrScrutinizer) in addition/instead of the command line commands. It support the IrToy and will let you receive, analyze, and send ir signals in a "slightly more user friendly" way.
Title: Re: IRToy questions
Post by: ecr on December 07, 2016, 03:13:42 pm
Hey - That's a great document!  Thanks!  Can't believe I didn't find it earlier...

Part of my project is transmitting via a C# program.  After reading the document, it looks like it's a simple matter of sending the right commands to the serial port.  Famous last words... lol

As far as IrScrutinizer, I'll take a look at that.  Did a quick peek and the Export functionality looks like it will come in handy!

( ! ) 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.00882061296session_write_close ( )...(null):0
20.00912192888ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00912193664Database_MySQL->query( ).../DatabaseHandler.php:119
40.05212332400Database_MySQL->error( ).../Db-mysql.class.php:273