Motorola Development Community

Member Login

Quick Search



Development Hacking, development, scripts etc


Reply
  #21  
Old 07-14-2005
MotoFans XPRT
 
Join Date: May 2005
Location: Germany, Hannover
Posts: 289
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pascal
Default Re: Playing with native.db

wow, great tool matiu

i will compile it now an play a little bit with...

but perhaps you should cut content of kk.txt a little bit
Reply With Quote
  #22  
Old 07-14-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Oops!! I forgot to take that out

Don't send emails to my girlfriend
Reply With Quote
  #23  
Old 07-14-2005
MotoFans XPRT
 
Join Date: May 2005
Location: Germany, Hannover
Posts: 289
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pascal
Default Re: Playing with native.db

hmm i got an error when using program:

Code:
$ ./usync -d 4 native.db export.vcf
usync-0.1-alpha Universal Syncronization Tool
Copyright (C) 2005 Matias Alejo Garcia <usync@nits.com.ar>
usync comes with ABSOLUTELY NO WARRANTY; for details see the LICENSE file.
This is free software, and you are welcome to redistribute it
under certain conditions

----------------------- Registred Filters ---------------------
vcard     |vCard Text File                         |.vcf|Export
console   |Console Output                          |.txt|Export
csv       |CSV Comma Separated Text                |.csv|Export
csv       |CSV Comma Separated Text                |.csv|Import
db_e680i  |Motorola E680i Berkeley DB              |.db |Import
db_e680i  |Motorola E680i Berkeley DB              |.db |Syncro
-------------------------- End Filters ------------------------
Checking import filters for: .db
        Using filter: Motorola E680i Berkeley DB
Database opened.

**Import filter failed!
same error when using other export filter.

now i tried to make an eclipse project from this, but i dont get it linked: db_680i.c give me an error:

