11-30-2006, 01:22 AM | #46 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
When I release a stable version, libprs500 will be installable via a single command, provided you have python2.5, Qt4, PyQt4 and libusb installed already. I'm not at all familiar with apple's packaging technologies, so I cant help you much there.
Last edited by kovidgoyal; 11-30-2006 at 01:24 AM. |
11-30-2006, 08:55 AM | #47 | |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
You may already know this, but I just tried to run the gui and got this error
Quote:
but it looks nice! |
|
Advert | |
|
11-30-2006, 10:47 AM | #48 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
While I know it can happen, it should not be happening. Can ypu put a print path statement above the line
Code:
res = self._send_validated_command(FreeSpaceQuery(path), timeout=5000) # Timeout needs to be increased as it takes time to read card |
11-30-2006, 11:02 AM | #49 |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
before i left for work i tried prs500 df, and it worked, so i'm pretty confused about why the gui can't do the same thing. when i get home i'll try adding the print path.
i also sometimes get a seg fault, though that may be from some of the things i was trying to get it working also after running the gui, the command line app doesn't work unless i disconnect and reconnect the reader, though that's probably because i haven't had a chance to let the gui end gracefully yet. Last edited by seamusfp; 11-30-2006 at 12:03 PM. |
11-30-2006, 11:36 AM | #50 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sync up before testing as I've added a possible fix.
|
Advert | |
|
11-30-2006, 08:30 PM | #51 | |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
Ok, i've synced up. Still not working
though it's a new error Quote:
edit: also if i start prs500-gui then connect the reader, the progress bar moves back and forth but nothing actually happens. Last edited by seamusfp; 11-30-2006 at 08:57 PM. |
|
11-30-2006, 09:23 PM | #52 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm well I'm going to wait till the GUI stabilizes a bit more before I track down this bug, since I cant replicate it and guessing is getting me nowhere.
|
11-30-2006, 09:53 PM | #53 |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
fair enough!
Good luck! I couldn't figure out where it was coming from (the error wasn't too usefull...) I may try stepping through some of it... |
12-02-2006, 12:11 AM | #54 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The location of my svn server has changed. The new command to check out the development version is:
svn co https://svn.kovidgoyal.net/code/prs-500 |
12-04-2006, 12:28 AM | #55 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The connection problems in the GUI should be fixed now. If not try increasing the timeout value in the open method in communicate.py. It's at 10000 right now.
|
12-04-2006, 09:09 AM | #56 | |
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
another error that doesn't make sense
Quote:
|
|
12-04-2006, 01:03 PM | #57 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
My fault I forgot to mention that the database format has changed since the last revision. Either delete ~/library.db or
Code:
sqlite3 ~/library.db sqlite> alter table books_meta add column rating integer; |
12-04-2006, 08:27 PM | #58 | |||
Enthusiast
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
|
I tried, new messages, but they seem to be related. still in the establish connection section.
Quote:
Quote:
Edit: I found someone who was getting the malloc errors in some other program and traced it to adding/removing whitespace I removed lines and that eliminated the malloc portion of the error, but the rest remains a la Quote:
Last edited by seamusfp; 12-04-2006 at 08:45 PM. |
|||
12-04-2006, 09:53 PM | #59 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm can you try increasing the timeout for bulk reads. replace line 312 in communicate.py by
data = data_type(self.handle.bulkRead(PRS500Device.PRS500 _BULK_IN_EP, size, timeout=5000)) Also can you open a ticket about this at https://libprs500.kovidgoyal.net/newticket More convenient than a forum. Thanks |
12-12-2006, 12:00 AM | #60 |
creator of calibre
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Here's a puzzle for all of you that have too much time on your hands. I just finished adding support for syncing the time to libprs500, unfortunately there's one field of 4 bytes I cant interpret. Here are the time set command packets
Code:
# 16:11 11th dec 2006 00000000: 0401 0000 0100 0000 0000 0000 1c00 0000 ................ 00000010: 20fe ffff d607 0000 0c00 0000 0c00 0000 ............... 00000020: 0000 0000 0b00 0000 0800 0000 ............ # 16:20odd 11th nov 2006 00000000: 0401 0000 0100 0000 0000 0000 1c00 0000 ................ 00000010: 20fe ffff d607 0000 0b00 0000 0c00 0000 ............... 00000020: 0000 0000 1500 0000 0a00 0000 ............ # 16:25odd 16th dec 2006 00000000: 0401 0000 0100 0000 0000 0000 1c00 0000 ................ 00000010: 20fe ffff d607 0000 0c00 0000 1100 0000 ............... 00000020: 0000 0000 1c00 0000 2200 0000 ........"... # 04:34odd 11th dec 2006 00000000: 0401 0000 0100 0000 0000 0000 1c00 0000 ................ 00000010: 20fe ffff d607 0000 0c00 0000 0b00 0000 ............... 00000020: 0c00 0000 2200 0000 3500 0000 ...."...5... For those of you who actually read this far, as a reward for your patience, here's a link that documents the progress (or lack of it) I'm making with libprs500 and its GUI. https://libprs500.kovidgoyal.net/timeline |
|
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 |