11-28-2006, 09:35 AM | #31 | |||
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
I've investigated some on the Mac end and made some progress, it appears that the usb interface is idle normally.
Quote:
Quote:
Quote:
Last edited by seamusfp; 11-28-2006 at 09:38 AM. |
|||
11-28-2006, 12:09 PM | #32 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Interesting, it may be that by adding a wake up command we can fix this. Could you sync to the latest version of libprs500, that would make it easier for me to keep track
Code:
svn co https://svn.kovidgoyal.net/code/prs-500 Last edited by kovidgoyal; 12-02-2006 at 01:37 AM. |
Advert | |
|
11-28-2006, 12:45 PM | #33 |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
I'll sync up when I get home from work.
|
11-28-2006, 09:20 PM | #34 |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
I installed it, but it didn't seem to go right. It is throwing an error importing VERSION, I tried to bypass that, and it's throwing an error importing TerminalController.
|
11-28-2006, 11:58 PM | #35 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What did noy go well the python setup.py develop step or running prs500?
|
Advert | |
|
11-29-2006, 08:53 AM | #36 | ||
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
libprs500 did not seem to copy right, I deleted the egg files and ran setup.py from the tarball in the first post and it worked again.
so, I went back to that and got the USB prober working. more happens than the system logs led me to believe. first it looks for drivers, some of these it tries several times. Quote:
here's a more detailed look at what's happening Quote:
|
||
11-29-2006, 09:30 AM | #37 | |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
YES!
I got it to work! in communicate.py I commented out line 189 Quote:
Last edited by seamusfp; 11-29-2006 at 09:59 AM. |
|
11-29-2006, 11:46 AM | #38 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's great. In fact the reset has already been removed from svn, it was left in from testing. Its good that it works on OS X.
As for libprs500 not copying right, the contents of the libprs500 directory under trunk should look like this: libprs500: cli communicate.py errors.py gui __init__.py lrf prstypes.py libprs500/cli: __init__.py main.py terminfo.py libprs500/gui: database.py editbook.py editbook.ui images images.qrc images_rc.py __init__.py main.py main.ui libprs500/gui/images: cherubs.jpg clear.png edit.png fileopen.png minus.png mycomputer.png plus.png reader.png libprs500/lrf: __init__.py meta.py Last edited by kovidgoyal; 11-29-2006 at 11:52 AM. |
11-29-2006, 12:35 PM | #39 |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
I believe that was all there, however when i ran "sudo python2.5 setup.py develop" it didn't associate/copy things properly, and running prs500.py wouldn't import from the libprs500.
|
11-29-2006, 06:25 PM | #40 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh the develop command doesn't copy anything, it only creates an egg link to the source directory. The command to use is nor prs500 not prs500.py. prs500 is created by the develop command.
|
11-29-2006, 06:39 PM | #41 | |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
ahhhh
<--- noob! Looking at the svn, it looks like you're making a gui wrapper for this, how is that going? Ok i've tried the new code out (well downloaded last night) and it still has a reset in it causing problems, at line 258 in communicate.py. removing that info and ls seem to work, but books only gets 1 book in and vomits with Quote:
Last edited by seamusfp; 11-29-2006 at 07:52 PM. |
|
11-29-2006, 09:11 PM | #42 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh I apologize, I had not committed the reset change from my working copy to svn. It's in now. Also a possible fix for the books problem.
The GUI is coming along...right now it can display the list of books (with their covers) on the device. I'm working on the code to manage an sqlite based library that keeps books in various formats as well as metadata for them. After that the only hurdle will be transferring books to the reader in an intelligent fashion. |
11-29-2006, 09:57 PM | #43 |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
awesome, that worked well!
there was 1 or 2 extra .encode's in prs-500.py around line 211 (not sure if i put them there or not, i was trying something along the lines of what you did, but python must have known i was a noob) and the edit marks for r120 caused some problems, so I just got rid of them (and the old lines) unfortunately Ot4 hasn't been aquafied, and i haven't tried to set it up in darwin yet (not sure if that will work). so i couldn't check out the hard work you've put into the gui Thanks for putting all this work in! |
11-29-2006, 10:08 PM | #44 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Qt: http://www.trolltech.com/developer/downloads/qt/mac
sip: http://www.riverbankcomputing.co.uk/sip/download.php pyqt http://www.riverbankcomputing.co.uk/pyqt/download.php You will of course need Xcode to build them |
11-29-2006, 11:36 PM | #45 | |
Zealot
Posts: 107
Karma: 35
Join Date: Oct 2006
Location: Greensboro, NC
Device: Sony Librie / Sony Clie / Sony Reader
|
Quote:
I looked in my version of communicate.py, found the line of code you mentioned, commented it out, and got prs500 to work, too! Glad to see someone figured out how to make it run on a Mac. (BTW, I'm on OS X v10.3.9.) I'm going to look into Apple's documentation on installers, and see if this can be packaged in an installer. Making DMGs is easy, making stuff installable is something else. P.S.: seamusfp, in case you didn't know, Xcode is on the OS X installation disc. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
KDK Reverse Engineering - For Those who Cannot wait... | DairyKnight | Kindle Developer's Corner | 0 | 05-14-2010 12:29 AM |
Reverse-engineering the .IMP format | nrapallo | IMP | 23 | 02-12-2009 01:44 PM |
Reverse engineering the Cybook hard-/software | srml | Gen3 Developer's Corner | 8 | 07-07-2008 04:27 PM |
PC sync protocol | dumky | Which one should I buy? | 2 | 01-04-2008 01:33 PM |
Introduction to Reverse Engineering Software | Colin Dunstan | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 05-25-2004 11:31 AM |