Announcement

Collapse
No announcement yet.

M4-ATX tools for Linux

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • M4-ATX tools for Linux

    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

  • #2
    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

    Comment


    • #3
      Originally posted by knyt View Post
      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
      why not libusb 1.0?
      Former author of LinuxICE, nghost, nobdy.
      Current author of Automotive Message Broker (AMB).
      Works on Tizen IVI. Does not represent anyone or anything but himself.

      Comment


      • #4
        Originally posted by kev000 View Post
        why not libusb 1.0?
        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).

        Comment


        • #5
          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,
          Former author of LinuxICE, nghost, nobdy.
          Current author of Automotive Message Broker (AMB).
          Works on Tizen IVI. Does not represent anyone or anything but himself.

          Comment


          • #6
            Originally posted by kev000 View Post
            What exactly is WRITE_ENDPOINT/READ_ENDPOINT ? Where did you get those values?
            Those are from `lsusb -v':
            Code:
            [email protected] ~ $ 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

            Comment


            • #7
              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 )?
              Former author of LinuxICE, nghost, nobdy.
              Current author of Automotive Message Broker (AMB).
              Works on Tizen IVI. Does not represent anyone or anything but himself.

              Comment


              • #8
                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).

                Comment

                Working...
                X