Re: developing for samsung SPH-A900
Aaron Solochek <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
Stephen Wood wrote: > Aaron: > > I got your protocol log. > > It looks like the A900 has a file system with more than just one file, > but it is getting in some kind of repeating loop trying to crawl the > filesystem. Maybe it uses the new version of the filesystem, which I'll > try to explain how to use. > > You should try to make yourself a trial A900 setup in your copy of the > source. > > Copy the com_samsungspha840.py and p_samsungspha840.p files to > com_samsungspha900.py and p_samsungspha900.p, and replace all instances > os a840 with a900 in the new files. > > When you create p_samsungspha900.p and everytime you change it, you need > to run "python protogen.py" to "recompile" the protocol definitions. > > In the .p you made, put the line "BREW_FILE_SYSTEM=2". See > p_lgvx8100.p as an example. > > In guiwidgets.py, find where the menu that lets you select which phone > you have and add the A900. You'll be adding a line that looks like > "'SPH-A900': 'com_samsungspha900'. > > Then when you run, if you select the A900, when you try to browse the > file system, the "new" brew file system code will be used. (Simon, > correct me if I am wrong about this.) Ok, I copied the files, edited them, and ran protogen.py. Browsing the filesystem still results in some loop. > > In parallel to file system examining, there are some things to try to do > to read the phonebook. > > Copy the routine "getfundamentals" from com_samsungspha620.py in to the > Phone class in your com_samsungspna900.py. Comment out the line where > it tries to read the amsRegistry file. If reading the phonebook > crashes again, try commenting out the that crashes things. I commented out the line "self.amsanalyze(results)" and now there is no crash, but there is an error that the phone isn't responding when trying to manipulate the address book. The protocol log shows that it doesn't seem to like this AT command: 11:21:52.588 /dev/ttyACM0: Writing Data - 12 bytes 00000000 41 54 23 50 4d 4f 44 45 3d 31 0d 0a AT#PMODE=1.. 11:21:52.604 /dev/ttyACM0: Reading remaining data Data - 4 bytes 00000000 4f 4b 0d 0a OK.. 11:21:52.605 SPH-A900: Now in phonebook mode 11:21:52.605 SPH-A900: Now in phonebook mode 11:21:52.605 SPH-A900: Samsung phonebook request Data - 8 bytes <#! p_samsung_packet.phonebookslotrequest !#> 00000000 23 50 42 4f 4b 52 3d 31 #PBOKR=1 11:21:52.605 /dev/ttyACM0: Writing Data - 12 bytes 00000000 41 54 23 50 42 4f 4b 52 3d 31 0d 0a AT#PBOKR=1.. 11:21:52.623 /dev/ttyACM0: Reading remaining data Data - 7 bytes 00000000 45 52 52 4f 52 0d 0a ERROR.. 11:21:52.627 Error: Device needs attention - SPH-A900 on /dev/ttyACM0 SPH-A900 on /dev/ttyACM0: The phone is not responding while manipulating the phonebook. > You should look at the various notes in the dev-doc subdirectory of the > cvs, in particular phonspec.html and packetdescription.txt. > > Stephen > !DSPAM:43df968a12899273420090! ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642