Pages: [1]   Go Down
Author Topic: WiFly/WifI WebServer  (Read 1122 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All.
I am/have been working on a data-logger graphing device for RS232 Devices. and i want to bring it into the 21 century by adding WiFi capability. its running on an Arduino Mega 1280 (hopefully will be updating to the Due in some time). I have an RN-XV wifi socket that i plan to use. I am hopeing to beable to do 2 things with it.

1. host a website. that is self updating with streaming data. (data comes in once every 30+seconds) that has a graph of all the data. and That can select between different files on the sd card to graph and display. (only the newest file will have new data).

2. send an email/notification somehow when the data is below a set point.

My question is what is the most complete library to start from? compatible with Arduino 1.0.1 or greater.
Also is it even posible for the RN-XV/WiFly to upload data from an SD Card?

Thank you.
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 108
Posts: 5145
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To generate graphs the Mega1280 is not equipped with enough RAM. You'll get such things a lot cheaper if you use one of the routers capable of running OpenWRT, there you have all the graphing utilities you need for such stuff and the WiFi for free. If you buy one with an USB port you can connect a simple Arduino (like the UNO) to do the low level stuff.

Quote
Also is it even posible for the RN-XV/WiFly to upload data from an SD Card?

Yes, this is possible but it won't be very fast.

If you wanna use your RN-XV, use it only for the data transfer to a web server and do all the graphical stuff there.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i was hoping to beable to use RGraph.net on the Arduino. Tied in with AJAX. (i am clueless on website stuff.) so its not realy graphical.

I understand the limits of ram, expecialy since i already have an LVDS 3.2" display and touch screen running, displaying a graph, parsing data from an RS232 DataStream, calculating max, min, avg, and St.Dev, on the fly. adding Unix timestamp and saving to an SD Card and printing on a thermal printer.

I figured a website wouldnt use much RAM. all the files/data stored on the SD Card. when a request for one of the pages is made the arduino responds with that page. if its a request for the active file, the requested page would poll for new data periodically.
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 108
Posts: 5145
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This way your doing the graphical stuff on the client. This is possible but still the Arduino with the RN-XV is limited to about 10kB/s because it's communicating over the USART with the Arduino. The libraries folder of RGraph.net is about 1.6 MB. If the client has to pull all the stuff contained there it needs about 3 minutes just to get that from the Arduino. So although your idea is possible it's not practical. If you use another web server and just get the data from the Arduino, you're fine because transferring the data doesn't need that much bandwidth.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok thank you. for now i will just stick with serving up data, and CSV files. ill figure out something at a later point.
Logged

Pages: [1]   Go Up
Jump to: