Log

July 17th,2009 Power Manager V1.1 Release

posted Jul 17, 2009, 1:52 PM by Diming Lu

July 12th, 2009 Openmoko Power Management Project Report Final Version Comes out

posted Jul 12, 2009, 7:30 AM by Diming Lu

Openmoko Power Management Project Report made by LaTex

July 10th,2009 Finish Openmoko Power Management Project Report Draft

posted Jul 12, 2009, 7:28 AM by Diming Lu

Finish Openmoko Power Management Project Report Draft

July 7th,2009 Finish Openmoko Power Manager Coding

posted Jul 12, 2009, 7:27 AM by Diming Lu

Finish Openmoko Power Manager Coding

Apr. 13th,2009 Get information and call method using DBus-glib API in G_TYPE int, string,and array string

posted Apr 13, 2009, 10:23 AM by Diming Lu   [ updated Apr 13, 2009, 11:25 AM ]

Today, I make a progress in this project. I can get some information and control some functions using call method or signal using DBus, but restrict the following return parameter type - string and array string.
 
First, I run the command in the terminal to get all the Bus names.
# dbus-send --system --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.ListActivatableNames
Bus example
 
method return sender=org.freedesktop.DBus -> dest=:1.50 reply_serial=2
   array [
      string "org.freedesktop.DBus"
      string "org.pyneo.muxer"
      string "fi.epitest.hostap.WPASupplicant"
      string "org.freesmartphone.DBus"
   ]
method return sender=org.freedesktop.DBus -> dest=:1.51 reply_serial=2
   array [
      string "org.freedesktop.DBus"
      string ":1.7"
      string ":1.8"
      string "org.freesmartphone.odeviced"
      string "org.freesmartphone.onetworkd"
      string "org.freesmartphone.ophoned"
      string ":1.9"
      string ":1.51"
      string "org.pyneo.muxer"
      string ":1.20"
      string "org.freedesktop.Avahi"
      string ":1.21"
      string "org.freesmartphone.ogpsd"
      string ":1.10"
      string "org.bluez"
      string ":1.11"
      string "org.freesmartphone.opreferencesd"
      string ":1.12"
      string "org.tichy.launcher"
      string ":1.13"
      string ":1.0"
      string "org.freesmartphone.frameworkd"
      string ":1.14"
      string ":1.1"
      string ":1.15"
      string "org.moblin.connman"
      string ":1.2"
      string "org.freesmartphone.otimed"
      string "org.freedesktop.Gypsy"
      string ":1.16"
      string ":1.3"
      string "org.freesmartphone.testing"
      string ":1.17"
      string ":1.18"
      string ":1.5"
      string ":1.19"
      string "org.freesmartphone.ousaged"
      string "org.freesmartphone.ogsmd"
      string "org.freesmartphone.oeventsd"
      string ":1.6"
   ]
 
Second, run the command to get apis
# ./dteeth.py [BUSNAME]
 
API example
org.freesmartphone.ousaged
    /org/freesmartphone/Usage
        org.freesmartphone.Usage
            signals
                ResourceAvailable( s resourcename , b state )
                SystemAction( s action )
                ResourceChanged( s resourcename , b state , a{sv} attributes )
            methods
                ReleaseResource( in s resourcename )
                Suspend( )
                GetResourceState( in s resourcename , out b )
                SetResourcePolicy( in s resourcename , in s policy )
                Reboot( )
                GetResourcePolicy( in s resourcename , out s )
                GetResourceUsers( in s resourcename , out as )
                ListResources( out as )
                RegisterResource( in s resourcename , in o path )
                RequestResource( in s resourcename )
                Shutdown( )
        org.freedesktop.DBus.Introspectable
            methods
                Introspect( out s )
Third, use the api to program
 
The following links are to download dteeth.py, APIs and sample dbus code(get the power status).
 
In this week, I will figure out call method parameter problem in TYPE boolean, a{sv} and int. Then, I will implement some basic features of power manager.
 

Feb. 23rd, 2009 API

posted Feb 22, 2009, 11:29 PM by Diming Lu   [ updated Feb 23, 2009, 12:13 AM ]

1. odeviced Device Control
2. gstreamer Audio
3. gsm0710muxd GSM
4. BlueZ Bluetooth
5. Network don't support now
 
Existing Approaches for Power Management
  • Opie's ODevice Abstraction Layer: A C++ API covering device button handling, suspend/resume, UI rotation, backlight, LED, sound.
  • Richard Purdie's zaurusd: A script based device daemon (somewhat like apmd) covering alsa audio scenario changes on headphone insertion/removal, automatic display rotation based on hinge sensor, out-of-display-bounds touchscreen keys.
  • GPE Phone's machined: A daemon that relays battery information via dbus.
  • OpenEZX's ezxd: A daemon that talks to the baseband processor to keep the device from shutting down. This may not be a good example, since it should rather be covered by our Open Phone Server.
  • OpenMoko's neod: A daemon that controls power management, display brightness, button handling, headphone insertion/removal, display rotation, display locking
  •  

    Feb. 22nd, 2009 Reading Paper

    posted Feb 22, 2009, 8:37 AM by Diming Lu   [ updated Feb 22, 2009, 8:45 AM ]

    Feb. 10th and 12th,2009 Experiment for Nokia N95 and Openmoko

    posted Feb 22, 2009, 7:52 AM by Diming Lu   [ updated Feb 22, 2009, 8:37 AM ]

     
    In these two days, Dr. Tyson, Dr. Li, Dr. Zhang and me went to CE lab of Engineering College @ FAMU&FSU to do experiments for Nokia N95 and Openmoko. We focused on the current variation of phone by constant power when we used some applications.
    Pic 1 Doing Experiment                  Pic 2 Software getting Data        Pic 3 Openmoko Connect      Pic 4 Power Supply
    Pic 5 Whole Equipments                  Pic 6  Welding                    Pic 7 Welded Phone 

    Feb. 9th, 2009 Install and Configure SDK

    posted Feb 9, 2009, 12:16 PM by Diming Lu   [ updated Feb 9, 2009, 12:18 PM ]

    I finished install and configured the openmoko SDK.

    Feb. 6th, 2009 Battery Test

    posted Feb 8, 2009, 9:10 PM by Diming Lu   [ updated Feb 8, 2009, 9:14 PM ]

    After installing Om 2008.12, moko battery life make a great progress. It offer a new feature Suspend. It can stop GPS automatically and standby.

    1-10 of 15