01-26-2008, 02:58 PM | #1 |
Member
Posts: 24
Karma: 10
Join Date: Jan 2008
Device: Tablet PC
|
Background/scheduled downloader daemon
When you subscribe to RSS feeds or newspapers via Amazon's service, the Kindle automatically downloads them. There must be some kind of scheduler "daemon" on the device, which presumably has a queue of content that it needs to refresh.
It would be interesting to figure out if it is possible to make use of this daemon to refresh content outside of Amazon's service. For example, FeedBooks.com offers a catalog of their ebooks, in a mobi format. The user is supposed to use the browser to go and download that catalog. From there the user can pick and choose from the catalog and download individual items. Would it be possible for the FeedBooks.com catalog to get automatically refreshed once a week? This is just an example of course and there are many applications beyond that, if someone could find a hack to do it Cheers, Julien |
01-27-2008, 05:15 PM | #2 |
Connoisseur
Posts: 81
Karma: 100
Join Date: Jan 2008
Device: Kindle
|
According to Igorsk blog article on hacking the kindle command line, this is the result of a check of all running processes. Since he probably wasn't downloading a book at the time, the daemon may not be one of these processes unless it polls amazon frequently to check for new purchases.
Code:
[root@kindle root]# ps -A f PID TTY STAT TIME COMMAND 1 ? S 0:01 [swapper] 2 ? SN 0:00 [ksoftirqd/0] 3 ? S< 0:00 [events/0] 4 ? S< 0:00 \_ [khelper] 20 ? S< 0:10 \_ [kblockd/0] 87 ? S 0:02 \_ [pdflush] 89 ? S< 0:00 \_ [aio/0] 86 ? S 0:00 \_ [pdflush] 10 ? S 0:00 [sleepd] 33 ? S 0:00 [khubd] 88 ? S 0:00 [kswapd0] 676 ? S 0:12 [voltd] 678 ? S 0:02 [pnlcd_animate] 681 ? S 0:00 [kseriod] 710 ? S 0:00 [wantph] 709 ? S 0:00 [wanend] 721 ? S 0:00 [mmcdd] 727 ? S 0:00 [hpdetd] 740 ? Ss 0:00 init 1116 tts/2 Ss 0:00 \_ -sh 2344 tts/2 R+ 0:00 \_ ps -A f 831 ? S 0:00 [kjournald] 884 ? S 0:03 /sbin/syslogd -m 0 -b 1 -S -s 250 887 ? S 0:01 /sbin/klogd 976 ? S 0:00 [eink_fb_apt] 974 ? S 0:04 [eink_fb_udt] 975 ? S 0:00 [eink_fb_sst] 1023 ? S 0:07 [f-s-gadget] 1024 ? S 0:00 [f-s-activity] 1063 ? S 0:00 [wdtpmd] 1071 ? S 0:00 /usr/sbin/watchdogd -k 9 -t 30 1079 ? S 0:00 /usr/sbin/netwatchd -d 20 -t 5 -p www.amazon.com 1086 ? S 0:03 /usr/sbin/nomkd -v 80 -r 44 -d 23 cvm 1092 ? S 0:00 crond -l 9 -c /etc/crontab 1097 ? S 0:00 /bin/sh /usr/sbin/tphmonitor 1101 ? S 0:00 \_ /usr/sbin/tphserver -f 1119 ? S 0:00 /bin/sh /usr/sbin/execmonitor 1128 ? S 0:00 \_ /usr/sbin/execserver 1123 ? S 0:00 /bin/sh /opt/amazon/ebook/bin/run_framework 1169 ? S 0:00 \_ /bin/sh /opt/amazon/ebook/bin/start.sh 1173 ? SL 0:18 \_ /usr/java/bin/cvm -Xmx16m -Dsun.boot.library.path=/opt/usr/java/lib:/usr/java/lib -cp :/opt/amazon/ebook/lib/MobiCore-impl.jar:/opt/amazon/ebook/lib/MobipocketCoreReader.jar:/opt/amazon/ebook/lib/ReaderSDK.jar:/opt/amazon/ebook/lib/SearchSDK.jar:/opt/amazon/ebook/lib/framework-api.jar:/opt/amazon/ebook/lib/framework-impl.jar:/opt/amazon/ebook/lib/jdbm.jar:/opt/amazon/ebook/lib/json.jar:/opt/amazon/ebook/lib/kxml2.jar:/opt/amazon/ebook/lib/xyml.jar:/opt/amazon/ebook/booklet/AudiblePlayer.jar:/opt/amazon/ebook/booklet/AudioPlayer.jar:/opt/amazon/ebook/booklet/Browser.jar:/opt/amazon/ebook/booklet/ContentManager.jar:/opt/amazon/ebook/booklet/Demo.jar:/opt/amazon/ebook/booklet/Experimental.jar:/opt/amazon/ebook/booklet/Home.jar:/opt/amazon/ebook/booklet/MobiReader.jar:/opt/amazon/ebook/booklet/PictureViewer.jar:/opt/amazon/ebook/booklet/PrefBooklet.jar:/opt/amazon/ebook/booklet/Search.jar:/opt/amazon/ebook/booklet/XymlBooklet.jar:/opt/amazon/ebook/booklet/msp.jar:/opt/usr/java/lib/libjnisystem.jar -Ddebug=1 -Dcheck_comm_stack=true -Dhttp.keepalive.timeout=60000 -Dhttp.maxConnections=16 -Dallow_demo=false -Dawt_fb_enable=0 -Dextkeyboard=false -Dconfig=/opt/amazon/ebook/config/framework-unix.conf -DENABLE_SEARCH_INDEXING_THREAD=true -Dprintdebugtime=false com.amazon.ebook.framework.Main (around 30 cvm copies skipped) 2298 ? S 0:00 [mmcqd] Have to go now. Will finish this comment when I have more time. |
Advert | |
|
01-27-2008, 06:50 PM | #3 |
Connoisseur
Posts: 81
Karma: 100
Join Date: Jan 2008
Device: Kindle
|
Continued
watchdogd is a daemon that triggers watchdog at regular intervals. watchdog is a program that causes the computer to reboot if the kernel halts. That's what I've gleaned. So it can't be our perp.
to be continued... |
01-27-2008, 10:27 PM | #4 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
I believe that's managed by "tphserver" process which probably gets events from the CDMA module. Search for "tph" in your logs.
|
01-27-2008, 10:28 PM | #5 | |
Connoisseur
Posts: 81
Karma: 100
Join Date: Jan 2008
Device: Kindle
|
[f-s-gadget] and [f-s-activity] are probably related to the File-backed Storage Gadget entry in the log file.
[mmcdd] probably has something to do with the sd slot. Kindle has sd instead of mmc cards, but mmc disk drive/daemon sounds right. There seems to be a asm/arch/mmc.h file in the kernel code. I couldn't be dead certain what it is, but my guess, for what it is worth, is media card driver. We could go through everything in the list, but I'm betting that netwatchd checks amazon every couple minutes to see if the network connection is available. If amazon is there, say if the network switch is on and you're in a reception area, it probably updates the content list and downloads what it needs to download. I managed to pluck this out of google cache. It was one of the only content links I found when I searched for netwatchd. As I'll explain below, this is not the same program as is running on the Kindle. I'm merely posting this because I think that it may give an indication of what netwatchd may do on the Kindle. Quote:
|
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fanfiction -> EPUB downloader | sigizmund | Deals and Resources (No Self-Promotion or Affiliate Links) | 34 | 01-12-2014 02:55 PM |
iLiad small ftp daemon (betaftpd) | TiGEr.zZ | iRex Developer's Corner | 1 | 04-07-2009 10:11 AM |
Google Book Downloader | TadW | News | 4 | 02-19-2009 10:25 PM |
(in)SECURE magazine Downloader | cen | iRex | 1 | 04-23-2008 04:53 PM |
Pdf background darker than LRF/RTF background | LOL2005 | Sony Reader | 2 | 10-23-2007 12:00 PM |