Results 1 to 8 of 8

Thread: M4-ATX tools for Linux

  1. #1
    Newbie
    Join Date
    Jan 2010
    Posts
    8

    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. #2
    Newbie
    Join Date
    Jan 2010
    Posts
    8
    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

  3. #3
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote 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.

  4. #4
    Newbie
    Join Date
    Jan 2010
    Posts
    8
    Quote 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).

  5. #5
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    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.

  6. #6
    Newbie
    Join Date
    Jan 2010
    Posts
    8
    Quote 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:
    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

  7. #7
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    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.

  8. #8
    Newbie
    Join Date
    Jan 2010
    Posts
    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).

Similar Threads

  1. Everything You need to know about your M4 ATX
    By Fox_Mulder in forum Power Supplies
    Replies: 296
    Last Post: 09-10-2014, 01:36 PM
  2. Review: M4-ATX 250 Watt Intelligent Power Supply
    By Bugbyte in forum The Review Palace
    Replies: 11
    Last Post: 12-21-2009, 08:52 AM
  3. m4 ATX power supply question
    By icet in forum M4-ATX
    Replies: 4
    Last Post: 07-23-2009, 09:43 AM
  4. M4 ATX problems and questions
    By Dgr8wun in forum Power Supplies
    Replies: 4
    Last Post: 01-31-2009, 12:00 PM
  5. M4 ATX Turn On Problem
    By Fox_Mulder in forum Power Supplies
    Replies: 26
    Last Post: 12-31-2008, 07:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •