Issue #095 [New/open] - New driver for DS2413 added and updated version of DS2408 driver available

Posted by andreas.riegg

I have coded a driver for DS2413 (connecting to the kernel driver for it like with the other 1-wire devices) and updated the DS2408 driver.

Find the changed files attached and feel free to update trunk.

Drivers are compatible with 0.7.0 release and the latest Raspbian version of Jan 2014 and can be used right away by updating the files and calling setup.sh once again. Make sure to use that version of Raspbian, earlier versions may not have the needed kernel drivers included or incompatible versions of them.

Drivers have been tested with 1-wire GPIO 4 kernel module and with DS2482-100 kernel module.

Andreas

Files attached


Comment 1

Posted by andreas.riegg

I fixed some small bugs and refactored the 2408 part of the driver. Now, 90% of the code is within the 2408 class and only the small additions necessary to support the 2413 also are within that class.

This driver now implements the digital read/write concept described in issue 96 as this proved to be much more stable when updating floating output ports from the device monitor.

All other info remains unchanged from my first post on this issue.

Andreas

Files attached