![]() |
#1 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#2 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. |
|
![]() |
![]() |
![]() |
Tags |
development, kindle 4, serial port |
|
![]() |
||||
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 |