16
USB Infrared Toy / Re: IRToy crashing after a few send attempts
Anyway, no point in arguing when results speak for themselves.
I went into my copy of irtoy.exe and changed a single value from 64 (62 in older revisions?) to 512. I ran the new irtoy.exe with the 512 byte packets and it worked with the bog standard irtoy firmware V22.
Code: [Select]
c:simmosoftwareIRToyRecPlaybinwindowsDebug>irtoy.exe -d COM
4 -p -v -f rec.bin_000.bin -c -h off
-------------------------------------------------------------------------
IR TOY Recorder/Player utility v21 (CC-0)
-------------------------------------------------------------------------
Opening IR Toy on COM4 at 115200bps...
IR Toy Firmware version: V222
Entering IR sample mode .... Done.
IR Toy Protocol version: S01
Current sample timer Resolution: 21.3333us
Entering Player Mode
Playing single file rec.bin_000.bin
Press a key to start playing rec.bin_000.bin or X to exit
Handshake mode OFF. IR Toy ready for packet of 512 bytes
Sending 144 Bytes to IRToy...
01A6 -00D6 001A -001C 0019 -001C 0019 -001B
001B -001B 0019 -001D 0018 -001C 001A -001B
001A -001C 0019 -0050 001A -0050 001A -0051
0019 -0050 001A -0050 001B -0050 0019 -001C
001A -0050 001A -001B 001A -0051 0019 -0050
001A -001C 0019 -0051 0019 -001D 0018 -001B
001B -001B 001A -004F 001B -001B 001A -001D
0018 -0051 0019 -001D 0018 -0050 001A -0050
001A -0052 0018 -0793 01A5 -006E 0018 -FFFF
Checking # of bytes sent.... 144 bytes....ok.
End of file reached: rec.bin_000.bin
Firmware reported 144 bytes received, file was 144 bytes Ok - Proceding!
Transmit was successful and glitch free!
Thank you for playing with the IR Toy! Utility version: v21.
Okay, it is clear that my copy of irtoy.exe has been somewhat reworked but most of that is cosmetic and it is the same protocol under the hood and there is no reason I can see why changing the non handshake chuck size to 512 or larger will not work on the official irtoy source code that is in the irtoy package.