OpenmokoFramework/zh cn

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: {{Languages|OpenmokoFramework}} {{Introbox}} ''Note: This is the (ongoing) description of the new framework architecture that is '''in development'''. See OpenmokoOldFramework for ...)
 
Line 33: Line 33:
  
 
=How to achieve that technically=
 
=How to achieve that technically=
* Chose [[Dbus]] as the collaboration line. Below dbus, we can work together. Above dbus, we can differentiate.
+
* 选择[[Dbus]]作为协同开发分界线。Dbus下层,我们合作开发,Dbus上层,我们使用不同的方式实现。
 
* Expose features through dbus APIs implemented by UI-agnostic and language-agnostic services (daemons).
 
* Expose features through dbus APIs implemented by UI-agnostic and language-agnostic services (daemons).
 
* Optimize for Openmoko devices, but support multiple architectures and purposes through plugin interfaces and suitable hardware abstraction mechanisms.
 
* Optimize for Openmoko devices, but support multiple architectures and purposes through plugin interfaces and suitable hardware abstraction mechanisms.
Line 88: Line 88:
 
to export virtual serial lines over -- again -- AT-protocol can be spoken.
 
to export virtual serial lines over -- again -- AT-protocol can be spoken.
  
====Bluetooth====
+
====蓝牙====
The low level Bluetooth services rely on the official Linux Bluetooth subsystem:
+
底层蓝牙实现依赖于linux核心实现的bluez蓝牙栈框架:
 
