Project

General

Profile

Libsamsung-ril » History » Version 13

Paul Kocialkowski, 01/28/2012 12:15 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 13 Paul Kocialkowski
8
|_. Functionality |_. Status |_. Released |
9
| Modem bootstrap | Working | replicant-2.3 0002 images |
10
| Modem transport | Working | replicant-2.3 0002 images |
11
| Modem FMT | Working | replicant-2.3 0002 images |
12
| Modem RFS | Working | replicant-2.3 0002 images |
13
| Power to Normal | Working | replicant-2.3 0002 images |
14
| Power to LPM | Broken | |
15
| RSSI infos | Working | replicant-2.3 0002 images |
16
| Icon infos | Working, code needs review | replicant-2.3 0002 images |
17
| Modem firmware infos | Working | replicant-2.3 0002 images |
18
| IMEI/IMEISV | Working, code needs cleanup | replicant-2.3 0002 images |
19
| IMSI | ? | |
20
| SIM PIN unlock | Working | replicant-2.3 0002 images |
21
| SIM PIN set | Missing | |
22
| SIM I/O | Partially working: infos, contacts are OK, stored SMS I/O is not | replicant-2.3 0002 images |
23
| Network registration | Working | replicant-2.3 0002 images, works best in git |
24
| Operator strings | Working | replicant-2.3 0002 images |
25
| Network type force | ? | |
26
| SMS outgoing | Working, sometimes crashes! | replicant-2.3 0002 images |
27
| SMS incoming | Working | replicant-2.3 0002 images |
28
| Call incoming | Working | replicant-2.3 0002 images |
29
| Call outgoing | Working, but conferencing | replicant-2.3 0002 images |
30
| DTMF | Working, code needs cleanup | replicant-2.3 0002 images |
31
| Audio during calls | Working | replicant-2.3 0002 images |
32
| Audio mic mute set | Working | replicant-2.3 0002 images |
33
| Audio volume change | Working | replicant-2.3 0002 images |
34
| Audio path change | Working | replicant-2.3 0002 images |
35
| Data activation | Working, code needs cleanup | replicant-2.3 0002 images |
36
| Data deactivation | Working, code needs cleanup | git |
37
| NV read item | Working | replicant-2.3 0002 images |
38
| NV write item | Working | replicant-2.3 0002 images |
39 6 Denis 'GNUtoo' Carikli
40
h1. libsamsung-ipc
41
42 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.
43 1 Paul Kocialkowski
44
libsamsung-ipc is shared between SHR and Replicant projects. It's used in both for the Nexus S.
45
46
Source code is available under the GPLv3+ at: https://github.com/morphis/libsamsung-ipc (master branch).
47
48 6 Denis 'GNUtoo' Carikli
The library is mostly complete
49 4 Paul Kocialkowski
50
h2. ipc-modemctrl
51 1 Paul Kocialkowski
52 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).
53 1 Paul Kocialkowski
54
Usage:
55 4 Paul Kocialkowski
<pre>
56 1 Paul Kocialkowski
usage: ipc-modemctrl <command>
57
commands:
58
	start                 bootstrap modem and start read loop
59
	power-on              power on the modem
60
	power-off             power off the modem
61
arguments:
62 2 Paul Kocialkowski
	--debug               enable debug messages
63
	--pin=[PIN]           provide SIM card PIN
64 4 Paul Kocialkowski
</pre>
65 1 Paul Kocialkowski
66
Please run ipc-modemctrl like this (from host pc): 
67
68
assuming your SIM PIN is 1234. If you don't have any SIM pin, don't pass the --pin argument. 
69
70
It should go like this:
71 11 Paul Kocialkowski
72 4 Paul Kocialkowski
<pre>
73 1 Paul Kocialkowski
[I] Got SIM PIN!
74 11 Paul Kocialkowski
[0] Starting modem on FMT client
75
[1] Starting modem_read_loop on FMT client
76
[2] Phone is powered up (LPM)!
77 1 Paul Kocialkowski
[I] SIM card found
78
[I] SIM is initializing
79 11 Paul Kocialkowski
[3] SIM init complete
80
[4] Modem is ready, requesting normal power mode
81 1 Paul Kocialkowski
[I] SIM card found
82 2 Paul Kocialkowski
[I] SIM is initializing
83 11 Paul Kocialkowski
[3] SIM init complete
84
[5] Modem is fully ready
85 2 Paul Kocialkowski
[I] Registered with network successfully!
86 11 Paul Kocialkowski
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
87 4 Paul Kocialkowski
[I] Registered with network successfully!
88 11 Paul Kocialkowski
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
89 4 Paul Kocialkowski
[I] Registered with network successfully!
90 2 Paul Kocialkowski
[I] Registered with network successfully!
91 11 Paul Kocialkowski
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
92 2 Paul Kocialkowski
[I] SIM Phone Book init complete
93
</pre>
94 4 Paul Kocialkowski
95
h2. Status
96
97 3 Paul Kocialkowski
We were able to make the following work:
98 4 Paul Kocialkowski
* SMS (Rx/Tx)
99
* Call (Rx/Tx) BUT NO AUDIO YET
100
* GPRS 
101
* SIM I/O (stored contacts, etc)
102
* SIM PIN unlocking