Project

General

Profile

Libsamsung-ril » History » Version 5

Denis 'GNUtoo' Carikli, 01/14/2012 09:00 PM
update status

1 4 Paul Kocialkowski
h1. libsamsung-ipc
2
3
4
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.
5
6 1 Paul Kocialkowski
libsamsung-ipc is shared between SHR and Replicant projects. It's used in both for the Nexus S.
7
8
Source code is available under the GPLv3+ at: https://github.com/morphis/libsamsung-ipc (master branch).
9
10
11 4 Paul Kocialkowski
h2. ipc-modemctrl
12
13 1 Paul Kocialkowski
14 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).
15 1 Paul Kocialkowski
16
Usage:
17 4 Paul Kocialkowski
<pre>
18 1 Paul Kocialkowski
usage: ipc-modemctrl <command>
19
commands:
20
	start                 bootstrap modem and start read loop
21
	power-on              power on the modem
22
	power-off             power off the modem
23
arguments:
24 2 Paul Kocialkowski
	--debug               enable debug messages
25
	--pin=[PIN]           provide SIM card PIN
26 4 Paul Kocialkowski
</pre>
27 1 Paul Kocialkowski
28
Please run ipc-modemctrl like this (from host pc): 
29 4 Paul Kocialkowski
<pre>
30 1 Paul Kocialkowski
31
assuming your SIM PIN is 1234. If you don't have any SIM pin, don't pass the --pin argument. 
32
33
It should go like this:
34 4 Paul Kocialkowski
<pre>
35 2 Paul Kocialkowski
[I] Got SIM PIN!
36 4 Paul Kocialkowski
r0 Starting modem on FMT client
37
r1 Starting modem_read_loop on FMT client
38
r2 Phone is powered up (LPM)!
39 1 Paul Kocialkowski
[I] SIM card found
40
[I] SIM is initializing
41 4 Paul Kocialkowski
r3 SIM init complete
42
r4 Modem is ready, requesting normal power mode
43 1 Paul Kocialkowski
[I] SIM card found
44 2 Paul Kocialkowski
[I] SIM is initializing
45 4 Paul Kocialkowski
r3 SIM init complete
46
r5 Modem is fully ready
47 2 Paul Kocialkowski
[I] Registered with network successfully!
48 4 Paul Kocialkowski
r6 Registered with network! Got PLMN (Mobile Network Code): '20810'
49 2 Paul Kocialkowski
[I] Registered with network successfully!
50 4 Paul Kocialkowski
r6 Registered with network! Got PLMN (Mobile Network Code): '20810'
51 2 Paul Kocialkowski
[I] Registered with network successfully!
52
[I] Registered with network successfully!
53 4 Paul Kocialkowski
r6 Registered with network! Got PLMN (Mobile Network Code): '20810'
54 2 Paul Kocialkowski
[I] SIM Phone Book init complete
55 4 Paul Kocialkowski
</pre>
56 2 Paul Kocialkowski
57 4 Paul Kocialkowski
<pre>
58 2 Paul Kocialkowski
59
60 4 Paul Kocialkowski
h2. Status
61
62
63 3 Paul Kocialkowski
We were able to make the following work:
64 4 Paul Kocialkowski
* SMS (Rx/Tx)
65
* Call (Rx/Tx) BUT NO AUDIO YET
66
* GPRS 
67
* SIM I/O (stored contacts, etc)
68
* SIM PIN unlocking