I altered the niceness of the lirc daemon to -20 (ie max prioirity) and also tried running the irsend command with the same -20 niceness and this had no effect :'(
I am still getting the same errors, the device is still falling into debug mode, and the lirc daemon is still crashing.
Has anyone else tried this? Or any other solution?
I just want to report that I am having the exact same problem.
I purchased a stack of the usb irtoy v2 for a project involving control of airconditioner units and am being stumped by all of them (at least 5 that i have tried) displaying the same behaviour. I am using lirc v0.9.1 in linux (raspbian) and have updated the usb irtoy firmware to v23.
Upon physical connection of the usb irtoy, lirc's "irsend" command will work a few times, and then on a subsequent attempt the lircd daemon will crash. Any following use of irsend produce the error: irsend: could not connect to socket irsend: Connection refused
I don't have a huge amount of programming experience, but i can say that I am receiving the same error messages in the lirc log: lircd: accepted new client on /var/run/lirc/lircd lircd: irtoy_getversion: couldn't read version lircd: please make sure you are using firmware v20 or higher lircd: usb_irtoy: No USB Irtoy device found at /dev/ttyACM0 lircd: WARNING: Failed to initialize hardware lircd: select() failed lircd: Bad file descriptor
The last few lines of "lsusb -v -d 04d8:fd08" show: [...] Device Status: 0xd458 (Bus Powered) Debug Mode
...but if i repeat this command the "Device Status" keeps changing to various values ending in 458...I have seen 1458, 3458, 5458, 6458, 7458, 8458, 9458, a458, b458, d458, e458, all within a few seconds of eachother (not in order). I'm not sure if that is of any significance
... when the devices is working normally the same lsusb command gives: [...] Device Status: 0x0000 (Bus Powered)
I physically unplug and replug the usb irtoy and manually restart the lircd daemon, and it all works again for 1, 2 or 5 uses. But if i want this to be a stable remote system for controlling the airconditioners, having to physically unplug/replug the irtoy doesn't really cut it.
I would appreciate any assistance anyone could provide! :)