Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - Floppy

4
USB Infrared Toy / Re: Fixed overflow bug in Sample mode in Firmware 2.4
The bug in my setup was that very often in sampling mode (using usb_irtoy driver in lirc) the device returned a 0xffff message which is a long space. It appeared that this was in many cases caused by the device sending three times 0xfff (see manual) which indicates an overflow: the device is producing more data than it can feedback to the host.
LIrc trips over this because it thinks the 0xffff are long spaces .
After examining the mechanism between interrupt handler and main loop, I fond out there is a critical timing problem in the software. By fixing this, there is more time to transport the data to the host.
I am using a Raspberry pi model 2 which is pretty fast but I still had this overflow problem. The problem might not be occurring on other setups.
I also fixed the usb_irtoy driver to cope with this overflow more gracefully.

See sources attached: [attachment=0]
9
USB Infrared Toy / Fixed overflow bug in Sample mode in Firmware 2.4
In my setup it was running into overflow mode every other minute or two.
I took the version 2.2 firmware sources as a base and fixed the sampling mode by changing the interrupt routine.
It now runs flawlessly in sampling mode - didn't change anything else but also didn't test the other modes.
Using usbirtoy hardware verion 2, running on a RaspberyyPi model 2 B with Lirc 0.9.0 with the patches applied of Peter Kooiman to support Usb_Irtoy.
I called the firmware version V2.4 as somebody else already posted V2.3. I did use V2.2 as a base.
Obviously, this is a beta release at your own risk! It works for me though.


[attachment=0]

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01312351448session_write_close ( )...(null):0
20.01342483024ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01342483800Database_MySQL->query( ).../DatabaseHandler.php:119
40.05832622520Database_MySQL->error( ).../Db-mysql.class.php:273