![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 134
Karma: 589
Join Date: Jun 2011
Device: Entourage Pocket Edge(Black)
|
tips on pe/ee development
I'm glad to see new development coming up and would like to share all my discovery during the developement of lcd2eink, and also all source code.
1.Architecture. PE/EE is an android tablet with a reader panel which consists of an eink screen and 4 reader buttons (zoom,next page,previous page,app switcher),and a wacom touch. Android can only access the tablet. The reader panel is controlled by 3 esi natvie linux eink softwares(esireader,esicalendar,esijournal). Android reader/calander/journal apps use udp socket to communicate with eink software following a priviate application protocol, and in this way they work together. 2.How to use reader buttons and wacom touch in your development. Thanks to linux,all key events,touch events can be captured by reading dev files. Read /dev/input/event1 you can get reader button events.value =1 means press, value = 0 means release;key code for app switcher button is 183,next page is 109,previous page is 104. I didn't use zoom button so I can't remember it's key,but you can try yourself. Read /dev/input/event6 for wacom event, Write to /dev/input/event4 on pe or /dev/input/event3 on ee to fake touch in the tablet side.In lcd2eink I fake some touch while reading next page button press or previous page button press, so that the app running on android will think it has got a swipe on the screen. Write to /sys/class/graphics/fb2/rotate then the display on eink will rotate. Read /sys/class/backlight/pwm-backlight.0/brightness to get hte current birghtness of lcd and save it,write 0 to it to turn the backlight off. Write the saved value to it to bring backlight on. 3. /dev/graphics/fb0 is for lcd display, /dev/graphics/fb2 is for eink display,which may have been well known. Thanks vldmr for the ebclass . Thanks sunlifeng for the "trick writes frame buffer on EE". I also attached the latest source code for lcd2ink fyi.( not the source code for the last released lcd2eink,but newer which includes some new feature that may confuse a user who is not a developer.) Good luck. |
![]() |
![]() |
![]() |
#2 |
Bigendian confidologist
![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 494
Join Date: Oct 2011
Device: edge & edgejr
|
Hey, javese, glad to see you back here!
Thanks for sharing all your findings, this is solid gold and saves a lot of life time and frustration to anyone trying to program for edge! Very kind of you to take time to share all this. Thanks |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2007
Device: irex iliad
|
Javese, you are wonderful!!! Thanks a lot.
|
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() Posts: 54
Karma: 104
Join Date: Dec 2011
Device: nook
|
Javese, big thanks!
Could anybody add to thread "/system/usr/keylayout/qwerty.kl" file from edge system? Or maybe, is there any android image for edge? |
![]() |
![]() |
![]() |
#5 | |
Bigendian confidologist
![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 494
Join Date: Oct 2011
Device: edge & edgejr
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Enthusiast
![]() ![]() Posts: 28
Karma: 122
Join Date: Feb 2012
Device: Kindle touch,EE
|
Quote:
Zoom button is 184 .I use this key in my program as the capture image key . Thanks for your share , especially the tips of brightness . It sames I am doing something you have done . I get the lcd2eink's source ,build and run it. Find that you have build-in fb direct write mode which I was doing on for one week . Here is some code use mmap in cpp;use mmap write fb2 is fast than write file; Quote:
Last edited by sunlifeng; 03-18-2012 at 10:05 AM. Reason: Something to say |
||
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 134
Karma: 589
Join Date: Jun 2011
Device: Entourage Pocket Edge(Black)
|
Thanks all for your kind words.Thank kammerer for your great reader software.Thanks sunlifeng for the key code for zoom button and codes for mmap.
sunlifeng I'm not leaving the pe/ee community but my enthusiasm for development on pe/ee waned. I do not want to damp down your spirits but the first day I tried to write fb2 I noticed odd power consumption in my pe which was eventually out of battery with a red flash led. Anyway I got one more tip to share. echo 7 > /sys/class/graphics/fb2/update_mode will put your eink to update mode 15 which is used by the eink journal and calendar software. In this mode you can write on the eink screen. I found this when looking for the 1 bit mode of eink in pe,which I was hoping to use for creating a prompt eink web browser. Unfortunately I didn't find the 1 bit mode. |
![]() |
![]() |
![]() |
#8 | ||
Enthusiast
![]() ![]() Posts: 28
Karma: 122
Join Date: Feb 2012
Device: Kindle touch,EE
|
Quote:
Quote:
0x4583 is update screen partly. the epd_params should be try out . Last edited by sunlifeng; 03-19-2012 at 08:56 AM. |
||
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 858
Karma: 1027478
Join Date: Aug 2010
Location: South of France
Device: kindle dx; eDGe
|
One question, how much of this information can be applied to the EE? One day I might manage to get my programmer interested in doing something for the EE. At the moment she says keeping our and clients servers going is enough but you never know.
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() ![]() Posts: 28
Karma: 122
Join Date: Feb 2012
Device: Kindle touch,EE
|
All the information work on EE . I am using EE now.
|
![]() |
![]() |
![]() |
#11 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 134
Karma: 589
Join Date: Jun 2011
Device: Entourage Pocket Edge(Black)
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Android Development | mba | enTourage Archive | 0 | 04-15-2010 07:08 AM |