Libsamsung-ril » History » Version 12
Paul Kocialkowski, 01/14/2012 09:36 PM
| 1 | 6 | Denis 'GNUtoo' Carikli | h1. samsung-ril |
|---|---|---|---|
| 2 | 1 | Paul Kocialkowski | |
| 3 | 6 | Denis 'GNUtoo' Carikli | The samsung ril is the library that interfaces libsamsung-ipc(see below) with the android framework. |
| 4 | Status per devices below: |
||
| 5 | 1 | Paul Kocialkowski | |
| 6 | 6 | Denis 'GNUtoo' Carikli | h2. Nexus S |
| 7 | 10 | Denis 'GNUtoo' Carikli | |_. Functionality |_. Status | |
| 8 | 7 | Denis 'GNUtoo' Carikli | | Data activation | Working since trunk of 14/01/2012| |
| 9 | 9 | Denis 'GNUtoo' Carikli | | Data deactivation | Work in progress(partially working) | |
| 10 | 7 | Denis 'GNUtoo' Carikli | | Calls with audio | working in the image 0002 (replicant 2.3) | |
| 11 | | SMS | working in the image 0002 (replicant 2.3) | |
||
| 12 | 9 | Denis 'GNUtoo' Carikli | | DTMF | Work in progress(partially working) | |
| 13 | 6 | Denis 'GNUtoo' Carikli | |
| 14 | h1. libsamsung-ipc |
||
| 15 | |||
| 16 | 4 | Paul Kocialkowski | libsamsung-ipc is a free implementation of the protocol to speak with modems found in most Samsung devices. It is the low-level library used to communicate with the modem and needs an upper-layer (RIL) to interface with the system. |
| 17 | 1 | Paul Kocialkowski | |
| 18 | libsamsung-ipc is shared between SHR and Replicant projects. It's used in both for the Nexus S. |
||
| 19 | |||
| 20 | Source code is available under the GPLv3+ at: https://github.com/morphis/libsamsung-ipc (master branch). |
||
| 21 | |||
| 22 | 6 | Denis 'GNUtoo' Carikli | The library is mostly complete |
| 23 | 4 | Paul Kocialkowski | |
| 24 | h2. ipc-modemctrl |
||
| 25 | 1 | Paul Kocialkowski | |
| 26 | 5 | Denis 'GNUtoo' Carikli | ipc-modemctrl is a deprecated tool that was used at the beginning of the work for talking to the nexus S modem. It implemented basic functionalities (mostly SIM unlocking and network registration). |
| 27 | 1 | Paul Kocialkowski | |
| 28 | Usage: |
||
| 29 | 4 | Paul Kocialkowski | <pre> |
| 30 | 1 | Paul Kocialkowski | usage: ipc-modemctrl <command> |
| 31 | commands: |
||
| 32 | start bootstrap modem and start read loop |
||
| 33 | power-on power on the modem |
||
| 34 | power-off power off the modem |
||
| 35 | arguments: |
||
| 36 | 2 | Paul Kocialkowski | --debug enable debug messages |
| 37 | --pin=[PIN] provide SIM card PIN |
||
| 38 | 4 | Paul Kocialkowski | </pre> |
| 39 | 1 | Paul Kocialkowski | |
| 40 | Please run ipc-modemctrl like this (from host pc): |
||
| 41 | |||
| 42 | assuming your SIM PIN is 1234. If you don't have any SIM pin, don't pass the --pin argument. |
||
| 43 | |||
| 44 | It should go like this: |
||
| 45 | 11 | Paul Kocialkowski | |
| 46 | 4 | Paul Kocialkowski | <pre> |
| 47 | 1 | Paul Kocialkowski | [I] Got SIM PIN! |
| 48 | 11 | Paul Kocialkowski | [0] Starting modem on FMT client |
| 49 | [1] Starting modem_read_loop on FMT client |
||
| 50 | [2] Phone is powered up (LPM)! |
||
| 51 | 1 | Paul Kocialkowski | [I] SIM card found |
| 52 | [I] SIM is initializing |
||
| 53 | 11 | Paul Kocialkowski | [3] SIM init complete |
| 54 | [4] Modem is ready, requesting normal power mode |
||
| 55 | 1 | Paul Kocialkowski | [I] SIM card found |
| 56 | 2 | Paul Kocialkowski | [I] SIM is initializing |
| 57 | 11 | Paul Kocialkowski | [3] SIM init complete |
| 58 | [5] Modem is fully ready |
||
| 59 | 2 | Paul Kocialkowski | [I] Registered with network successfully! |
| 60 | 11 | Paul Kocialkowski | [6] Registered with network! Got PLMN (Mobile Network Code): '20810' |
| 61 | 4 | Paul Kocialkowski | [I] Registered with network successfully! |
| 62 | 11 | Paul Kocialkowski | [6] Registered with network! Got PLMN (Mobile Network Code): '20810' |
| 63 | 4 | Paul Kocialkowski | [I] Registered with network successfully! |
| 64 | 2 | Paul Kocialkowski | [I] Registered with network successfully! |
| 65 | 11 | Paul Kocialkowski | [6] Registered with network! Got PLMN (Mobile Network Code): '20810' |
| 66 | 2 | Paul Kocialkowski | [I] SIM Phone Book init complete |
| 67 | </pre> |
||
| 68 | 4 | Paul Kocialkowski | |
| 69 | h2. Status |
||
| 70 | |||
| 71 | 3 | Paul Kocialkowski | We were able to make the following work: |
| 72 | 4 | Paul Kocialkowski | * SMS (Rx/Tx) |
| 73 | * Call (Rx/Tx) BUT NO AUDIO YET |
||
| 74 | * GPRS |
||
| 75 | * SIM I/O (stored contacts, etc) |
||
| 76 | * SIM PIN unlocking |