Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2006, 08:27 PM   #1
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Reader internals

http://rafb.net/paste/results/CChSNL92.html

Edit: See post #5 for the content

Last edited by igorsk; 10-12-2006 at 08:31 PM.
igorsk is offline   Reply With Quote
Old 10-12-2006, 09:44 PM   #2
alexishinds
Junior Member
alexishinds began at the beginning.
 
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
alexishinds is offline   Reply With Quote
Advert
Old 10-12-2006, 09:52 PM   #3
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
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?
porkupan is offline   Reply With Quote
Old 10-12-2006, 11:30 PM   #4
Slava
Addict
Slava doesn't litterSlava doesn't litter
 
Slava's Avatar
 
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
Quote:
Originally Posted by igorsk
Nice job

Any idea how to add another TTF font over there ?-)
Slava is offline   Reply With Quote
Old 10-13-2006, 05:03 AM   #5
TadW
Uebermensch
TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.
 
TadW's Avatar
 
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).
Attached Files
File Type: zip content.zip (4.4 KB, 1007 views)
TadW is offline   Reply With Quote
Advert
Old 10-13-2006, 05:59 AM   #6
hkabir
e-bookviner
hkabir began at the beginning.
 
hkabir's Avatar
 
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
hkabir is offline   Reply With Quote
Old 10-13-2006, 06:39 AM   #7
ultim8fury
Addict
ultim8fury has a complete set of Star Wars action figures.ultim8fury has a complete set of Star Wars action figures.ultim8fury has a complete set of Star Wars action figures.ultim8fury has a complete set of Star Wars action figures.
 
ultim8fury's Avatar
 
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.
ultim8fury is offline   Reply With Quote
Old 10-13-2006, 11:04 AM   #8
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
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.
NatCh is offline   Reply With Quote
Old 10-13-2006, 02:42 PM   #9
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
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.
Attached Files
File Type: zip ebook-0.1.zip (3.7 KB, 708 views)

Last edited by igorsk; 10-13-2006 at 02:45 PM.
igorsk is offline   Reply With Quote
Old 10-13-2006, 03:26 PM   #10
Slava
Addict
Slava doesn't litterSlava doesn't litter
 
Slava's Avatar
 
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
Quote:
Originally Posted by igorsk
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.
simply amazing

can't wait to get home and try it
Slava is offline   Reply With Quote
Old 10-13-2006, 03:50 PM   #11
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by igorsk
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.
Impressing job! Especially impressing those who does not know Python.

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?
gseryakov is offline   Reply With Quote
Old 10-13-2006, 04:12 PM   #12
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
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.
igorsk is offline   Reply With Quote
Old 10-13-2006, 04:14 PM   #13
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
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
igorsk is offline   Reply With Quote
Old 10-13-2006, 04:51 PM   #14
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by igorsk
Here's the full list of functions provided by ebookUsb.dll:
...
Great!!! And what is the way to update system files? Because once we know (full credit to igorsk) how to get a file from Reader, the next step is to change it and put it back. Oh, no! I forgot - we should be able to make system repair before this step.
gseryakov is offline   Reply With Quote
Old 10-13-2006, 04:55 PM   #15
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
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.
igorsk is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 02:00 AM.


MobileRead.com is a privately owned, operated and funded community.