Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2006, 05:23 PM   #16
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
Great!!!! Will try later tonight
TadW is offline   Reply With Quote
Old 10-13-2006, 06:42 PM   #17
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
Igor,

it works like a charm. Thank you!
Slava is offline   Reply With Quote
Advert
Old 10-14-2006, 03:15 AM   #18
geekraver
Addict
geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.
 
Posts: 364
Karma: 1035291
Join Date: Jul 2006
Location: Redmond, WA
Device: iPad Mini,Kindle Paperwhite
This is cool. I'll try convert your Python code to C# or (if the P/Invokes get too complex) C++ next week, and then modify my RSS2Book utility to be able to automatically sync new RSS content to the reader.
geekraver is offline   Reply With Quote
Old 10-14-2006, 09:16 AM   #19
Bob Russell
Recovering Gadget Addict
Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.Bob Russell ought to be getting tired of karma fortunes by now.
 
Bob Russell's Avatar
 
Posts: 5,381
Karma: 676161
Join Date: May 2004
Location: Pittsburgh, PA
Device: iPad
Quote:
Originally Posted by geekraver
This is cool. I'll try convert your Python code to C# or (if the P/Invokes get too complex) C++ next week, and then modify my RSS2Book utility to be able to automatically sync new RSS content to the reader.
Holy cow! If that means what I think it means, it could basically provide an RSS to Reader application with conduit. (Like the Sony Connect Store tries to provide for a few select feeds, but has some bugs to work out before it's usable.) Fantastic!
Bob Russell is offline   Reply With Quote
Old 10-14-2006, 10:12 AM   #20
Jake
Renaissance Man
Jake began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Sep 2006
Location: Seattle
Device: Sony Reader
Wow, simply amazing work - and the product has barely hit the streets!
Enormous possibilities here...
Jake is offline   Reply With Quote
Advert
Old 10-14-2006, 10:52 PM   #21
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
New version with write support. I only tested it by uploading random files in /tmp so, to prevent accidental bricking of the unit, enabling upload requires manual editing of the file. If you know a little programming you'll find what to change
Attached Files
File Type: zip ebook-0.2.zip (4.3 KB, 777 views)
igorsk is offline   Reply With Quote
Old 10-14-2006, 11:19 PM   #22
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
wow

I know what I want to change, but I'm too chicken to be first one
Slava is offline   Reply With Quote
Old 10-15-2006, 12:19 AM   #23
hkabir
e-bookviner
hkabir began at the beginning.
 
hkabir's Avatar
 
Posts: 56
Karma: 10
Join Date: Aug 2006
Device: Sony PRS-505, iPodTouch
Can someone explain a bit more about how to use the ebook.py? I downloaded the python windows binary and installed it in my computer. I read some tutorial from the Python site; but still not certain about executing the command using the ebook.py. Can we add more fonts with the new version of the program?
hkabir is offline   Reply With Quote
Old 10-15-2006, 12:59 AM   #24
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
Process tree on my Reader:
Code:
1 init
  2 keventd
  7 mtdblockd
  29 msbdrv_thread
  31 sdbdrv_thread
  47 jffs2_gcd_mtd15
  49 jffs2_gcd_mtd16
  121 tinyhttp.sh
    125 tinyhttp
      126 tinyhttp
          127 tinyhttp
          128 tinyhttp
          130 tinyhttp
          131 tinyhttp
          145 tinyhttp
          147 tinyhttp
          148 tinyhttp
  123 getty
3 ksoftirqd_CPU0
4 kswapd
5 bdflush
6 kupdated
igorsk is offline   Reply With Quote
Old 10-15-2006, 02:27 AM   #25
geekraver
Addict
geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.
 
Posts: 364
Karma: 1035291
Join Date: Jul 2006
Location: Redmond, WA
Device: iPad Mini,Kindle Paperwhite
Igor, my knowledge of Python is very rudimentary. I can understand basic stuff but I'm a bit fuzzy when trying to parse the way you interface with UsbReceiveProc and UsbSendProc. Clearly the first parameter is a request index but after that it looks like you're passing in a struct, and some variable length data. Can you explain it a bit to someone who's more familiar with C?
geekraver is offline   Reply With Quote
Old 10-15-2006, 05:56 AM   #26
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
Is this better?
Code:
struct Request {
 DWORD reqNo;
 DWORD reserved[2];
 DWORD extralen;
};
struct Answer {
 DWORD reserved[3];
 DWORD dataLen;
 char  data[1]; //variable length
};
struct SendBuffer {
 DWORD type; //0x10005 for WriteFile
 DWORD reserved[2];
 DWORD dataLen;
 char  data[1]; //variable length
};

int UsbReceiveProc(Request* request, size_t answersize, Answer* answer);
void UsbBuffFree(Answer* answer);
int UsbSendProc(Request* request, SendBuffer* buf, size_t sendsize, DWORD* bytesSent);
Every request and answer further defines the variable data part, e.g.:
Code:
struct FileOpenRequest: Request {
 DWORD nPathLen;
 char path[1]; //variable length
};
struct FileOpenAnswer: Asnswer {
 DWORD hFile;
};
igorsk is offline   Reply With Quote
Old 10-16-2006, 01:51 AM   #27
geekraver
Addict
geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.
 
Posts: 364
Karma: 1035291
Join Date: Jul 2006
Location: Redmond, WA
Device: iPad Mini,Kindle Paperwhite
Thanks, that is helpful. Looks like this will be a bitch to code in C# with P/Invoke; I'll probably have to write a native C shim layer.
geekraver is offline   Reply With Quote
Old 10-16-2006, 07:55 AM   #28
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
Quote:
Originally Posted by igorsk
New version with write support. I only tested it by uploading random files in /tmp so, to prevent accidental bricking of the unit, enabling upload requires manual editing of the file. If you know a little programming you'll find what to change
Well, once you added a "put" option, you may want to add the "remove" option as well. Just in case you added a file to the place, from where it will not be automatically deleted on reboot.

Hopefully, at some point someone will start messing with the TTF fonts, and go ahead and replace them, and the problem of cyrillic support will be more or less solved.

BTW, how come we don't see Igor and Slava at the Russian E-Book forums?
porkupan is offline   Reply With Quote
Old 10-16-2006, 08:40 AM   #29
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 I will add delete support too. However, you can already start messing with fonts on PC, as the core code is almost the same on both platforms. The fonts configuration is specified in kconfig.xml, element fsk/rootvm/ui/font. I tried editing it a bit but could not make Russian working. Maybe someone else will succeed.
igorsk is offline   Reply With Quote
Old 10-16-2006, 11:33 AM   #30
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
Adding new font didn't help much, even with updating kconfig.xml. Also, Reader (and CONNECT) seems to use Times style font by default.

Another thought. One could upload new RC script to init.d to run custom commands when Reader reboots, any volunteers ?-)
Slava is offline   Reply With Quote
Reply


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 01:17 AM.


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