Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2014, 10:49 AM   #1
tiniik
Junior Member
tiniik began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2014
Device: Kindle 4
Kindle 4 app development using serial port

Hi guys,

I would like to develop app for Kindle 4, which will show on display something I send there using serial port. Is it even possible? What programming language should I use? And most imortantly, where should I start? I tried some cross compiling c++ Hello world app, but I don't know how to get some output on kindle display.

Thanks for answers in advance.

Last edited by tiniik; 10-05-2014 at 10:55 AM.
tiniik is offline   Reply With Quote
Old 10-05-2014, 11:06 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by tiniik View Post
Hi guys,

I would like to develop app for Kindle 4, which will show on display something I send there using serial port. Is it even possible? What programming language should I use? And most imortantly, where should I start? I tried some cross compiling c++ Hello world app, but I don't know how to get some output on kindle display.

Thanks for answers in advance.
Using the serial port for general purpose I/O is not very practical.

Linux (and *nix in general) is designed to require an "Operator's Console".
On the Kindle, that is the serial port.

So to use the serial port for another purpose, you first need to find something else that the Linux kernel can use as the Operator's Console.
(That is possible - just not easy, even for an expert.)

Better that you use some sort of network connection to the Kindle for your project.

- - - - -

Your other questions are too general to give specific answers to.
knc1 is offline   Reply With Quote
Advert
Old 10-06-2014, 08:21 AM   #3
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
knc1, are you sure about the console? Couldn't the kernel console by redirected to a virtual console (ttyN), just like on a desktop Linux? Well, I'm not sure if the kernel is compiled with support for that, but chances are nobody bothered to disable that.

As for putting graphics onto the screen - there's a myriad of options. It's just a framebuffer device, so anything using that API would work. We implemented our own stuff for koreader (and arguably, one could fork off that for the task at hand). There's Qt , and more exotic things like Nano-X and probably others. The K4 doesn't have an X11 server like the newer models, I think, so that's not an option here. Kindlets are another approach. In general, I'd advise to look at software that is already there and build on top of that.
hawhill is offline   Reply With Quote
Old 10-06-2014, 09:48 AM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by hawhill View Post
knc1, are you sure about the console? Couldn't the kernel console by redirected to a virtual console (ttyN), just like on a desktop Linux? Well, I'm not sure if the kernel is compiled with support for that, but chances are nobody bothered to disable that.
- - - - -
Yes, fairly sure.

Ah, no - the console driver is a very "stupid" driver.
(And it isn't re-directed from the first serial port on your desktop either. ).
The virtual consoles are defined by inittab and use a much more sophisticated driver.

It can be re-directed to a "network console" - -
And I think the Amazon kernels have that enabled -
I have seen boot-up dmesg captures that show ip=0 .
(Which turns netconsole off.)

Geekmaster could probably tell us, if he ever got his "Kindle Wall" running.
knc1 is offline   Reply With Quote
Reply

Tags
development, kindle 4, serial port


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Touch serial port recovery sanshinron Kindle Developer's Corner 2 09-05-2013 12:34 PM
Kindle Touch serial port recovery. geekmaster Kindle Developer's Corner 41 03-11-2013 09:41 PM
K3 using serial port problem BusterBrown Kindle Developer's Corner 42 06-05-2012 06:11 PM
Kindle 4 Non touch serial port pinout geekmaster Kindle Developer's Corner 10 01-25-2012 06:12 PM
Help with unbricking kindle via serial port yifanlu Kindle Developer's Corner 12 03-10-2011 07:51 AM


All times are GMT -4. The time now is 10:16 AM.


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