Discussion:
[BitPim-devel] Support for Samsung SPH-A640
Allan Slawik
2008-05-04 02:04:46 UTC
Permalink
I've created a profile for the Samsung SPH-A640, mostly though copying and modifying existing code from the other Samsung profiles. I wanted to know how to go about submitting it to the project since I've never done this before.

Thanks
Sean Burke
2008-05-05 12:15:04 UTC
Permalink
OS X 10.5 USB users - I think I may have found the USB bug. Please
email me off-list if you are interested in testing a new build.

Best,

Sean
Post by Allan Slawik
I've created a profile for the Samsung SPH-A640, mostly though copying
and modifying existing code from the other Samsung profiles. I wanted
to know how to go about submitting it to the project since I've never
done this before.
Thanks
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
------------------------------------------------------------------------
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
--
Sean Patrick Burke
Imaging Analysis Specialist
Albert Einstein College of Medicine
Yeshiva University
Ph. 718.430.8628 Fax 718.430.8697
Stephen Wood
2008-05-05 13:14:49 UTC
Permalink
Post your changes and new files to this list and we will check them
in. You should be prepared to test out what actually gets checked in
to make sure that it works as checked in.

Stephen
Post by Allan Slawik
I've created a profile for the Samsung SPH-A640, mostly though copying and
modifying existing code from the other Samsung profiles. I wanted to know
how to go about submitting it to the project since I've never done this
before.
Thanks
Allan Slawik
2008-05-09 07:38:12 UTC
Permalink
The profile I created for the Samsung SPH-A640 was created by merging the phonebook functions from the a460 with the ringtone, image etc. functions from the Samsung a620. My knowledge of both python and this project is limited, so you might want to have someone with more experience with the project look over the code. I'm unfamiliar with how the p_phonename.p and p_phonename.py works. I've included the p_phonename.py file which, according to the code should be generated automatically, but I couldn't find how to do this from the source file.

The files can be found here: http://s87762315.onlinehome.us/spha640.zip

The com_samsungspha640.py and p_samsungspha640.py files are new. The only thing that has been changed in ___init___.py are lines 344-348 which includes the necessary entry for the a640.

I've tested the files on my win32 system and reading/writing works for Todo, Memo, Calendar, Images, camera, and ringtones.
The phonebook reads properly, with the sole exception being the phone numbers are not assigned to the proper category (Home, Cell, Office etc.). Writing to the phonebook does not currently work and has been disabled.

Let me know what needs to be tested and/or modified.

Allan
Stephen Wood
2008-05-09 19:33:30 UTC
Permalink
Post by Allan Slawik
The profile I created for the Samsung SPH-A640 was created by merging the
phonebook functions from the a460 with the ringtone, image etc. functions
from the Samsung a620. My knowledge of both python and this project is
limited, so you might want to have someone with more experience with the
project look over the code. I'm unfamiliar with how the p_phonename.p and
p_phonename.py works. I've included the p_phonename.py file which, according
to the code should be generated automatically, but I couldn't find how to do
this from the source file.
...
We often make some changes in submitted code to make it fit our style,
so I'll ask you to update your subversion copy to make sure what gets
checked in still works.

protogen.py is used to generate the p_XXX.py files. If using linux,
from the phones directory you would type "python ../protgen.py" or
"python ../protogen.py p_XXX.p" depending if you want to build all the
p_ files or just the one you are interested. You can probably do the
same from windows, maybe just changing the slash to a backslash.

Thanks, Stephen
Stephen Wood
2008-05-14 03:00:04 UTC
Permalink
Allan:

I have checked in your code. Please rename your copies of the 640a
code and do an update in order to test it out.

I made a guess at what p_samsungspha640.p should look like. If you
need to make changes, edit that file and use protogen.py to recreate
p_samsungspha640.py.

I haven't looked at com_samsunspha640.py much yet, but it looks like
it has a lot of code duplicated from other phones. So I will try to
modify it to inherit code from the A620. But in the mean time I
wanted to check it in so that you can test it.

