Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)
-
Upload
open-labs-albania -
Category
Technology
-
view
286 -
download
1
description
Transcript of Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)
![Page 1: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/1.jpg)
A Web Operating System for GTA02
Rezart Muco freelancer
open source passionate
![Page 2: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/2.jpg)
What is OpenMoko
Openmoko™ - Open. Mobile. Free.
Openmoko™ is a project dedicated to delivering mobile phones with an open source software stack. Openmoko was formerly
associated with Openmoko Inc, but is nowadays simply a gathering of people with the shared goal of "Free The Phone".
Distributors are currently selling updated versions of the Openmoko Inc's phone released in 2008.
![Page 3: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/3.jpg)
The phone
Cpu - 400 mhz, ARMv4 !!!Ram - 128 MB SDRAM totalMemory - 256MB NAND Flash
WiFi 802.11 b/g transceiver, Accelerometer, A-GPS
Its a very old phone !!
![Page 4: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/4.jpg)
The phone
Its seems that no decent distribution runs decently on this device.
So no Android. Linux runs well, but x11 was horrible!!!
I lost my
![Page 5: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/5.jpg)
Hacking with the phone
Let's grab the sources and Crosscompile :-)
●Linux Kernel●FreeSmartphone.org●Qt Framework
![Page 6: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/6.jpg)
Hacking with the phone
After 2 years hacking with the openmoko I came up with this
![Page 7: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/7.jpg)
Hacking with the phone
Using HTML and Javascript to make the UI of the system
<html> <head>
<script> ….... </script>
</head></html>
![Page 8: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/8.jpg)
Hacking with the phone
A quick view of the system browser
<html> <head>
<script> device.vibro(1000,70);
….... </script>
</head></html>
The system browser , its a very simple Webkit Browser, enriched with special javascript objects.Those objects are able to control the phone
GSM DEVICE
Call to Sysfs to make the phone vibrate
![Page 9: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/9.jpg)
Hacking with the phone
Example application for scanning wifi networks
<ul id="list"> <li> Scanning for Wifi </li></ul><script>
function scanfornets(){var nets=device.shell_exec("iwlist eth0 scan | awk '/ESSID/ {print $1 $2 } ' ","");var p=nets.split('\n');for(var i=0;i<p.length;i++){ var v=p[i].split(":"); if(v[1]!=undefined){ icon('wifi_'+i,"Net : ",v[1],"list","systemjs/dstatus.html"); } }}
scanfornets();icon('back',"Back",'',"list","systemjs/dstatus.html"); </script>
![Page 10: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/10.jpg)
Hacking with the phone
Advantages of using this approach
●There are no 'Native Applications'
●Can use the power of css and jquery, to make a beatifull UI for my phone
●IF you dont like, you can write yourself
your OS. That's a free phonefree phone
![Page 11: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/11.jpg)
Show phone
![Page 12: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/12.jpg)
Questions
![Page 13: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)](https://reader033.fdocuments.in/reader033/viewer/2022052307/548d14c0b479598e6a8b466b/html5/thumbnails/13.jpg)