Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Do we have the file format for the database files?
« previous next »
  • Print
Pages: [1]

Author Topic: Do we have the file format for the database files?  (Read 2228 times)

Offline sadffffff

  • Member
  • *
  • Posts: 52
Do we have the file format for the database files?
« on: September 12, 2007, 11:26:06 PM »
Say someone wanted to open the files and read them outside of rockbox, is there documentation on that? Or am I stuck having to read through the entire database source?
Logged

Offline psycho_maniac

  • Member
  • *
  • Posts: 814
    • MyWebPage
Re: Do we have the file format for the database files?
« Reply #1 on: September 12, 2007, 11:38:57 PM »
right click on the file and select "open" or "open with" then click "select the program from a list" and then select notepad. this is from a windows xp pro computer. is this what you were after?
Logged
Please SEARCH the wiki | Please read the Forum Guidelines | Please Read the Manual
I Own A Gigabeat F80

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Do we have the file format for the database files?
« Reply #2 on: September 12, 2007, 11:53:06 PM »
I'm pretty sure that they aren't just plain text. I don't think there's any way to read them, plus why would you want to? You'll have to read through the source and write a program to read them I would think.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline sadffffff

  • Member
  • *
  • Posts: 52
Re: Do we have the file format for the database files?
« Reply #3 on: September 13, 2007, 12:12:37 AM »
Quote from: psycho_maniac on September 12, 2007, 11:38:57 PM
right click on the file and select "open" or "open with" then click "select the program from a list" and then select notepad. this is from a windows xp pro computer. is this what you were after?
like madcow mentioned, they're not plain text, so opening them in this manner gives you a lot of, largely unreadable, garbage. thanks anyway though.

And madcow, writing a program to read them is exactly what I plan on doing. Well, its one part of what I'm planning anyways. I was hoping that the file format for these tcd files was documented somewhere. As in telling me what each of them (database_0.tcd through database_7.tcd and database_idx.tcd) does and how they are constructed internaly. As in byte offsets and fields and how they relate to one another. Otherwise, I'll have to either try to pick out what i need from the source or reverse engineer them.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Do we have the file format for the database files?
« Reply #4 on: September 13, 2007, 12:13:32 AM »
I'm pretty sure the source is arranged in such away that you can get away with just porting the header and .c file that handle the database into your own program, instead of trying to reverse engineer the format.
Logged

Offline sadffffff

  • Member
  • *
  • Posts: 52
Re: Do we have the file format for the database files?
« Reply #5 on: September 13, 2007, 12:19:09 AM »
I'll look into it. I didnt poke around in the header file too much, it actually looks like it might be helpful.

So is that a "no, there isn't any direct documentation on the file type"?

I was looking to avoid some work is all. Don't really need to know how the entire database system works, just need the file info.

(incidently, is this the right place to post a question like this?)
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Do we have the file format for the database files?
« Reply #6 on: September 13, 2007, 12:22:01 AM »
The compiling forum would've also been acceptable, I suppose, but in this case either works, and we always prefer you go to "General Discussion" if you're not sure, rather than guessing. :)

No, I don't think there's any documentation of the internal structure beyond that in the source (at least that I know of).
Logged

Offline sadffffff

  • Member
  • *
  • Posts: 52
Re: Do we have the file format for the database files?
« Reply #7 on: September 13, 2007, 12:26:29 AM »
Well, allright then, in that case I guess i'll dive right into it.

Thanks much for the info.
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: Do we have the file format for the database files?
« Reply #8 on: September 13, 2007, 01:33:46 AM »
The database code can be compiled separately from Rockbox. Or at least it's supposed to be able to. If you're writing your program in C, this should make it easier for you to get started.
Logged

Offline Misspell

  • Member
  • *
  • Posts: 33
Re: Do we have the file format for the database files?
« Reply #9 on: September 13, 2007, 02:52:58 AM »
sadffffff, you might find this usefull if you havnt already (source bottom right).
http://rasher.dk/rockbox/simulator/

Releated question (i think); if a person builds the dbase file(s) on there PC from/based on the mp3s on there iPod and then move or save the dbase file(s) to there iPod, will RockBox reconize that dbase when the iPod is started?

In short, thinking of compiling the dbase with a PC to save "Updating" and "Initialize" with the iPod.

_
Logged
NOTE: iPod 5.5G - PC = Ubuntu (Lucid) OS
~ What was once an opinion, became a fact, to be later proven wrong ~

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Do we have the file format for the database files?
« Reply #10 on: September 13, 2007, 03:11:55 AM »
Quote from: Misspell on September 13, 2007, 02:52:58 AM
Releated question (i think); if a person builds the dbase file(s) on there PC from/based on the mp3s on there iPod and then move or save the dbase file(s) to there iPod, will RockBox reconize that dbase when the iPod is started?

You could of course just have the PC Application build the database straight onto the DAP. But yes - that should work if it's done properly.
Logged

Read The Manual Please

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Do we have the file format for the database files?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.115 seconds with 16 queries.