Friday, February 28, 2014

System Architecture

The system has a simple design with ‘N’ kindles, a server in the back-end and an Arduino to integrate all the e-ink controllers. It  consists of an array of kindles in a particular orientation which displays an image of a bookshelf. The kindles are hard coded to display an image that is sent via a USB cord.  Each kindle in the array receives a part of the image to display. The displays are all integrated by an Arduino connected to the e-ink controllers on the kindle motherboards.

In the server, a cron is initialized to run a script at regular intervals to refresh the content on the display to pull out new data from the server which runs the program. Any changes in the code is reflected on the display. Two attributes are defined, one for the orientation of the kindle, vertical and horizontal, and the other one addresses a particular kindle in the array. For example, if the 3rd kindle in the array is horizontal, the respective part of the image is sent to it and refreshed periodically. The program in the server is used to control the display without interfering with the kindles.

Alternatively, a web application can be used to control the display, requesting through http. This will cause the image to be refreshed each time the request is made.

Tuesday, February 18, 2014

Developing Kindlets

Kindlets are applications that you can run on your kindle. They have .azw format which is an extension of a Jar file. The back-end development of Kindlets are done in Java and the resulting jar file is exported into the kindle in e-book format(.azw). 

The basics of kindle development can be found in Kindle developer's Corner on mobileread.com. The code is executed against the kindle libraries which are provided by Amazon. There are many ways to obtain these libraries, but the easiest way is to obtain it manually from the opt folder in the root. As mentioned in my previous post, the kindle has to be rooted(jailbreak) to access the apps that we develop. The jailbreak basically installs a developer's certificate in the device so we can access the root and perform any operation. 

Once the code is generated, we need to sign the application with the developer keys, change the format of the resulting jar file to kindle content and transfer it to the Documents folder in the root. Thus the interactive kindlet is ready for use. Another method is to install the usb-networking(after the jail-break) on the kindle and ssh into it from the computer. This helps in executing code on the Kindle.

For the project, I'm building a java code to implement a bookshelf app that can hold books with spines on shelves rather than the front covers. Once the app is deployed on the Kindle Paperwhite, I should be able to test it with different sizes of books. 



Tuesday, February 11, 2014

Kindle Hack to display an image

The Kindle Paperwhite is one of the best e-ink readers in the market. The fact that it is light on the eye and the battery that stays on for weeks are some features that it can boast of, and which are not present in any other e-readers.

The idea of displaying books as spines on a large e-ink display, gave rise to some experiments on how to display customized images in each kindle display. First the Paperwhite had to be rooted for installing screen savers or third party apps. This can be achieved by installing the jailbreak in the root folder and updating the kindle. The words 'JAILBREAK' appears in the bottom of the screen. The jailbreak files can be found here:  http://www.mobileread.com/forums/showthread.php?t=186645

Once it is jail broken, we can install custom hacks or run any third party app on it. The project required displaying an image on the Paperwhite (a portion of an image of a digital bookshelf). The screensaver hack provided this functionality. Using photo shop a digital bookshelf image was cropped, converted to grey-scale and displayed as a screensaver. If the other portions of the image are sent to other kindles and they are all integrated, a large e-ink digital bookshelf can be visualized.

This provides just the display, but the touch feature cannot be harnessed. An interactive display is the final product that I'm aiming at and this hack does not foresee that. The next steps are figuring how to make the display interactive or developing an application for the paperwhite that resembles a bookshelf app in android or IOS.