Offline
Newbie
Karma: 0
Posts: 46
|
 |
« on: July 03, 2012, 07:09:41 am » |
i am trying to work with ethernet shield with sd card.
i need to use the database to store my datas.
Is it possible to use the database in storing my datas in the sd card.
Please help me with the simple sample programs.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 316
Posts: 35519
Seattle, WA USA
|
 |
« Reply #1 on: July 03, 2012, 08:57:54 am » |
i need to use the database to store my datas. What database? Is it possible to use the database in storing my datas in the sd card. What database? A relational database consists of a lot more than just data storage. Please help me with the simple sample programs. There are simple samples (provided) for reading and writing to SD cards. Creating a database application that uses the SD card as the data repository is possible but not simple.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #2 on: July 03, 2012, 10:26:45 am » |
What database? i am planning to use SQL for data base. I am planning to send data from android mobile and it should receive in router to eternet shield and it shold store the data in the exact tables in the data base. Is the things possible.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 316
Posts: 35519
Seattle, WA USA
|
 |
« Reply #3 on: July 03, 2012, 12:23:04 pm » |
i am planning to use SQL for data base. SQL stands for Structured Query Language. It is not specific to any particular relational database. I am planning to send data from android mobile and it should receive in router to eternet shield and it shold store the data in the exact tables in the data base.
Is the things possible. Not unless you intend to develop a relational database program for the Arduino. Doing so in 32K of program space with 2K of SRAM will be a real challenge.
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Faraday Member
Karma: 43
Posts: 2515
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #4 on: July 03, 2012, 12:26:47 pm » |
I like to say that anything is possible, given enough time and money, but an Arduino is probably not going to be capable of running an SQL database. Given that, I don't see a need for an Arduino at all from the rather brief description here. Just have the Android device send the data directly to the database server and cut out the middle-man.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #5 on: July 03, 2012, 12:33:52 pm » |
SQL stands for Structured Query Language. It is not specific to any particular relational database. i am new to relational database. Do you have any sample program for the relational database. Not unless you intend to develop a relational database program for the Arduino. Doing so in 32K of program space with 2K of SRAM will be a real challenge. i luv challenge. You are making me interested in this. But i need help too.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 316
Posts: 35519
Seattle, WA USA
|
 |
« Reply #6 on: July 03, 2012, 12:39:41 pm » |
Do you have any sample program for the relational database. MySQL, Postgre/SQL, SQLServer, etc. are all examples of relational databases. i luv challenge. You are making me interested in this. But i need help too. Including realistic expectations. You are probably better off figuring out how to use individual flat files as substitutes for each table.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #7 on: July 03, 2012, 12:48:26 pm » |
Just have the Android device send the data directly to the database server and cut out the middle-man.
I am in a need to store the datas in a external storage device. so i prefer sd card in ethernet shiled with sql or any data base
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Faraday Member
Karma: 43
Posts: 2515
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #8 on: July 03, 2012, 12:53:22 pm » |
Just have the Android device send the data directly to the database server and cut out the middle-man.
I am in a need to store the datas in a external storage device. so i prefer sd card in ethernet shiled with sql or any data base Isn't a database server an external storage device? If you want to sneaker-net the data around, then download it from the database to a flash drive.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #9 on: July 03, 2012, 01:01:38 pm » |
then download it from the database to a flash drive.
can you send me a simple web sever sketch in ethernet with sd card storage in it.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 6
Posts: 462
|
 |
« Reply #10 on: July 03, 2012, 01:19:47 pm » |
I think that is impossible process sql instruction directly from Arduino,without database server(or a pc)..for example sqlite library,which is a very small implementation of sql ,requires more than 100kb.. In my opinion,u have two option: - Use a flat file(like .dat,.txt,.csv) on the sd card - use a database server installed in some pc(or also in a router with openwrt,if is possible),the Arduino could build the SQL string and pass them to the pc..but it required ethernet shield(or other type of conection)
|
|
|
|
« Last Edit: July 03, 2012, 01:21:46 pm by m_ri »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #11 on: July 03, 2012, 01:42:55 pm » |
In my opinion,u have two option: - Use a flat file(like .dat,.txt,.csv) on the sd card - use a database server installed in some pc(or also in a router with openwrt,if is possible),the Arduino could build the SQL string and pass them to the pc..but it required ethernet shield(or other type of conection)
Please send me a sample code which accesses the data from the client side in this ethernet and router connection.
|
|
|
|
|
Logged
|
|
|
|
|
|