Serial logging-- bug?

Started by mayor, March 31, 2021, 07:21:07 PM

mayor

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!



Any insight?

Felix

Looks like a e9 instead of e-9.
Do you have the serial value that caused that?

mayor

#2
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:


mayor

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