Project

General

Profile

Samsung-RIL » History » Revision 26

Revision 25 (Denis 'GNUtoo' Carikli, 12/03/2012 11:58 AM) → Revision 26/47 (Paul Kocialkowski, 12/03/2012 08:59 PM)

h1. samsung-ril

The samsung ril is the library that interfaces libsamsung-ipc(see below) with the android framework.
Status per devices below:


h2. Supported devices

*
Nexus S
* Galaxy S/Galaxy Tab P1000
* Galaxy S2
* Galaxy Nexus


h2. Features

|_. Functionality |_. Status |_. Release status Released |
| Modem bootstrap | Working | Released replicant-2.3 0002 images |
| Modem transport | Working | Released replicant-2.3 0002 images |
| Modem FMT | Working | Released replicant-2.3 0002 images |
| Modem RFS | Working | Released replicant-2.3 0002 images |
| Power to Normal (Airplane mode on) | Working | Released replicant-2.3 0002 images |
| Power to LPM (Airplane mode off) | Working Working, stable | Released git |
| RSSI infos | Working | Released replicant-2.3 0002 images |
| Icon infos | Working | Released git |
| Modem firmware infos | Working | Released replicant-2.3 0002 images |
| IMEI/IMEISV | Working | Released, replicant-2.3 0002 images, works best in Released git |
| IMSI | Working | Released replicant-2.3 0002 images |
| USSD | Working, needs testing | Released git |
| SIM PIN unlock | Working | Released replicant-2.3 0002 images |
| SIM PIN set | Working | Released git |
| SIM PIN change | Working | Released git |
| SIM unlock with PUK | Working | Released git |
| SIM I/O | Partially working: infos, contacts are OK, stored SMS I/O is not | Released replicant-2.3 0002 images |
| Network registration | Working | Released replicant-2.3 0002 images, works best in git |
| Operator strings | Working | Released replicant-2.3 0002 images |
| Network type force | Working | Released git |
| Operator manual select | Working | Released git |
| SMS outgoing | Working Working, sometimes crashes! | Released replicant-2.3 0002 images |
| SMS incoming | Working | Released replicant-2.3 0002 images |
| Call incoming | Working | Released replicant-2.3 0002 images |
| Call outgoing | Working, but conferencing | Released replicant-2.3 0002 images |
| DTMF | Working | Released, replicant-2.3 0002 images, works best in Released git |
| Audio during calls | Working | Released replicant-2.3 0002 images |
| Audio mic mute set | Working | Released replicant-2.3 0002 images |
| Audio volume change | Working | Released replicant-2.3 0002 images |
| Audio path change | Working | Released replicant-2.3 0002 images |
| Data activation | Working Working, code needs cleanup | Released replicant-2.3 0002 images |
| Data deactivation | Working Working, code needs cleanup | Released git |
| NV read item | Working | Released replicant-2.3 0002 images |
| NV write item | Working | Released replicant-2.3 0002 images |

h1. libsamsung-ipc

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.

libsamsung-ipc is shared between SHR and Replicant projects. It's used in both for the Nexus S.

Source code is available under the GPLv2+ at: https://github.com/morphis/libsamsung-ipc (master branch).

The library is mostly complete

h2. ipc-modemctrl

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).

Usage:
<pre>
usage: ipc-modemctrl <command>
commands:
start bootstrap modem and start read loop
power-on power on the modem
power-off power off the modem
arguments:
--debug enable debug messages
--pin=[PIN] provide SIM card PIN
</pre>

Please run ipc-modemctrl like this (from host pc):

assuming your SIM PIN is 1234. If you don't have any SIM pin, don't pass the --pin argument.

It should go like this:

<pre>
[I] Got SIM PIN!
[0] Starting modem on FMT client
[1] Starting modem_read_loop on FMT client
[2] Phone is powered up (LPM)!
[I] SIM card found
[I] SIM is initializing
[3] SIM init complete
[4] Modem is ready, requesting normal power mode
[I] SIM card found
[I] SIM is initializing
[3] SIM init complete
[5] Modem is fully ready
[I] Registered with network successfully!
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
[I] Registered with network successfully!
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
[I] Registered with network successfully!
[I] Registered with network successfully!
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
[I] SIM Phone Book init complete
</pre>

h2. Status

We were able to make the following work:
* SMS (Rx/Tx)
* Call (Rx/Tx) BUT NO AUDIO YET
* GPRS
* SIM I/O (stored contacts, etc)
* SIM PIN unlocking