gprs: Try re-attaching when we switch cells
[platform/upstream/ofono.git] / doc / hfp-overview.txt
1 HandsFree Profile Audio Gateway diagram
2 =======================================
3
4 This diagram explains how oFono manages HFP AG.
5
6 AT commands and unsolicited results are managed in their related atom (eg. ATA
7 is managed in voicecall atom).
8 The emulator atom is managing AT commands or unsolicited results that are not
9 falling into a specific atom.
10
11 1) HFP AG plugin registers a HFP AG server as soon as a voicecall atom exist.
12 2) When a connection occurs on this server, HFP AG plugin creates and registers
13    an emulator atom.
14 3) Emulator atom will start a GAtServer and registers non-atom-specific
15    AT commands to it.
16 4) On emulator atom registration, voice call related atoms (voicecall, network
17    and sim) register AT callbacks they managed through emulator atom.
18
19
20 *===========*                *-----------------*
21 |           |   Register     |                 |
22 |   BlueZ   |<---------------|  HFP AG plugin  |
23 |           |   SDP record   |                 |
24 *===========*                *-----------------*
25                                       |
26                                       | Start emulator on connection
27                                       |
28                                       V
29                              *-----------------*
30                              |                 |
31                    *-------->|  Emulator Atom  |
32                    |         |                 |
33                    |         *-----------------*
34                    |                  |
35          Register  |                  | Register AT commands
36             AT     |                  V
37          callbacks |         *-----------------*
38                    |         |                 |
39                    |         |    GAtServer    |
40                    |         |                 |
41                    |         *-----------------*
42                    |
43                    *---------------------*-------------------*
44                    |                     |                   |
45           *----------------*     *--------------*     *-------------*
46           |                |     |              |     |             |
47           | Voicecall atom |     | Network atom |     |  SIM atom   |
48           |                |     |              |     |             |
49           *----------------*     *--------------*     *-------------*