[En-Nut-Discussion] Web Charts? Use java?

José Vallet jose.vallet at hut.fi
Tue Feb 21 13:13:47 CET 2006


Hello Tim

That is exactly what I am doing.

What I have at the moment:

ETHERNUT SIDE: http server + web page with an applet inside

DESKTOP SIDE: web browser with Java.

I am reading ADC data from Ethernut and sending it to the applet through 
a socket on real time. I use the library jchart2d for the charts 
http://jchart2d.sourceforge.net/

I chose it because its simplicity compared to others and because it was 
exactly what I wanted.

The resulting applet is packed in a .jar file with all the needed 
classes, and after that optimized and obfuscated for optimal code size 
using proguard (this step shrinks the applet size in about 30%!). That 
has proved to be the best for me, although it took me a while to make it 
work (I am a Java beginner).

As the size of the applet is growing, I use the serial memory for 
storing it (xflash from Michael Fischer), and it works nicely for me. 
That gives me up to 512 Kbytes for the GUI, which is a lot!!

Hope it helps. If you have any further question, don't hesitate asking! 
I am not an expert but that is what I am doing.

If you want an example I could send you some code, although a bit messy 
(but working).

Regards
José

Tim Tait wrote:
> 
> Has anbody done anything with serving dynamic data charts from ethernut? 
> I want to to display simple line graph of sensor readings over time. I 
> am thinking that a java applet is the way to go. Most of the applets out 
> there seem to big, one "tChart" seems reasonable at 17kb, put you have 
> to pay to get source. Is there another way?
> 
> Thanks-
> 
> Tim
> 
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 
> 





More information about the En-Nut-Discussion mailing list