/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Beginner likes to now if i can use the Primer 2 to read a databasefile

Username:     
Password:     
             

Forum
  • Index
  •  » STM32 primer
  •  » Beginner likes to now if i can use the Primer 2 to read a databasefile

# 1   2009-02-04 09:57:44 Beginner likes to now if i can use the Primer 2 to read a databasefile

undergroundman
New member
From: Amsterdam, Netherlands
Registered: 2009-02-02
Posts: 4

Beginner likes to now if i can use the Primer 2 to read a databasefile

Hello,

i'm new to this so mayby a do ask dom things, sorry for that :-)

bud i like to now if i can read a database file (ASCII) from a SD card?
i like to make a program for the Primer2 that reads the data from a file and looks to the time
on the Primer2 and find the right information in the file.

It wil be used for my work, Public Transport, so i see what the time is to start driving and to see i'm still
on time on some places.
We now have it on paper but that is a big and havy book, so it wood be handy when i can use the Prime2 for it.

i did try to find some  commands in CircleOS bud didn't find any thing i can read the database on SD,
mayby i have to use GCC commands? and can i use the GCC commands for the Prime2?

The data is looking like this:

---
50-01  MR3    7:26:00   7:43:00   7:49:30    8:00:30 LK                        8:04:00    8:15:30   8:22:00   8:38:30
50-01  MR3    8:49:00   9:05:30   9:12:00    9:23:00 LK                        9:30:00    9:41:30   9:48:00   10:03:30
---

50 is the line number
01 is the car number
MR3 is the car type (not interesting)
And then the times we have to leave from a station


I didn't buy the Primer2, i just wand to now first if i can use it for this idea....

sorry for my bad english, i hope its right is did write hear...

thanks for helping me, bert, Amsterdam

Offline

 

# 2   2009-02-04 11:35:48 Beginner likes to now if i can use the Primer 2 to read a databasefile

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Beginner likes to now if i can use the Primer 2 to read a databasefile

We will update soon CircleOS V3.5 (improved by Sjoerd) that provides (through Circle_API) a file system. The new functions are:
FS_Mount,
FS_Unmount,
FS_OpenFile,
FS_ReadFile,
FS_WriteFile,
FS_Close,
FS_Seek,
FS_Delete,
FS_GetNextEntry,
FS_OpenDirectory,
FS_GetVolumeInfo.

You could use these functions to store the information you need.

Offline

 

# 3   2009-02-04 11:40:39 Beginner likes to now if i can use the Primer 2 to read a databasefile

undergroundman
New member
From: Amsterdam, Netherlands
Registered: 2009-02-02
Posts: 4

Re: Beginner likes to now if i can use the Primer 2 to read a databasefile

Great,

that's i did like to now, so now i can order my Primer2 and start learning and trying to get it work...

thanks for the answer,
                                     Bert

Offline

 

# 4   2012-02-03 12:22:41 Beginner likes to now if i can use the Primer 2 to read a databasefile

tolgamyth
New member
Registered: 2011-05-27
Posts: 2

Re: Beginner likes to now if i can use the Primer 2 to read a databasefile

If you made your project working, could you please share the codes with comments or some important aprts of your code? so we would have been how to use database.... thanks anyway...

Offline

 

# 5   2012-03-20 01:29:53 Beginner likes to now if i can use the Primer 2 to read a databasefile

seb
New member
Registered: 2012-02-22
Posts: 6

Re: Beginner likes to now if i can use the Primer 2 to read a databasefile

I played with OP4 primer and inserted a 8 GB SD Card (below 4GB it's gone), and it did not seem that the SD card example application could read it. New high capacity SD cards don't support the SPI 1 bit mode anymore. Any truth in this?

Offline

 

# 6   2012-03-20 08:04:28 Beginner likes to now if i can use the Primer 2 to read a databasefile

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Beginner likes to now if i can use the Primer 2 to read a databasefile

We tried a 16 Gb SDCard with success. The card can be explored with the Open4.
Contrariwise a little bug in ST F2xx Library do that the card is not detected in mass storage mode, because of the overflow of a 32 bit register that contains the capacity of the card, in bytes.

Offline

 

  • Index
  •  » STM32 primer
  •  » Beginner likes to now if i can use the Primer 2 to read a databasefile

Board footer