m4api, a tool for monitoring and configuring your M4-ATX PSU from Linux, is now available at http://ram.umd.edu/wiki/Public/Software/m4api
See 'Power Supplies' thread: http://www.mp3car.com/vbulletin/powe...ols-linux.html
Printable View
m4api, a tool for monitoring and configuring your M4-ATX PSU from Linux, is now available at http://ram.umd.edu/wiki/Public/Software/m4api
See 'Power Supplies' thread: http://www.mp3car.com/vbulletin/powe...ols-linux.html
m4api now supports Mac and BSD, as it has been modified to use libusb (0.1) instead of hiddev.
$ git clone git://ram.umd.edu/bits/m4api.git
mostly because I was already somewhat familiar with 0.1 from working on the Mac/Linux Carnetix CNX-P2140 driver. Also, 0.1 is more commonly available/used than 1.0 is (or so the libusb website says).
A couple questions. I'm trying to code up a library for the dcdc-usb psu from mini-box using your code and their code as an example. What exactly is WRITE_ENDPOINT/READ_ENDPOINT ? Where did you get those values?
Thanks,
Those are from `lsusb -v':
Code:ram@agv1 ~ $ sudo lsusb -v
[...]
Bus 005 Device 003: ID 04d8:d001 Microchip Technology, Inc.
[...]
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
[...]
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
Awesome, thanks! Great work. Also, do you mind if I package this up for inclusion in LinuxICE (or maybe you could do the debian control/copyright/etc for it and I'll build and package it )?
I've added support for more programmer-friendly API calls; you can now get/set configuration values using just your standard system integer and float. There's also an m4Diagnostics structure that you can fetch. It includes all of the voltage and temperature readings in normal float/int format.
I'm checking out the debian packaging... (no objection to it).