User Tools

Site Tools


doc:appunti:hardware:freerunner_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:freerunner_debian [2011/10/30 19:37] – [GSM/GPRS] niccolodoc:appunti:hardware:freerunner_debian [2011/11/01 16:23] (current) – [GSM/GPRS] niccolo
Line 171: Line 171:
   * **''/etc/freesmartphone/conf/default/fsogsmd.conf''**   * **''/etc/freesmartphone/conf/default/fsogsmd.conf''**
  
-The daemon will be started automatically by DBus, once a request is send to it.+Man page says: //The daemon will be started automatically by DBus, once a request is send to it//; actually the daemon is started just after ''fsodeviced'' is started.
  
 +The ''fsogsmd'' implementation is capable of **{{.:freerunner:0710-720.zip|GSM 07.10 Multiplexing}}** using the library ''libgsm0710mux'', so installing the **fso-abyss** or the previous **fso-gsm0710muxd** packages is not required.
 ===== The Devices ===== ===== The Devices =====
  
Line 229: Line 230:
  
   - The GSM modem gets powered-on with ''RequestResource''.   - The GSM modem gets powered-on with ''RequestResource''.
-  - APN, login and password are entered. 
   - Register on the GSM network.   - Register on the GSM network.
 +  - APN, login and password are entered.
   - Check PDP status and start the connection.   - Check PDP status and start the connection.
  
Line 236: Line 237:
 mdbus2 -s -i mdbus2 -s -i
 MDBUS2> org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.RequestResource GSM MDBUS2> org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.RequestResource GSM
-()+MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Network.Register
 MDBUS2> org.freesmartphone.ogsmd  /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.SetCredentials internet.wind wind wind MDBUS2> org.freesmartphone.ogsmd  /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.SetCredentials internet.wind wind wind
-() 
-MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Network.Register 
-() 
 MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.GetContextStatus MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.GetContextStatus
 ("released",{}) ("released",{})
 MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.ActivateContext MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.ActivateContext
-() 
 MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.GetContextStatus MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.GetContextStatus
 ("active",{}) ("active",{})
 MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.DeactivateContext MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.PDP.DeactivateContext
-()+MDBUS2> org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.Network.Unregister
 </code> </code>
  
Line 254: Line 251:
  
 === Other notes === === Other notes ===
- 
-FIXME Check the new **fso-abyss** package which superseed fso-gsm0710muxd, chek what are the proper packages to install: 
- 
-  * [[http://packages.debian.org/sid/fso-gsmd|fso-gsmd]] 
-  * [[http://packages.debian.org/sid/fso-abyss|fso-abyss]] 
-  * [[http://packages.debian.org/sid/fso-gsm0710muxd|fso-gsm0710muxd]] 
  
 FIXME The following is old stuff, superceeded by FSO Cornucopia implementation. FIXME The following is old stuff, superceeded by FSO Cornucopia implementation.
Line 497: Line 488:
 ==== WiFi broken in openmoko-panel-plugin ==== ==== WiFi broken in openmoko-panel-plugin ====
  
-The **fso-deviced-openmoko** should be patched because the sysfs path to control the WiFi power changed in kernel 2.6.34. See **[[http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647003|Debian bug #647003]]**.+The **fso-deviced-openmoko** before 0.9.5+git20110805-2 has a bug (the WiFi power sysfs path changed in kernel 2.6.34), see **[[http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647003|Debian bug #647003]]**.
  
 Also **''openmoko-panel-plugin''** must be patched to use the new FSO DBus interface. I will release that patched version soon. Also **''openmoko-panel-plugin''** must be patched to use the new FSO DBus interface. I will release that patched version soon.
Line 677: Line 668:
 Idle status is one of the following: **''busy''**, **''idle''**, **''idle_dim''**, **''idle_prelock''**, **''lock''** and **''suspend''**. To prevent the device entering a state, set its timeout to **''-1''** (see the note below). If a state is disabled, the subsequent states are never reached. Idle status is one of the following: **''busy''**, **''idle''**, **''idle_dim''**, **''idle_prelock''**, **''lock''** and **''suspend''**. To prevent the device entering a state, set its timeout to **''-1''** (see the note below). If a state is disabled, the subsequent states are never reached.
  
-**NOTE**: to set a timeout of **''-1''** you cannot use the command line because **''-1''** is interpreted as an option. Use this trick:+**NOTE**: to set a timeout of **''-1''** you cannot use the command line because **''-1''** is interpreted as an option. We can use the interactive mode of ''mdbus2'' (terminate with Ctrl-D): 
 + 
 +<code> 
 +mdbus2 -s -i 
 +MDBUS2> org.freesmartphone.odeviced /org/freesmartphone/Device/IdleNotifier/0 org.freesmartphone.Device.IdleNotifier.SetTimeout idle -1 
 +</code> 
 + 
 +If you want to use it into a script, just make this:
  
 <code bash> <code bash>
 +#!/bin/sh
 BUS='org.freesmartphone.odeviced' BUS='org.freesmartphone.odeviced'
 IDLE_SERVICE='/org/freesmartphone/Device/IdleNotifier/0' IDLE_SERVICE='/org/freesmartphone/Device/IdleNotifier/0'
doc/appunti/hardware/freerunner_debian.1319999857.txt.gz · Last modified: 2011/10/30 19:37 by niccolo