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
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