Giter VIP home page Giter VIP logo

pmbus_peek's Introduction

pmbus_peek's People

Contributors

jktjkt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pmbus_peek's Issues

vout Value

Hi,
thanks for your efforts @jktjkt .

After checking 4 different repos in order to get some pmbus readings at all, this here was the only one which worked for me.

I'm using it for a Dell D1600E-S0

which seems to be the same as DS1600SPE-3 - detailed documentation can be found here:
https://www.artesyn.com/power-supplies/product-docs/508/ds1600spe/trn_ac-dc_ds1600spe-3_trn_rele1413032695_techref.pdf

I had an issue with the vout value (screenshot attached).
And solved it by dividing the value by 512. I changed the code like this:

... (@line ~1710) of pmbus_peek.c

case 0:
  if (op->units == BITS) {
          printf("(BITMAP)");
  } else {
          double  d = value & 0x03ff;

Change:

         if (strstr(name, "vout")) {
                  d = value / 512.0;
          } else {

(Unchanged, just added the corresponding bracket "}" )

                  /* LINEAR encoding:
                  *  - 11 LSBs are signed mantissa
                  *  - 5 LSBs are signed exponent
                  */
                  if (value & 0x0400)
                          d = -d;
                  if (value & 0x8000)
                          d /= 1 <<
                                  (0x0f + 1 - (value >> 11) & 0x0f);
                  else if (value & 0x7100)
                          d *= 1 << (value >> 11);
          }
          printf("%g", d);
  }
  break;

Bests
Konrad

before
after
vm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.