Hi Roger,
1) USB vendor product id: This isn't a USB device. In fact, the USB
cables sold for the 5450 (which is seemingly almost identical to the 4600)
will not work with the 4600. This phone requires a usb-serial cable sold
through futuredial (the same cable as the vx1200 I believe). Under the
"Data-In" menu, the Method menu gives only 2 options: RS-232 and closed.
2) The index files. Actually, the filesize is only stored in one place -
the .desc file. I forgot to mention that that is also the file that stores
the image or ringtone's 'index' (ie. the order they appear when browsing
using the phone). I'm assuming that you mistook my description of the
fields in $USER_DIRS where I said [length of the record][directory]... what
I meant was "length of the next string". For example 19(hex), following by
a directory name (\usr\wallpapers\blahblah) that is 25 (including trailing
null) characters long. This is not the same as the size of the blahblah
file. (sorry for being unclear).
3) Can the directory name include the extension? I don't believe so, and
I'm scared to try as I've heard of users who get into infinite power cycling
loops after messing up the values in the .desc file.
4) Length of the index record... as mentioned, it's an index file (again,
the .desc file). This file contains the mime type, file length (actually
the sum of the size of the media file and the .desc file size), and
numerical index. Each ringtone/wallpaper gets it's own .desc file. Not all
the info in the .desc file has been identified, but we know the position and
length of the file size field, index field, and mime type field.
5) Phone book info. I tried to fetch the phonebook using the vx4500
setting as suggested. I've attached the exception thrown as well as the
protocol log. It appears to be the same behavior when using the 4400
setting. Obviously, the file structures are different among the phones. I
will try to determine the structure for the 4600 pim files when I get
chance.
I'll be out of town for the next few days so I won't be able to experiment
with the phone. I will, however, still have access to email should you need
any more information.
Do you have anything you'd like me to try when I return? I'd like to get
into some coding tasks if possible. As I've mentioned, this is my first
exposure to Python, but I'm starting to catch on.
Anthony
----- Original Message -----
From: "Roger Binns" <***@rogerbinns.com>
To: <bitpim-***@lists.sourceforge.net>
Sent: Sunday, February 15, 2004 8:46 PM
Subject: Re: [Bitpim-devel] Debugging using the python GUIs
Post by Roger BinnsPost by A F1) USB vendor/product id... I have no idea how to find this.
It is usually part of the hardware instance. Look in the com
port browser.
hardwareinstance
USB\VID_1004&PID_6000&MI_02\SERIAL_NUMBER_02
This is how the device is named internally. For example USB devices
include the vendor (VID) and product (PID) identities
Every LG phone so far has been VID=1004, PID=6000
Post by A Fcom_lgvx4400.__init__. However, it seems to fetch standard strings (eg.
Manufacturer="LG Electronics Ltd.", Model="LG-4600").
That is just what the modem gives. You can't actually get it via the USB
diagnostics interface.
Post by A FAre there other
commands I can send to the phone to fetch the USB Vendor/Prod ID, or should
I be looking somewhere in the file system for this info?
You have to look in the driver hardware instance bindings.
Post by A F2) Names and locations of index files. So the main "index" for both
ringers and wallpapers is a file called \$USER_DIRS.
That file serves a different purpose. I think it lists all directories
that could be deleted if you wanted to do a factory reset. Or maybe
it is the directories that should be counted if you are trying to figure
out how much space has been used.
Post by A FThese point to directories in \usr\Ringtone and \usr\Wallpaper.
Yet another naming convention ... On other LG phones it is
user/sound/ringer
Post by Roger Binnsand brew/shared respectively.
Post by A FEach subdirectory in those dirs contains 2 files: .desc(a fixed length file
which contains mime type info and file size) and a file named body (no
extension) which is the actual media file. The name of the subdirectory
becomes the name of the Ringtone/Wallpaper as seen when using the phone.
Yet another different scheme. And they love duplicating information (eg
file size is stored in two different places). I wonder how they map
the files into phonebook entries. On the other phones, there is an
index file which maps numerical indices into the filenames.
Post by A FNOT have to be modified. I simply created a new subdir under \usr\Wallpaper
(or Ringtone) and gave it an appropriate name.
Can the directory name include the extension (eg could you name it example.jpg)?
Post by A F3) Length of index record... see above
Sounds like no index at all.
Post by A F4 + 5) Neither the phone nor calendar seems to work. I have to do some
more playing to check out where it is failing, but I suspect the phone is
different than the vx4500 in how it handles the PIM info. A cursory look at
the file system shows a \pim directory which contains pbentry.dat (which
contains the entries, obviously. These appear to be fixed length records
which include the name, and various offsets into the other files),
pbnumber.dat, pbgroup, and record_id. I'll investigate further when I get
the chance.
That is in fact exactly how the other phones store the pim. Can you set the
phone type in BitPim to be VX4500, and then request the phonebook? Please
email me the last 4 packets from the protocol log.
Roger
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bitpim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel