Continuing the discussion from Need logging or save to file for the serial monitor:
Please try my Google play App for monitoring deployed projects
Continuing the discussion from Need logging or save to file for the serial monitor:
Please try my Google play App for monitoring deployed projects
Nice idea, maybe add graphics. If so, need some sort of simple standardized format for the deployed project to configure the graphics and send the data. Something like set xlabel ...; set ylabel ...; set yrange ... ; set xrange ... ; data start followed by rows of x y1 y2 ...; and terminated by data done;
Good food for thought, if the data is in specific Json format.
I agree that JSON is an excellent data format from the perspective of machine readability. However, you might consider adopting the delimiter-separated (i.e., CSV) data format that has already been established for use with the Arduino IDE Serial Plotter:
Nice So
Let me try
Anticipate an image data type too.
Think about tabbed vs split display for graphics area and scrolled text, plus the one line for entering text to send to the "peripheral".
What you are doing, would be pretty fantastic actually. It would enable us to build portable instruments.
Might as well make a desktop version too.
And might as well anticipate that Bluetooth will be on the to-do list after the rest is working.
Really great. Thank you for taking up.the challenge. It can be a great contribution.
App has been updated, new features:
If you have already downloaded app; to Update from within App goto Menu, try to hit that Cat and look for update button, as Google may roll out with a delay.
That's great, but let us know when you have graphics.
A quick check of libraries for graphics found this:
And from that list, this looks like it has the right kind of graphs and nice appearance, at least at first perusal. You might want to check out how well it performs (latency, thru-put).
Regarding performance: Data can come as fast as the USB will deliver it. And, capture has to be 100%, until you canβt buffer or store it anymore.
But for graphical updates, you only need to be able to update as fast as a human can see it, so 20 Hz is probably enough.
One solution is to thread the graphics with a queue, and in the thread, maintain a fixed size history ring buffer with buttons for forward/back/first/last.
Update: For time being check line Graph, it can present upto three inputs in CSV format like 1,5,9 no labels. Chart is updated evey one second.
pfodApp uses AfreeChart
and accepts intermixed csv lines with varying number of fields,
Each line with the same number of fields is assigned to the same chart, allowing data for multiple different charts to be sent, intermixed.
There is an extensive selection of x axis settings including ms, time, real time (as set by the Android phone), UTC, and X-Y plots, with multiple plots on the same chart or with the plots shown on different plots against the same x axis.
Scaling can be fixed or auto.
The plots scroll as more data comes in. The number of points visible can be specified.
See pfodSpecification.pdf page 71 onwards. All the data is saved on the Android mobile for later downloading.
Here is the command used to display this plot as the data arrives
{=Temp / RH%~E MMM/dd HH:mm|Date|Temp C~32~17|RH%~82~40}
sample CSV data is
2550,24.62,69
32554,25.15,68
62201,25.67,67
92209,24.56,68
120194,24.74,68
150944,24.51,68
. . .
The pfodApp uses a start up msg to synchronize the Arduino ms with the Android real date and time.
This plotting works with Classic Bluetooth, BLE, SMS and WiFi on various Arduino devices.
With WiFi you can get about 2K samples / sec