LowPowerLab Forum

Hardware support => CurrentRanger => Topic started by: mayor on March 31, 2021, 07:21:07 PM

Title: Serial logging-- bug?
Post by: mayor on March 31, 2021, 07:21:07 PM
Hi,

as you know, I've been logging data in Grafana from serial output. It looks like I am sometimes (though rarely) getting insane values. See below. Doubt I'm generating nearly a Giga Amp with my coin cell!

(https://i.ibb.co/BC98B8g/Screen-Shot-2021-03-31-at-7-20-19-PM.png)

Any insight?
Title: Re: Serial logging-- bug?
Post by: Felix on March 31, 2021, 07:38:28 PM
Looks like a e9 instead of e-9.
Do you have the serial value that caused that?
Title: Re: Serial logging-- bug?
Post by: mayor on March 31, 2021, 07:41:38 PM
Hi Felix,

disclaimer: I don't do any validation and assume the only data coming out of serial is current consumption. Do I need to add validation?

Value:

(https://i.ibb.co/L6yxDmQ/Screen-Shot-2021-03-31-at-7-40-17-PM.png)
Title: Re: Serial logging-- bug?
Post by: mayor on March 31, 2021, 08:29:41 PM
Hmmm, looks like serial data garbling. I'll lower baud rate and see if it helps.


66e-9ata output: 81.16e-9
non-data output: 74.3-9