Page 1 of 1

[SOLVED] BasicLog example - maximum items in logConfig

Posted: Sun Aug 23, 2020 3:53 pm
by wydmynd
I am trying to log about 20 variables over radio/USB ,
when trying to log over 6 items (float) in one logConf element or block , I get an error.
looking at log.py could not understand where the limit is originating from. the length of a log packet (30) ?
it is possible to add multiple log blocks in parallel , but seems like a strange solution.

Re: BasicLog example - maximum items in logConfig

Posted: Mon Aug 24, 2020 9:54 am
by kimberly
The limit for one log block is 26 bytes. 6 floats is already 6 x 4 bytes = 24 bytes so if you add more floats you will indeed get issues. We do have an issue open about this since this already seem to happen at only 25 bytes, but 20 x 4 bytes is already way over the limit.

Your only solution is to add multiple log blocks in parallel. If you don't mind that the measurements of different log blocks are not exactly send at the same timestamp, that it should not be a problem. It is just the limitation of what a radio packet can send so unfortunately not much more that we can do about it.

Re: BasicLog example - maximum items in logConfig

Posted: Tue Aug 25, 2020 6:38 am
by wydmynd
OK thanks!
I suggest adding that to the documentation

Re: [SOLVED] BasicLog example - maximum items in logConfig

Posted: Tue Aug 25, 2020 8:54 am
by kimberly
Yes I agree it should be in the documentation. I will add it there soon!

Re: [SOLVED] BasicLog example - maximum items in logConfig

Posted: Mon Sep 14, 2020 6:20 am
by Calvin Chua
Hi, is there any sample code or tutorial on parallel logging please?

Re: [SOLVED] BasicLog example - maximum items in logConfig

Posted: Wed Sep 16, 2020 8:25 am
by kristoffer
See this post for an example viewtopic.php?f=11&t=4450

Re: [SOLVED] BasicLog example - maximum items in logConfig

Posted: Sun Sep 20, 2020 8:40 am
by wydmynd
Hi, so in light of recent updates to the logging code in cflib, just wanted to make sure that synclogger is the only way (or recommended way) to log a large amount of variables at once?
didn't exactly understand the improvement in the logging functionality .
Thanks!