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