Skip to content

Getting wrong readings time to time #2

Description

@josepmon

Dear all,

Right now I've started playing with this sketch in order to connect and Arduino Nano with an OpenUPS and read some values from it (voltage, av. current, av. time to full, capacity, etc.).

I follow the default I2C configuration for this purpose, using Arduino A4 and A5 to connect to OpenUPS SMBUS. Then, by running PackProbe, initially everything works as expected. The scan function detects the OpenUPS address.

Then, when time comes for reading values from OpenUPS, I'm having some incoherence reading time to time. Of course, the OpenUPS is not ready to display all the information that PackProbe defines, but for the parameters that are allowed, time to time I'm getting a wrong value (always -15134).

Example: I'm reading a capacity value of 2600mAh (which is the expected value). Then, at some loop, I'm getting a capacity value of -15134.

I'm finding this randomly in all the parameters read. Any idea of which could be the reason?

Thanks

Josep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions