Dobrica Pavlinušić's random unstructured stuff
USB IRToy v2: Revision 2
Firmware updateswitch to bootloader modedpavlin@blue:~$ microcom -p /dev/ttyACM0 connected to /dev/ttyACM0 Escape character: Ctrl-\ Type the escape character followed by c to get to the menu or q to quit # press $ to go into bootloader mode exiting flash new bootloaderhttp://blog.rot13.org/2013/04/usb-ir-toy---pic-18f2550-fw-update-under-linux.html https://github.com/dpavlin/fw_update dpavlin@blue:/blue/IR_Toy_v2/fw_update$ sudo ./fw_update -e -w -v -m flash -vid 0x04d8 -pid 0xfd0b -ix /blue/IR_Toy_v2/USB_IR_Toy/package/firmware/USBIRToy.v22.hex KERNEL[2043.192539] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0/0003:04D8:FD0B.0004/hidraw/hidraw3 (hidraw) KERNEL[2043.192578] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0/0003:04D8:FD0B.0004 (hid) UDEV [2043.193125] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0/0003:04D8:FD0B.0004/hidraw/hidraw3 (hidraw) UDEV [2043.193471] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0/0003:04D8:FD0B.0004 (hid) U2IO flash erasing: DONE. U2IO flash programming: DONE. U2IO flash verifying: DONE. RESET Device Operation successfully completed. dpavlin@blue:/blue/IR_Toy_v2/fw_update$ KERNEL[2050.735059] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0 (usb) KERNEL[2050.735221] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2 (usb) UDEV [2050.735472] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0 (usb) UDEV [2050.740325] remove /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2 (usb) KERNEL[2051.027388] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2 (usb) KERNEL[2051.027614] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0 (usb) KERNEL[2051.028152] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0/tty/ttyACM0 (tty) KERNEL[2051.028195] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.1 (usb) UDEV [2051.040379] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2 (usb) UDEV [2051.040997] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.1 (usb) UDEV [2051.042546] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0 (usb) UDEV [2051.046269] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.2/3-1.6.2:1.0/tty/ttyACM0 (tty) usehttps://github.com/myshen/IRToyRecPlay recorddpavlin@blue:/blue/IR_Toy_v2/IRToyRecPlay$ ./IRToy -d /dev/ttyACM0 -f lg-power -r -v 1 +-----------------------------------------+ |IR Toy Recorder/Player utility v21 (CC-0)| |http://dangerousprototypes.com | +-----------------------------------------+ Opening IR Toy on /dev/ttyACM0 at 115200bps... opening serial port /dev/ttyACM0 Setting up serial port... Initializing IR Toy... Asking for firmware version...(0/2)...wrote v... Firmware version: V222 Entering IRs sample mode...(0/2)...wrote S... IRs sampler version: S01 Current sample timer resolution: 21.3333us binary mode Recording at Resolution= 21.333300us Recording started. Press a button on the remote or any key to exit... got 512 bytes9E01 D300 1600 1D00 1600 1D00 1500 5200 1600 1D00 1500 1D00 1600 1D00 1500 1D00 1500 1D00 1500 5100 1700 5200 1500 1D00 1500 5200 1600 5000 1700 5200 1600 5100 1700 5100 1700 1D00 1500 1D00 1500 1E00 1500 5200 1500 1D00 1600 1D00 1500 1E00 1500 1E00 1500 5200 1600 5200 1500 5200 1600 1D00 1600 5100 1600 5100 1700 5200 1600 5200 1600 F208 9E01 D300 1600 1D00 1500 1D00 1500 5100 1700 1D00 1500 1D00 1500 1E00 1500 1D00 1600 1D00 1500 5200 1600 5100 1600 1D00 1500 5200 1700 5100 1600 5100 1600 5100 1600 5200 1600 1D00 1500 1E00 1500 1D00 1500 5200 1600 1D00 1500 1D00 1500 1D00 1500 1E00 1500 5200 1600 5100 1700 5100 1600 1D00 1500 5200 1600 5200 1600 5100 1700 5100 1600 6B07 9E01 6C00 1700 D012 9E01 D200 1700 1D00 1500 1D00 1500 5200 1600 1D00 1500 1D00 1500 1D00 1500 1E00 1500 1E00 1500 5200 1600 5200 1600 1D00 1500 5200 1600 5100 1600 5100 1600 5200 1600 5100 1600 1D00 1600 1D00 1500 1E00 1500 5200 1600 1D00 1500 1D00 1600 1D00 1500 1E00 1500 5200 1600 5100 1600 5200 1600 1D00 1500 5200 1600 5200 1600 5100 1600 5200 1600 6B07 9E01 6D00 1600 970A 9F01 D300 1600 1D00 1500 1D00 1600 5100 1700 1D00 1600 1D00 1500 1D00 1500 1E00 1500 1D00 1500 5200 1600 5100 1600 1D00 1600 5100 1600 5200 1600 5100 1600 5100 1600 5200 1600 1D00 1500 1D00 1500 1D00 1500 5200 1600 1D00 got 54 bytes1500 1E00 1500 1D00 1500 1E00 1500 5200 1600 5200 1500 5200 1700 1C00 1600 5100 1700 5100 1600 5200 1600 5100 1600 6B07 9E01 6D00 1600 got 2 bytesFFFF Captured command. Creating file: lg-power_000.bin Press a button on the remote or any key to exit... Recording finished. shutting down...wait for serial port to clear...done. playdpavlin@blue:/blue/IR_Toy_v2/IRToyRecPlay$ ./IRToy -d /dev/ttyACM0 -f lg-power -p -v 1 |