doc:appunti:hardware:freerunner_debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:hardware:freerunner_debian [2011/10/29 23:51] – [The FSO DBus interface] niccolo | doc:appunti:hardware:freerunner_debian [2011/11/01 14:28] – [WiFi broken in openmoko-panel-plugin] niccolo | ||
---|---|---|---|
Line 129: | Line 129: | ||
* **fso-deviced-openmoko** | * **fso-deviced-openmoko** | ||
* **fso-deviced** | * **fso-deviced** | ||
+ | * **fso-gsmd-openmoko** | ||
+ | * **fso-gsmd** | ||
* **mdbus2** | * **mdbus2** | ||
* **fsoraw** | * **fsoraw** | ||
Line 162: | Line 164: | ||
</ | </ | ||
+ | ==== fso-gsmd ==== | ||
+ | |||
+ | The configuration file is: | ||
+ | |||
+ | * **''/ | ||
+ | * **''/ | ||
+ | |||
+ | 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 '' | ||
+ | |||
+ | The '' | ||
===== The Devices ===== | ===== The Devices ===== | ||
Line 175: | Line 187: | ||
==== GSM/GPRS ==== | ==== GSM/GPRS ==== | ||
- | Shuld upgrade | + | === Upgrading |
- | FIXME Check the new **fso-abyss** package which superseed fso-gsm0710muxd, | + | I don't need to upgrade |
- | * [[http:// | + | < |
- | * [[http:// | + | AT+CGMR |
- | * [[http:// | + | +CGMR: "GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko11" |
+ | </code> | ||
- | FSO provides a nice multiplexing of GSM/GPRS. Different aplications can talk to the GSM modem concurrently and place GSM calls while running a GPRS internet | + | === TCP/IP connection (GPRS) === |
- | Clicking on the GSM icon on the panel should allow to start/stop a GPRS connection. Unfortunately | + | The TCP/IP connection is called |
- | <code bash> | + | '' |
- | #!/bin/sh | + | |
- | # Don't use GSM multiplexer, | + | <file> |
- | killall gsm0710muxd | + | # Conseder also the options ktune; |
- | om gsm power 1 | + | ppp_options = debug; |
- | poff -a | + | </file> |
- | pon | + | |
+ | === Missing ppp2fsogsmd.so === | ||
+ | |||
+ | There was the [[http:// | ||
+ | |||
+ | < | ||
+ | [INFO] | ||
+ | [INFO] | ||
+ | [WARN] | ||
+ | </ | ||
+ | |||
+ | I had to make this symlink: | ||
+ | |||
+ | < | ||
+ | / | ||
</ | </ | ||
Line 200: | Line 227: | ||
This is the service provided by the package **fso-gsmd** and the low-level driver **fso-gsmd-openmoko**, | This is the service provided by the package **fso-gsmd** and the low-level driver **fso-gsmd-openmoko**, | ||
- | Making a TCP/IP connection uses the Packet Data Protocol interface. | + | Making a TCP/IP connection uses the Packet Data Protocol interface. |
+ | |||
+ | - The GSM modem gets powered-on with '' | ||
+ | - Register on the GSM network. | ||
+ | - APN, login and password | ||
+ | - Check PDP status and start the connection. | ||
< | < | ||
- | mdbus2 -s org.freesmartphone.ogsmd \ | + | mdbus2 -s -i |
- | / | + | MDBUS2> |
- | org.freesmartphone.GSM.PDP.SetCredentials internet.wind wind wind | + | MDBUS2> org.freesmartphone.ogsmd |
+ | MDBUS2> org.freesmartphone.ogsmd | ||
+ | MDBUS2> org.freesmartphone.ogsmd / | ||
+ | (" | ||
+ | MDBUS2> org.freesmartphone.ogsmd / | ||
+ | MDBUS2> org.freesmartphone.ogsmd / | ||
+ | (" | ||
+ | MDBUS2> org.freesmartphone.ogsmd / | ||
</ | </ | ||
- | Then check the connection status, place a call and terminate | + | FIXME: exiting '' |
- | < | + | === Other notes === |
- | mdbus2 -s org.freesmartphone.ogsmd / | + | |
- | org.freesmartphone.GSM.PDP.GetContextStatus | + | |
- | (" | + | |
- | ... org.freesmartphone.GSM.PDP.ActivateContext | + | FIXME The following is old stuff, superceeded by FSO Cornucopia implementation. |
- | ... org.freesmartphone.GSM.PDP.DeactivateContext | + | |
+ | FSO provides a nice multiplexing of GSM/GPRS. Different aplications can talk to the GSM modem concurrently and place GSM calls while running a GPRS internet connection (bandwidth will be the bottleneck!). The GSM multiplexing is handled by the **fso-gsm0710muxd** package. | ||
+ | |||
+ | Clicking on the GSM icon on the panel should allow to start/stop a GPRS connection. Unfortunately **I got several problems maging GPRS calls**, may be simply related to the AT commands used in dialling. I was lazy on debugging, so I resorted on self-made scripts and the traditional **'' | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | # Don't use GSM multiplexer, | ||
+ | killall gsm0710muxd | ||
+ | om gsm power 1 | ||
+ | poff -a | ||
+ | pon | ||
</ | </ | ||
- | The data connection involves running pppd? | ||
==== Battery ==== | ==== Battery ==== | ||
Line 441: | Line 487: | ||
==== WiFi broken in openmoko-panel-plugin ==== | ==== WiFi broken in openmoko-panel-plugin ==== | ||
- | The **fso-deviced-openmoko** | + | The **fso-deviced-openmoko** |
Also **'' | Also **'' | ||
Line 621: | Line 667: | ||
Idle status is one of the following: **'' | Idle status is one of the following: **'' | ||
- | **NOTE**: to set a timeout of **'' | + | **NOTE**: to set a timeout of **'' |
+ | |||
+ | < | ||
+ | mdbus2 -s -i | ||
+ | MDBUS2> org.freesmartphone.odeviced / | ||
+ | </ | ||
+ | |||
+ | If you want to use it into a script, just make this: | ||
<code bash> | <code bash> | ||
+ | #!/bin/sh | ||
BUS=' | BUS=' | ||
IDLE_SERVICE='/ | IDLE_SERVICE='/ |
doc/appunti/hardware/freerunner_debian.txt · Last modified: 2011/11/01 16:23 by niccolo