Hi, I have mentioned previously on this list, that we'd like to make sigrok the user interface for our power-measurement device ACME: (http://baylibre.com/acme/).
ACME is different from most other devices supported by sigrok in that it's a BeagleBone Black cape connected via i2c. It's only supported on Linux and the user-space interface is exported via sysfs by ina226 and tmp435 compatible drivers. Our sigrok driver talks to these components via sysfs hwmon interface. From libsigrok point-of-view it's simply reading/writing to files. We would like to merge an initial driver implementation in order to make it available for our beta-testers. The first patch implements a basic driver with common sigrok configuration options. The second adds a new option - shunt resistance setting. This is needed as Linux has no way of knowing what kind of resistor is integrated with the probe (in fact it doesn't have to be integrated at all - some of our beta-testers use SoC on-board resistors when measuring power-consumption). The second patch requires our changes in the Linux drivers, which are now in hwmon-next tree and will be available in 3.20 mainline. Additionally we merged a set of patches with upstream Buildroot, which allow to build a sigrok-enabled BeagleBone Black image automatically. This saves a lot of hassle with cross-compiling. More patches will follow. Certain types of ACME probes are equipped with power-switches allowing to remotely power-off/on measured devices. I'll implement support for these as well. All reviews are welcome - especially when concering the usage of sigrok API. Best regards, Bartosz Golaszewski Bartosz Golaszewski (2): acme: new driver acme: implement shunt resistance setting Makefile.am | 4 + configure.ac | 11 + include/libsigrok/libsigrok.h | 6 + src/drivers.c | 6 + src/hardware/acme/acme.c | 896 ++++++++++++++++++++++++++++++++++++++++++ src/hwdriver.c | 2 + 6 files changed, 925 insertions(+) create mode 100644 src/hardware/acme/acme.c -- 2.1.4 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel