Ewon TechForum
Providing technical solutions to technical requests


Increase eWon's memory storage
phongpham Offline
Junior Member
#1
Hi all,

I have a question regarding to the eWon Flexy's system storage. From the General Reference Guide, the maximum physical flash memory in the eWon is 128 MB and for recording data is 19MB. Our application is needing more recording data storage.
I was wondering if we can use the integrated SD as an additional storage?

Please let me know.
Thank you very much.
Reply

simon Offline
eWON Support
#2
No, at the moment, it is not possible to use the SD card to extend the eWON memory.
The SD card is only used to configure the eWON : https://ewon.biz/support/content/aug-062...ed-sd-card

I am wondering why you need more than 1 000 000 records stored locally ?
Do you intend to push these data to a central server somehow ?
Reply

phongpham Offline
Junior Member
#3
Hi Simon,

Our analytic system is collecting ~50 sensors at 1Hz and we need at least 3 days of historical data locally.
All the historical data are logged into the eSync server and MySQL on our cloud.
we're currently developing a web interface on eWon web server, and historical/ real time data trends are one of the most important features for us.
Can we write some php script to query the data from the cloud to the eWon's embedded web server for the web client's display?
Reply

simon Offline
eWON Support
#4
Is "50 sensors at 1 Hz" mandatory ? You could maybe record the Tags on deadband (when the value changes) ?
Retrieving data from eSync is not possible as it is (there is no existing php script for that), neither a good idea to my point of view. It is better to create your Web Interface (Trends...) on the central side or use a third party software.
Reply

Kevin Offline
Junior Member
#5
(16-06-2016, 09:39 PM)phongpham Wrote: Hi Simon,

Our analytic system is collecting ~50 sensors at 1Hz and we need at least 3 days of historical data locally.
All the historical data are logged into the eSync server and MySQL on our cloud.
we're currently developing a web interface on eWon web server, and historical/ real time data trends are one of the most important features for us.
Can we write some php script to query the data from the cloud to the eWon's embedded web server for the web client's display?

Hello phongpham,

This solution depends on your specific needs; but it may work so I'll toss it out there.
The general idea is to limit data to what will actually give you useful data points. For instance, if I have a graph like the following:
Code:
Time, Value
1s, 5
2s, 6
3s, 7
4s, 8
5s, 9
6s, 9
7s, 9
8s, 8
7s, 7
...

You could imagine this graph may repeat and I'll have regular peaks, troughs and generally uninteresting data inbetween.
The question I should ask myself is: What information do I ACTUALLY need to know.

So, in the case of sensors, there's several different rules you could use to limit the amount of data you are receiving.

1. Deadband
Simon already mentioned this.
In reference to my graph, I could set a dead band of 2 and cut the information in half. IE:
Code:
Time, Value
1s, 5
3s, 7
5s, 9
7s, 7
...


2. Min and Max
This greatly depends on the analysis of the information you are trying to achieve. 
For some, it might suffice to grab min and max values over time. IE:
Code:
Time, Min, Max:
1s, 5, 5
2s, 5, 6
3s, 5, 7
4s, 5, 8
6s, 5, 9
...



3. Grab Only Peaks
Again, depending on the general trend of information, this may or may not be useful.
If you can access the program that is monitoring the sensors, you could keep an array of the past 5-10 records and simply pick the peak/trough to get recorded.

Code:
Time, Value
1s, 5     <--- Picked as trough
6s, 9     <--- Picked as peak
7s, 7     <--- Picked as trough
...


Depending on the specific data you need, you could create your own set of rules to eliminate as much redundant data as possible and extract useful information.
The methods I mentioned are fast, easy to implement and very inexpensive. There are many, many other ways to analyze data and attempt to pick out valuable points.
Reply

jhinsch Offline
Junior Member
#6
Hi,
it would be nice if you can make a calculator in the WEB interface/GUI.
So you easily can see how much storage you are using and how many hours / days there is storage for.
Br, Jacob
Reply

Jean-Yves Offline
eWON Support
#7
Hi,
Here find an excel sheet to know how much storage you are using and how many hours 

[Image: attachment.php?aid=22]


[Image: attachment.php?aid=19]




Attached Files
.png   2016-07-28_12h43_29.png (Size: 38,96 KB / Downloads: 448)
.png   2016-07-28_12h35_34.png (Size: 56,79 KB / Downloads: 436)
.xlsx   Time_loggins_Table.xlsx (Size: 12,51 KB / Downloads: 90)
Reply

mibu Offline
Junior Member
#8
Hello,

according FW release notes, Version 12.0s0 supports "User partition space extension with the SD card (EXT3)".

I read this documentation, but there is no word about logging.
Since I have no Flexy around for a test, I wonder, if the maximum amount of records is still 1.000.000?

Due to occasional bad 3G coverage, it's for me as well important to store more than that (until eSync DataMailbox is available again).

Regards, Michael
Reply

simon Offline
eWON Support
#9
Michael,

Yes, it is still 1.000.000 timestamp records max.
The Extended User Memory (SD card) is used for storing files/reports (CSV files, Camera images,... for example) and not for extending the historical memory.

So, you can export the historical data to the SD card in the form of files using scripting (https://techforum.ewon.biz/thread-216.html) but there is no way to "restore" these exported data to the internal historical data memory of Flexy so that these data can be exported to DataMailBox or eSync transparently.

Regards
Reply



Possibly Related Threads…
30-03-2020, 03:39 PM
Last Post: Nicolas
16-01-2020, 12:09 PM
Last Post: big_ben68
15-11-2019, 12:14 PM
Last Post: simon
22-10-2019, 10:34 AM
Last Post: simon
22-10-2019, 10:32 AM
Last Post: simon
27-08-2019, 10:53 AM
Last Post: simon
31-07-2019, 02:22 PM
Last Post: jswenker
12-04-2019, 04:14 PM
Last Post: ta2mix
  Memory allocation in flexy Started by Vineet
1 Replies - 953 Views
30-03-2019, 04:43 PM
Last Post: simon
11-02-2019, 09:06 AM
Last Post: ssmanku1699



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy