Project

General

Profile

Libsamsung-ril » History » Version 6

Denis 'GNUtoo' Carikli, 01/14/2012 09:11 PM
add samsung ril part

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
| Functionality | Status | 
8
| Data activation | Working | 
9
| Data deactivation | |
10
| Calls with audio | working | 
11
| SMS | working | 
12
13
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 4 Paul Kocialkowski
<pre>
42 1 Paul Kocialkowski
43
assuming your SIM PIN is 1234. If you don't have any SIM pin, don't pass the --pin argument. 
44
45
It should go like this:
46 4 Paul Kocialkowski
<pre>
47 2 Paul Kocialkowski
[I] Got SIM PIN!
48 4 Paul Kocialkowski
r0 Starting modem on FMT client
49
r1 Starting modem_read_loop on FMT client
50
r2 Phone is powered up (LPM)!
51 1 Paul Kocialkowski
[I] SIM card found
52
[I] SIM is initializing
53 4 Paul Kocialkowski
r3 SIM init complete
54
r4 Modem is ready, requesting normal power mode
55 1 Paul Kocialkowski
[I] SIM card found
56 2 Paul Kocialkowski
[I] SIM is initializing
57 4 Paul Kocialkowski
r3 SIM init complete
58
r5 Modem is fully ready
59 2 Paul Kocialkowski
[I] Registered with network successfully!
60 4 Paul Kocialkowski
r6 Registered with network! Got PLMN (Mobile Network Code): '20810'
61 2 Paul Kocialkowski
[I] Registered with network successfully!
62 4 Paul Kocialkowski
r6 Registered with network! Got PLMN (Mobile Network Code): '20810'
63 2 Paul Kocialkowski
[I] Registered with network successfully!
64
[I] Registered with network successfully!
65 4 Paul Kocialkowski
r6 Registered with network! Got PLMN (Mobile Network Code): '20810'
66 2 Paul Kocialkowski
[I] SIM Phone Book init complete
67 4 Paul Kocialkowski
</pre>
68 2 Paul Kocialkowski
69 4 Paul Kocialkowski
<pre>
70 2 Paul Kocialkowski
71
72 4 Paul Kocialkowski
h2. Status
73
74
75 3 Paul Kocialkowski
We were able to make the following work:
76 4 Paul Kocialkowski
* SMS (Rx/Tx)
77
* Call (Rx/Tx) BUT NO AUDIO YET
78
* GPRS 
79
* SIM I/O (stored contacts, etc)
80
* SIM PIN unlocking