Stephen
Post by Allan Slawik
The profile I created for the Samsung SPH-A640 was created by merging the
phonebook functions from the a460 with the ringtone, image etc. functions
from the Samsung a620. My knowledge of both python and this project is
limited, so you might want to have someone with more experience with the
project look over the code. I'm unfamiliar with how the p_phonename.p and
p_phonename.py works. I've included the p_phonename.py file which, according
to the code should be generated automatically, but I couldn't find how to do
this from the source file.
The files can be found here: http://s87762315.onlinehome.us/spha640.zip
The com_samsungspha640.py and p_samsungspha640.py files are new. The only
thing that has been changed in ___init___.py are lines 344-348 which
includes the necessary entry for the a640.
I've tested the files on my win32 system and reading/writing works for Todo,
Memo, Calendar, Images, camera, and ringtones.
The phonebook reads properly, with the sole exception being the phone
numbers are not assigned to the proper category (Home, Cell, Office etc.).
Writing to the phonebook does not currently work and has been disabled.
Let me know what needs to be tested and/or modified.
Allan
Stephen Wood
2008-05-14 03:19:50 UTC
Permalink
Allan:

The A640 code has been modified to inherit from the A620 code. Please
update and check if it still works.

Stephen
Post by Stephen Wood
I have checked in your code. Please rename your copies of the 640a
code and do an update in order to test it out.
...
Eric
2008-05-11 07:07:12 UTC
Permalink
Any chance someone could fill me in on how to read the protocol logs? Basically, I've got a
Samsung that does everything in Brew mode, but would like to be able to put together shell scripts
for basic tasks since my phone isn't supported directly.

For example, I have an r500 (Hue) to which I can quite easily batch load ringtones and wallpapers
by copying the files. This is accomplished by copying the files, rebooting the phone, reading
MsInfo.db, replacing a character string (which I've already scripted), copying it back to the
phone, and rebooting again.

My phone always detects as /dev/ttyACM0, so I'm basically trying to push the data directly through
the COM port from the command line.

Any assistance?

Eric L.


____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Joe Pham
2008-05-14 01:39:41 UTC
Permalink
but would like to be able to put together shell scripts for basic
tasks since my phone isn't supported directly.
I assume your phone is not supported directly by BitPim? Did you look into the Command Line Interface (CLI) feature of BitPim?

-Joe Pham


_____________________________________________________________
Hotel pics, info and virtual tours. Click here to book a hotel online.
http://thirdpartyoffers.netzero.net/TGL2211/fc/Ioyw6ijmgiZ3Ql1yiHcgVEq4saolDrpHEcDJG4ZVgdMSC55ASjQvcQ/?count=1234567890
Joe Pham
2008-05-14 01:45:15 UTC
Permalink
Stephen, are you helping him to submit his code?

-Joe Pham


_____________________________________________________________
Click for your daily horoscope, learn about money, love & family.
http://thirdpartyoffers.netzero.net/TGL2211/fc/Ioyw6ijlJ40UXu0jcOvneHnvA7UTt23eiqgYvUyDZ2lJBwWBx1ZXzm/?count=1234567890
Eric
2008-05-18 07:17:02 UTC
Permalink
Actually, yes, I've looked into the CLI, and have been able to get most of BitPim working with my
phone using different profiles for different things, and a bash script for uploading ringtones and
wallpapers. The only thing that CLI is missing, as far as I can tell, is to make the Reboot
command available. I might suggest abbreviating it rbp or somesuch to keep from messing up a user
who is playing around in superuser mode.

I can forward the scripts and so forth if that would help support the r500. I have NO knowledge
of Perl or Python.

Eric
Post by Joe Pham
but would like to be able to put together shell scripts for basic
tasks since my phone isn't supported directly.
I assume your phone is not supported directly by BitPim? Did you look into the Command Line
Interface (CLI) feature of BitPim?
-Joe Pham
_____________________________________________________________
Hotel pics, info and virtual tours. Click here to book a hotel online.
http://thirdpartyoffers.netzero.net/TGL2211/fc/Ioyw6ijmgiZ3Ql1yiHcgVEq4saolDrpHEcDJG4ZVgdMSC55ASjQvcQ/?count=1234567890
Post by Joe Pham
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Loading...