Project

General

Profile

Libsamsung-ipc » History » Version 3

Paul Kocialkowski, 02/08/2014 01:14 PM

1 1 Paul Kocialkowski
h1. libsamsung-ipc
2
3 3 Paul Kocialkowski
libsamsung-ipc is a free software implementation of the Samsung IPC modem protocol, found in many Samsung devices.
4 1 Paul Kocialkowski
libsamsung-ipc contains the device-specific code for transport between the kernel interface and the upper layer (usually, the Radio Interface Layer) and the definition of the data structures and values used ion the protocol.
5
6
h2. Development
7
8 2 Paul Kocialkowski
libsamsung-ipc sources are hosted at: http://gitorious.org/replicant/external_libsamsung-ipc branch @master@
9 1 Paul Kocialkowski
10
h2. Status
11
12
The library itself is mostly complete: the actual protocol work takes places in the upper layer implementations, so only new devices support is left to be added.
13
14
h3. ipc-modemctrl
15
16
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).
17
18
Usage:
19
<pre>
20
usage: ipc-modemctrl <command>
21
commands:
22
	start                 bootstrap modem and start read loop
23
	power-on              power on the modem
24
	power-off             power off the modem
25
arguments:
26
	--debug               enable debug messages
27
	--pin=[PIN]           provide SIM card PIN
28
</pre>
29
30
It should go like this:
31
32
<pre>
33
[I] Got SIM PIN!
34
[0] Starting modem on FMT client
35
[1] Starting modem_read_loop on FMT client
36
[2] Phone is powered up (LPM)!
37
[I] SIM card found
38
[I] SIM is initializing
39
[3] SIM init complete
40
[4] Modem is ready, requesting normal power mode
41
[I] SIM card found
42
[I] SIM is initializing
43
[3] SIM init complete
44
[5] Modem is fully ready
45
[I] Registered with network successfully!
46
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
47
[I] Registered with network successfully!
48
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
49
[I] Registered with network successfully!
50
[I] Registered with network successfully!
51
[6] Registered with network! Got PLMN (Mobile Network Code): '20810'
52
[I] SIM Phone Book init complete
53
</pre>
54
55
We were able to make the following work:
56
* SMS (Rx/Tx)
57
* Call (Rx/Tx) BUT NO AUDIO YET
58
* GPRS 
59
* SIM I/O (stored contacts, etc)
60
* SIM PIN unlocking