Code:
Building target: usync
gcc  -o usync db_680i.o in_csv.o out_csv.o out_screen.o out_vcf.o us_data.o us_filters.o us_main.o us_utils.o        
db_680i.o(.text+0x5cc): In function `dump_sub':
../db_680i.c:188: undefined reference to `db_create_4002'
db_680i.o(.text+0x928): In function `db_e680i_in':
../db_680i.c:285: undefined reference to `db_env_create_4002'
db_680i.o(.text+0x9b4):../db_680i.c:292: undefined reference to `db_create_4002'
collect2: ld returned 1 exit status
make: *** [usync] Fehler 1
make: Das Target »all« wurde wegen Fehlern nicht aktualisiert.
Build complete for project usync
i found db_create_4002 in db.h, but no idea where to look more

Berkeley Version is:
Code:
sys-libs/db-4.2.52_p2  -bootstrap +doc +java -nocxx +tcltk
no idea if usync dont work cause this error or cause i have a e680 db and not e680i.

but file version looks like yours: native.db: Berkeley DB (Btree, version 9, native byte-order)

now i am remerging db, perhaps there is the error
Reply With Quote
  #24  
Old 07-14-2005
MotoFans XPRT
 
Join Date: May 2005
Location: Germany, Hannover
Posts: 289
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pascal
Default Re: Playing with native.db

ok my failure, have forgotten to include db at linking

ok have found out that only your first script in topic was for e680. in e680i db name has changed from contact_table to a780_contact_table.

after changing source it runs, but only garbage comes out, think structure is also different.

---

get_contatcs.c works better, but some mumbers are in wrong order, not all, and first letter of text columns is mostly garbage
Reply With Quote
  #25  
Old 07-14-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Thank you for the feedback!

The .db database files are diferent from e680 and e680i. The tables are named different.

I have the native.db from my former i680, I will make the file for that the next few days.

PS: You should have the Makefile to compile the project...don't you?
Reply With Quote
  #26  
Old 07-15-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Here is a new version, with some fixes, and parcial support for E680 (not i). It should detect whether the .db file is E680's or E680i's.

* E680i
- Everything works ok here, please let me know if it doesn't work for your. The fields look ok, and in the correctly assigned.

* E680 files notes
- the db is completly different. Each record is not indexed, I coudn't really figure out the format...
- The field map is wrong (not correctly asigned). Also, the program doesn't reverse the fields.
- If someonly know/discover the format, let me know
- Also, I don't hace a E680 any more, so it is difficult to test. Maybe someone could sendme a native.db, with a 'test' contact with all the fields filled, with the name of the field.
-----------------------------
From CHANGELOG
* Fri Jul 15 02:23:38 ART 2005
- Major code clean up, rename most structures.
- Add a pi (Personal Information) structure pseudoiterator
(pi_getfield(), pi_invalidate_record(), *), therefore...
- pi_record's fields offsets are not exposed any more.
- fix long options bugs
- Added HDBG (5) debug level for HIGH DEBUG
- Added experimental support for E680 (not i), in the db filter.
Attached Files
File Type: gz usync-0.2-alpha.tar.gz (17.1 KB, 161 views)
Reply With Quote
  #27  
Old 07-15-2005
MotoFans XPRT
 
Join Date: May 2005
Location: Germany, Hannover
Posts: 289
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pascal
Default Re: Playing with native.db

yes have makefile, but eclipse ignored it, and has is own settings.

new version works, but seems every entry containing utf chars will be droped.

please pm me for native.db, perhaps you have a chat protocol of mine listed, than we can work closer together.

edit: other important question, would it be pssible to replace native.db on phone with other one? becuase i see you make a synchnronize function. read in other thread some time ago its not possible to backup contatcs, sms etc. for my side i want finally flash on e680i, also wanna play with opie. so if i flash back to e680, i can restore my native.db and everything is like i want, is this possible? somebody tried this?
Reply With Quote
  #28  
Old 07-15-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Yes, I think I would be possible to write to native.db, I am starting to work on that write now, I think a understand the contact's format pretty well now.

Once a contact's sync tool is working, we can move to email/cal/sms.

You have to change to E680i!! Is great! From my point of view, is really a good step.

PS:
To flash e680i I had:
E680:
-boot in Windows after 5 months.
- sync to PC (w/Windows, using EZX's app. Save data in .csv
- flash...
E680i:
- Import .csv from MBT.
- sync back to Phone.
- reboot in linux!
My contacts are OK. I loose email/sms.

Then,
- I spend a good amount of time trying to get linloader working.
- USB telnet connection working.
Then,
- an other good amount of time trying to get BT scripts working...
- now NFS/Telnet/SMB is working over BT
__________________
--
http://nits.com.ar
Reply With Quote
  #29  
Old 07-15-2005
MotoFans XPRT
 
Join Date: May 2005
Location: Germany, Hannover
Posts: 289
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pascal
Default Re: Playing with native.db

just destroyed my linloader in e680 no idea how, but perhaps its a sign

one reason more to flash

i have no windows on my harddisk, only a vmware version, but i think its do dangerous to flash from there. so i had to plugin an old harddrive with xp or sou...

i will make a backup from phone in hope we can later extract sms from there...
Reply With Quote
  #30  
Old 07-15-2005
MotoFans MODR
 
Join Date: Jun 2005
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Good work Matiu
Will this c program work for A780 cos E680i has same exact functionality as well ..

Also, is it possible to run the program directly on the phone or do you run it on ur pc? by copying the native.db file there ?

thanks
-MAQ
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem playing videos activexpert E6 General Chat 3 02-14-2008 04:57 AM
i need help playing videos on rokr e6 pinoy8181 E6 General Chat 4 08-14-2007 03:44 AM
Bicycle Playing Card Larry -The Lounge- 0 03-20-2007 07:18 AM
Help required for playing videos s.kris79 A1200 General Chat 3 01-18-2007 11:15 AM
playing videos HELP itzkinz E680i General Chat 1 02-12-2006 09:58 AM

 
Advertisement

Partner Links





Web Analytics