Dobrica Pavlinušić's random unstructured stuff
USB IRToy v2: Revision 1

Firmware update

switch to bootloader mode

dpavlin@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 bootloader

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)