10-12-2006, 08:27 PM | #1 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Reader internals
Last edited by igorsk; 10-12-2006 at 08:31 PM. |
10-12-2006, 09:44 PM | #2 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2006
|
Interesting...so how did you generate that listing? That would seem to imply that I should be able to copy and RTF (or at least PDF) over to the reader on my Mac without going through Parallels if I could actually mount it...assuming that's what you did.
--Alexis |
Advert | |
|
10-12-2006, 09:52 PM | #3 |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Are you saying you have figured out how to log in and get a shell prompt? Or mount the ebook as a removable drive?
Are we going to see some unicode fonts dropped to the /opt/sony/ebook/FONT soon? |
10-12-2006, 11:30 PM | #4 | |
Addict
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
|
Quote:
Any idea how to add another TTF font over there ?-) |
|
10-13-2006, 05:03 AM | #5 |
Uebermensch
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
Sooooo cool, igor!
Now - how did you do that? (I attached the text file here in case it disappears from the original location, hope you don't mind). |
Advert | |
|
10-13-2006, 05:59 AM | #6 |
e-bookviner
Posts: 56
Karma: 10
Join Date: Aug 2006
Device: Sony PRS-505, iPodTouch
|
It seems like the Reader has a lot of fitures not yet activated like the wireless network support. See the following code:
Code:
/etc/network /etc/network/ping-places.sh /etc/network/pcmcia-compat.sh /etc/network/options /etc/network/interfaces /etc/network/ifstate /etc/network/if-up.d /etc/network/if-pre-up.d /etc/network/if-pre-up.d/wireless-tools /etc/network/if-post-down.d /etc/network/if-down.d /etc/network/get-mac-address.sh /etc/network/check-mac-address.sh |
10-13-2006, 06:39 AM | #7 |
Addict
Posts: 219
Karma: 368
Join Date: Jan 2006
Location: UK
Device: PRS500, Looking at 700
|
I wouldn't read into it too much as they still have Vi and sed in there as well. Standard linux guts.
|
10-13-2006, 11:04 AM | #8 |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
They also don't have any wireless hardware, which would make wireless networking rather difficult, regardless of what the software might be able to do.
|
10-13-2006, 02:42 PM | #9 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Sorry for the suspense guys I didn't want to release incomplete code.
Here's a more-or-less complete version which allows you to list the files on the device and download them. It needs Python with ctypes package and uses dlls from Connect software. So the best way to get it running is to drop the file in "\Program Files\Sony\CONNECT Reader\Data\bin". To list the files: ebook.py ls <dir> [-R] -R means "list recursively". I disabled recursion for /dev and /proc subtrees since that can lead to infinite loops. E.g.: ebook.py ls / ebook.py ls /etc/ -R To download files: ebook.py get <path> E.g.: ebook.py get /Data/tmp/info/model ebook.py get /etc/init.d/ Be careful when downloading "files" from /dev and /proc, some of them has no EOF and the program reads infinitely. So far I only had to reset the unit once so there shouldn't be much problems, but as usual: USE IT ON YOUR OWN RISK. Last edited by igorsk; 10-13-2006 at 02:45 PM. |
10-13-2006, 03:26 PM | #10 | |
Addict
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
|
Quote:
can't wait to get home and try it |
|
10-13-2006, 03:50 PM | #11 | |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
|
Quote:
AFAIU, this is just using the following functions exported from DLL (@-number is probably the stack usage): _UsbSendProc@16 _UsbReceiveProc@12 _UsbBuffFree@4 _UsbInitCheck@0 _UsbGetProtcolVer@8 _UsbUnlockDevice@4 _UsbConnect@0 _UsbDisConnect@0 Do we have more or less regular description of this interface? I mean - prototypes plus parameters description. Is it the full list of functions exported from the usb dll? |
|
10-13-2006, 04:12 PM | #12 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
@N means the function has N bytes of arguments (stdcall convention). The DLL I use (ebookUsb.dll) is actually a higher-level one. It uses lower level calls from prsctr.dll, which in turn speaks to the driver (PRSUSB.sys) and the driver actually talks to the Reader over USB. So, while I more or less know how to use the high-level interface, I don't know how it maps to the actual USB traffic. However, a person with a USB spy program can probably recover this information pretty easily and that could be useful to people with other OSes.
|
10-13-2006, 04:14 PM | #13 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Here's the full list of functions provided by ebookUsb.dll:
Code:
_CheckBlock@0 _UsbBeginEnd@4 _UsbBuffFree@4 _UsbCancelCallBack@0 _UsbConnect@0 _UsbConvertDevPathToPCPath@8 _UsbConvertDriveLetterToID@8 _UsbConvertIDToDriveLetter@8 _UsbConvertPCPathToDevPath@8 _UsbDisConnect@0 _UsbElectricIsConnect@0 _UsbEndSecureSession@0 _UsbFreeDevProperty@4 _UsbGetDevProperty@4 _UsbGetIDforPC@8 _UsbGetProtcolVer@8 _UsbGetdevNofromID@4 _UsbInitCheck@0 _UsbKeyExchangeAndAuthentication@0 _UsbReceiveProc@12 _UsbSendProc@16 _UsbSendReceiveProc@20 _UsbSetCallBack@8 _UsbUnlockDevice@4 |
10-13-2006, 04:51 PM | #14 | |
Enthusiast
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
|
Quote:
|
|
10-13-2006, 04:55 PM | #15 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Yeah, there is a function to write files too. I'm going to implement it later.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-500 Reader Internals 2.0 (pics!) | lint | Sony Reader Dev Corner | 60 | 11-18-2013 08:25 AM |
Kindle DX Internals | revilo | Amazon Kindle | 0 | 06-15-2009 04:50 AM |
Kindle 2 Internals | JSWolf | Amazon Kindle | 19 | 02-27-2009 02:45 PM |
PRS-500 Connect internals | igorsk | Sony Reader Dev Corner | 1 | 10-12-2006 04:50 AM |
iLiad Iliad internals | ali | iRex Developer's Corner | 39 | 07-21-2006 04:28 AM |