* [http://www.bluez.org BlueZ].
 
* [http://www.bluez.org BlueZ].
  
Line 96: Line 96:
 
* [http://gypsy.freedesktop.org Gypsy]
 
* [http://gypsy.freedesktop.org Gypsy]
  
====Network====
+
====网络====
The low level networking service assumes network interfaces, such as USB, Ethernet, Wifi, etc. We rely on the following software here:
+
底层网络服务实现网络接口,例如USB,以太网,Wifi等。We rely on the following software here:
 
* Network Manager or Intel Connection Manager (undecided yet)
 
* Network Manager or Intel Connection Manager (undecided yet)
 
* ppp
 
* ppp
Line 110: Line 110:
 
See discussion page about PolicyKit.
 
See discussion page about PolicyKit.
  
====Events====
+
====事件====
* signaling events via I/O (ringing, blinking, vibrating)
+
* 经由I/O的事件信号(掁铃, 闪烁, 掁动)
* might use fd.o notification API
+
* 可能使用 fd.o 通知 API
  
 
====PIM====
 
====PIM====
An intelligent storage database server. This is being carried out as a Google Summer of Code project. See complete description [http://www.neo1973-germany.de/wiki/pyPimd here]
+
一个智能存储数据库. This is being carried out as a Google Summer of Code project. See complete description [http://www.neo1973-germany.de/wiki/pyPimd here]
  
 
====Context====
 
====Context====
Line 122: Line 122:
 
Reference Geoclue
 
Reference Geoclue
  
====Telephony====
+
====电信业务====
* Voice
+
* 语音
* Data
+
* 数据
  
 
=== [http://www.freesmartphone.org/index.php/Implementations/OpenPreferencesDaemon Preferences] ===
 
=== [http://www.freesmartphone.org/index.php/Implementations/OpenPreferencesDaemon Preferences] ===
* settings database
+
* 配置数据库
  
====Network====
+
====网络====
* high level networking queries
+
* 高级网络请求
  
=Implementation=
+
=实现情况=
  
===Completion Status===
+
===完成状态===
  
====Low Level====
+
====底层====
* device control: 50%
+
* 设备控制: 50%
* audio: 80%
+
* 声音设备: 80%
 
* GSM: 80%
 
* GSM: 80%
* Bluetooth: 80%
+
* 蓝牙: 80%
 
* GPS: 80%
 
* GPS: 80%
* Network: 50%
+
* 网络: 50%
  
====High Level====
+
====高层====
 
* Usage: 0%
 
* Usage: 0%
 
* Event: 0%
 
* Event: 0%
 
* [http://www.freesmartphone.org/index.php/Implementations/OpenPreferencesDaemon Preferences]: 50%
 
* [http://www.freesmartphone.org/index.php/Implementations/OpenPreferencesDaemon Preferences]: 50%
 
* Context: 0%
 
* Context: 0%
* Telephony: 50%
+
* 电话业务: 50%
* Networking: 0%
+
* 联网: 0%
* PIM: 0%
+
* 个人信息管理(PIM): 0%
  
 
=The role of Python=
 
=The role of Python=
  
Where we write new code, we will use Python to implement the dbus services. The reason for that being the rapid prototyping nature of Python and the emphasis on the Dbus APIs. Using Python, the turnaround times to experiment with APIs are incredibly faster than for using a compiled language such as C or C++.
+
在启用新代码时,我们使用Python脚本实现dbus服务。这么做可以快带原型实现 The reason for that being the rapid prototyping nature of Python and the emphasis on the Dbus APIs. Using Python, the turnaround times to experiment with APIs are incredibly faster than for using a compiled language such as C or C++.
  
 
Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, ''if'' necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.
 
Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, ''if'' necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.
Line 171: Line 171:
 
'''Subsystem Ownership'''
 
'''Subsystem Ownership'''
  
''Phase 1 subsystems''
+
''第一阶段子系统''
  
 
* odeviced (mickey)
 
* odeviced (mickey)
Line 182: Line 182:
 
''Phase 2 subsystems''
 
''Phase 2 subsystems''
  
* network (to be defined)
+
* 网络 (to be defined)
 
* pim (to be defined)
 
* pim (to be defined)
  

Revision as of 07:00, 9 July 2008


Introduction



Note: This is the (ongoing) description of the new framework architecture that is in development. See OpenmokoOldFramework for the framework architecture of 2007.1 and 2007.2 and NeoSoftwareStack for the current status (which has nothing to do yet with this framework)

Contents

Answering the TOP x questions

  • Question 1: Is this a part of the current images yet?
  • Answer: No.
  • Question 2: Is this the mystic ASU?
  • Answer: No.
  • Question 3: When can I see this as part of an image?
  • Answer: See roadmap at the bottom of this document. It's going to be an interesting autumn and winter '08 ;)
  • Question 4: What's the current status?
  • Answer: See right below:

Purposes

  • Give people the infrastructure to create solid and exciting software products based on the Openmoko platform
  • Support competing UIs while collaborating on developing services
  • Encourage framework users (e.g. application developers) to also contribute to the framework

Requirements

  • Make it simple
  • Concentrate on core services
  • Be programming language agnostic
  • Be UI toolkit agnostic
  • Try to reuse existing technologies as much as possible, but not at the cost of a bad API

How to achieve that technically

  • 选择Dbus作为协同开发分界线。Dbus下层,我们合作开发,Dbus上层,我们使用不同的方式实现。
  • Expose features through dbus APIs implemented by UI-agnostic and language-agnostic services (daemons).
  • Optimize for Openmoko devices, but support multiple architectures and purposes through plugin interfaces and suitable hardware abstraction mechanisms.
  • Be not afraid of reinventing the wheel for a wheel-barrow if all the existing wheels are made for sports cars.

Mandatory Readings

What this is NOT about

This initiative does not cover low level services such as

  • Bootloader, Kernel, or System Init.

This initiative does not cover high level services such as

  • X-Window-System, Window Manager, UI Toolkits,
  • Application Launchers, Applications, or Fancy UIs.

Architectural Overview

frontside

Software Components

We differenciate between low-level and high-level services -- dbus will be used to communicate horizontally and vertically.

Low-Level Services

Device Control

The low level device control service manages peripheral control, i.e. controlling power for individual subsystems such as

  • GSM, WiFi, Bluetooth, GPS, as well as
  • Backlight brightness and power,
  • turning LEDs on and off, etc.

It also deals with

  • charging, suspend/resume,
  • accellerometers, and buttons.

Last but not least, it sends notifications about the user's activity so that listeners have a chance to

  • change to powersaving modes, or
  • lock the device.

We implement the following software for that:

Audio

The low level audio service relies on a working alsa device driver. On top of that, there are two components:

  1. gstreamer
  2. pulseaudio

Gstreamer is to be used for all kinds of event sounds where a) multiple audio formats need to be supported and b) a latency of about one second is acceptable. This goes for e.g. ring tones, welcome tones, plug indication.

Pulseaudio is to be used for event sounds, where low-latency is necessary, e.g. touch click sounds and UI event acknowledge sounds. Pulseaudio is our general all-purpose mixer. Gstreamer will use the pulseaudio sink to feed audio through.

GSM

The low level GSM services expect a modem complying to GSM 07.07, GSM 07.05, and assorted GSM specifications, talking an AT-protocol over a serial line. If GSM 07.10 is supported, we use the multiplexing daemon

to export virtual serial lines over -- again -- AT-protocol can be spoken.

蓝牙

底层蓝牙实现依赖于linux核心实现的bluez蓝牙栈框架:

GPS

The low level GPS services assume a GPS device that talks NMEA over a device node. We rely on the following software:

网络

底层网络服务实现网络接口,例如USB,以太网,Wifi等。We rely on the following software here:

  • Network Manager or Intel Connection Manager (undecided yet)
  • ppp

High Level

Usage

The Usage subsystem is coordinating application I/O requirements preventing. Applications are not supposed to turn on or off devices, since they do not have any knowledge about concurrent applications that may be also using the device -- think reference counting for I/O requirements.

With this added layer, we could later think about monitoring subsystems, subsystem usage statistics, or accounting.

See discussion page about PolicyKit.

事件

  • 经由I/O的事件信号(掁铃, 闪烁, 掁动)
  • 可能使用 fd.o 通知 API

PIM

一个智能存储数据库. This is being carried out as a Google Summer of Code project. See complete description here

Context

  • Intelligent context API, integrating location as one -- among other -- sources

TBD Reference Geoclue

电信业务

  • 语音
  • 数据

Preferences

  • 配置数据库

网络

  • 高级网络请求

实现情况

完成状态

底层

  • 设备控制: 50%
  • 声音设备: 80%
  • GSM: 80%
  • 蓝牙: 80%
  • GPS: 80%
  • 网络: 50%

高层

  • Usage: 0%
  • Event: 0%
  • Preferences: 50%
  • Context: 0%
  • 电话业务: 50%
  • 联网: 0%
  • 个人信息管理(PIM): 0%

The role of Python

在启用新代码时,我们使用Python脚本实现dbus服务。这么做可以快带原型实现 The reason for that being the rapid prototyping nature of Python and the emphasis on the Dbus APIs. Using Python, the turnaround times to experiment with APIs are incredibly faster than for using a compiled language such as C or C++.

Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, if necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.

Team & Roadmap

Team

Subsystem Ownership

第一阶段子系统

  • odeviced (mickey)
  • ophoned (mickey)
  • ousaged (jan)
  • oeventd (jan)
  • opreferencesd (guillaume)
  • ocontextd (guillaume)

Phase 2 subsystems

  • 网络 (to be defined)
  • pim (to be defined)

Roadmap

The milestone releases are combined Openmoko Framework and Zhone releases. Remember: A feature that isn't visible, working, and tested in our framework testing application (Zhone) does not exist. Until Framework 1.0.0 (later this year), we will not use any versioning in components. Afterwards, individual components may see individual releases.

Note: The milestones and tasks moved over to our issue tracker.


Personal tools


Introduction



Note: This is the (ongoing) description of the new framework architecture that is in development. See OpenmokoOldFramework for the framework architecture of 2007.1 and 2007.2 and NeoSoftwareStack for the current status (which has nothing to do yet with this framework)

Answering the TOP x questions

  • Question 1: Is this a part of the current images yet?
  • Answer: No.
  • Question 2: Is this the mystic ASU?
  • Answer: No.
  • Question 3: When can I see this as part of an image?
  • Answer: See roadmap at the bottom of this document. It's going to be an interesting autumn and winter '08 ;)
  • Question 4: What's the current status?
  • Answer: See right below:

Purposes

  • Give people the infrastructure to create solid and exciting software products based on the Openmoko platform
  • Support competing UIs while collaborating on developing services
  • Encourage framework users (e.g. application developers) to also contribute to the framework

Requirements

  • Make it simple
  • Concentrate on core services
  • Be programming language agnostic
  • Be UI toolkit agnostic
  • Try to reuse existing technologies as much as possible, but not at the cost of a bad API

How to achieve that technically

  • Chose Dbus as the collaboration line. Below dbus, we can work together. Above dbus, we can differentiate.
  • Expose features through dbus APIs implemented by UI-agnostic and language-agnostic services (daemons).
  • Optimize for Openmoko devices, but support multiple architectures and purposes through plugin interfaces and suitable hardware abstraction mechanisms.
  • Be not afraid of reinventing the wheel for a wheel-barrow if all the existing wheels are made for sports cars.

Mandatory Readings

What this is NOT about

This initiative does not cover low level services such as

  • Bootloader, Kernel, or System Init.

This initiative does not cover high level services such as

  • X-Window-System, Window Manager, UI Toolkits,
  • Application Launchers, Applications, or Fancy UIs.

Architectural Overview

frontside

Software Components

We differenciate between low-level and high-level services -- dbus will be used to communicate horizontally and vertically.

Low-Level Services

Device Control

The low level device control service manages peripheral control, i.e. controlling power for individual subsystems such as

  • GSM, WiFi, Bluetooth, GPS, as well as
  • Backlight brightness and power,
  • turning LEDs on and off, etc.

It also deals with

  • charging, suspend/resume,
  • accellerometers, and buttons.

Last but not least, it sends notifications about the user's activity so that listeners have a chance to

  • change to powersaving modes, or
  • lock the device.

We implement the following software for that:

Audio

The low level audio service relies on a working alsa device driver. On top of that, there are two components:

  1. gstreamer
  2. pulseaudio

Gstreamer is to be used for all kinds of event sounds where a) multiple audio formats need to be supported and b) a latency of about one second is acceptable. This goes for e.g. ring tones, welcome tones, plug indication.

Pulseaudio is to be used for event sounds, where low-latency is necessary, e.g. touch click sounds and UI event acknowledge sounds. Pulseaudio is our general all-purpose mixer. Gstreamer will use the pulseaudio sink to feed audio through.

GSM

The low level GSM services expect a modem complying to GSM 07.07, GSM 07.05, and assorted GSM specifications, talking an AT-protocol over a serial line. If GSM 07.10 is supported, we use the multiplexing daemon

to export virtual serial lines over -- again -- AT-protocol can be spoken.

Bluetooth

The low level Bluetooth services rely on the official Linux Bluetooth subsystem:

GPS

The low level GPS services assume a GPS device that talks NMEA over a device node. We rely on the following software:

Network

The low level networking service assumes network interfaces, such as USB, Ethernet, Wifi, etc. We rely on the following software here:

  • Network Manager or Intel Connection Manager (undecided yet)
  • ppp

High Level

Usage

The Usage subsystem is coordinating application I/O requirements preventing. Applications are not supposed to turn on or off devices, since they do not have any knowledge about concurrent applications that may be also using the device -- think reference counting for I/O requirements.

With this added layer, we could later think about monitoring subsystems, subsystem usage statistics, or accounting.

See discussion page about PolicyKit.

Events

  • signaling events via I/O (ringing, blinking, vibrating)
  • might use fd.o notification API

PIM

An intelligent storage database server. This is being carried out as a Google Summer of Code project. See complete description here

Context

  • Intelligent context API, integrating location as one -- among other -- sources

TBD Reference Geoclue

Telephony

  • Voice
  • Data

Preferences

  • settings database

Network

  • high level networking queries

Implementation

Completion Status

Low Level

  • device control: 50%
  • audio: 80%
  • GSM: 80%
  • Bluetooth: 80%
  • GPS: 80%
  • Network: 50%

High Level

  • Usage: 0%
  • Event: 0%
  • Preferences: 50%
  • Context: 0%
  • Telephony: 50%
  • Networking: 0%
  • PIM: 0%

The role of Python

Where we write new code, we will use Python to implement the dbus services. The reason for that being the rapid prototyping nature of Python and the emphasis on the Dbus APIs. Using Python, the turnaround times to experiment with APIs are incredibly faster than for using a compiled language such as C or C++.

Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, if necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.

Team & Roadmap

Team

Subsystem Ownership

Phase 1 subsystems

  • odeviced (mickey)
  • ophoned (mickey)
  • ousaged (jan)
  • oeventd (jan)
  • opreferencesd (guillaume)
  • ocontextd (guillaume)

Phase 2 subsystems

  • network (to be defined)
  • pim (to be defined)

Roadmap

The milestone releases are combined Openmoko Framework and Zhone releases. Remember: A feature that isn't visible, working, and tested in our framework testing application (Zhone) does not exist. Until Framework 1.0.0 (later this year), we will not use any versioning in components. Afterwards, individual components may see individual releases.

Note: The milestones and tasks moved over to our issue tracker.