Properly parsing ir command from device. debuging with uart