:pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
[gnokii.git] / Docs / protocol / nk6160.txt
1 $Id$
2
3 Assembled by
4                      <arnu@venia.net>
5         ... and other members of gnokii mailing list
6             and authors of some WWW pages.
7
8 The data provided is for information purposes only. 
9 Some of the frames might be hazardous to your phone. Be careful!!! 
10 We do not take any responsibility or liability for damages, etc.
11
12 NOTE: this information isn't (and can't be) complete.  If you know anything
13 about features not listed here or you noticed a bug in this list, please
14 notify us via e-mail.  Thank you.
15
16 Document describing frames used in
17 TDMA NOKIA 5120 / 5160 / 6120 / 6160
18
19 TDMA phones support simultaneously both MBUS protocols
20 (see nokia.txt for protocol details)
21 the old one (version1) and the new (version2). Both protocols can be used
22 at the same time on the MBUS. The phone will decode both and react accordingly.
23
24 Correct format is MBUS version 1:
25
26  List:
27
28 0x17:
29     s Release key           {+0x00, keynum }
30     s Press key             {+0x01, keynum }
31 0xe9:
32     s Start connection      {+0x01 0x01 0x1c 0x01 0x1c}
33       (3Com cell modem card)Note: this is message with SrcDEV = 0xf8 !
34                             ACK frame for it is (DestDEV = 0xf8 too) 0x1c, 0x01, 0x1c
35     s Start connection      {+0x00 0x02 0x1d 0x00 0x1d}
36                             Note: this is message with SrcDEV = 0xf8 !
37
38 Other frames from 3Com cell modem card (MBUS version 1):
39    unknown purpose : 00 E0 00 1D SQ CS
40        probably request 
41        Alive response from cellmodem 
42    UC_RESERVE_REQ:   00 E0 05 19 00 00 01 01 00 SQ CS
43        register system state info presentation 
44    UC_RESERVE_REQ:   E0 00 01 CD 01 SQ CS
45        phone tries to register some info from cellmodem 
46
47    Dialing as cellmodem forces the phone into analoge AMPS mode,
48    answering a call as cellmodem answers in AMPS mode 
49    This allows transparent transmission of the analoge modem tones since
50    digital TDMA won't transmit them transparently. 
51    It also switches audio to the XEAR , XMIC pins automatically. 
52
53    LN_ALIVE_REQ:     E0 00 00 1E SQ CS
54        checks if cellmodem is still present (sent 1 /sec.) 
55    SYS_STATE_IND:    FF 02 07 CA 1C Con 02 01 0E 0F 00 SQ CS
56        sytems state information 
57        Con holds the connection state 
58          00 = idle 
59          01 = ringing 
60          02 = connecting 
61          03 = talk 
62          04 = ringing / alternating with 01
63        the destignation is the Global object and the source
64        is subaddress 02 of the Nokia phone. 
65
66 Correct format is MBUS version 2:
67
68  List:
69
70 0x40:
71     s Read phonebook(2way)  {+0x00, 0x00, 0x07, 0x11, 0x00, 0x10, 0x00, location }
72                             Note: works also on CDMA 6185
73     s Read phonebook(1way)  { 0x1F, 0x01, 0x04, 0x86, location }
74     s Write phonebook       { 0x1f, 0x01, 0x04, 0x87, number, 0x00, name, 0x00 }
75     s Enable extended cmds  { 0x64, cmd }
76                             where 
77                               cmd(probably): 0x00: off
78                                              0x01: on
79                                              0x03: reset (doesn't ask for PIN again)
80                                              0x04: reset (PIN is requested)
81                                                    In 5110 makes reset without PIN
82                                              0x06: CONTACT SERVICE!!! Don't try it!
83 0xd1:
84     s Registration request? {+0x00, 0xF8, 0x05, 0xE9, 0x00, 0x02, 0x1D, 0x00, 0x1D}
85     s Get HW&SW version     { 0x0003, 0x00 }
86     s Get phone version?    { 0x000D, 0x00, 0x00, 0x02}
87     s ???                   { 0x47, 0x00, 0x00}
88     s ???                   { 0x47, 0x00, 0x05}
89     s Key release(1way)     { 0x50, 0x00, 0x00, KEY }
90     s Key press             { 0x50, 0x00, 0x01, KEY }
91                               dials in digital TDMA default mode ?
92     s Key release(2way)     { 0x51, 0x00, 0x01, KEY }
93 0xd2:
94     r Get HW&SW version     { 0x0003 "V " "firmware\n" "firmware date\n"
95                               "model\n" "(c) NMP." }
96     r Get phone version     { 0x000D, "V " "firmware\n" "firmware date\n" }
97     r Key press             {+0x01, 0x00, 0x50, 0x00}
98     r ???                   {+0x01, 0x00, 0x47, 0x00}