C/C++ API to log from SmartPower3

Post Reply
miele
Posts: 4
Joined: Tue Sep 02, 2014 8:53 pm
languages_spoken: english, italian
ODROIDs: odroid xu3 and xu4
Has thanked: 0
Been thanked: 0
Contact:

C/C++ API to log from SmartPower3

Post by miele »

hi,
is there any C/C++ API to read power measures from the SmartPower3 as there was for the original SmartPower? I need to read power values at runtime from a C++ program and using minicom may be a bit tricky....

thank you.

rpgfun
Posts: 20
Joined: Wed Dec 29, 2021 4:10 am
languages_spoken: english
ODROIDs: HC1, HC2, C1, SP3
Has thanked: 4 times
Been thanked: 10 times
Contact:

Re: C/C++ API to log from SmartPower3

Post by rpgfun »

Hi,

it is plain CSV from a serial line. You will find plenty of examples for that. The tricky part is to make it robust, i.e. identify incomplete lines and such. But I am sure somebody already has solved this for CSV-files.

Post Reply

Return to “Smart Power”

Who is online

Users browsing this forum: No registered users and 1 guest