blob: 065886c3c4f258ce15f39c1885476961594283b1 [file] [log] [blame]
Holger Hans Peter Freyther72bd4eb2011-12-11 20:25:12 +01001I do some very simple LAPDm test.
2Establishing link.
3ms_to_bts_l1_cb: MS(us) -> BTS prim message
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +02004bts_to_ms_tx_cb: MS->BTS(us) message 25
Holger Hans Peter Freyther15f740c2011-12-12 00:29:50 +01005BTS: Verifying CM request.
Holger Hans Peter Freyther72bd4eb2011-12-11 20:25:12 +01006
7Confirming
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +07008lapdm_phsap_dequeue_prim(): got rc 0: Success
Jacob Erlbeck2462cf62014-02-25 10:49:00 +01009Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x00
10Message: [L2]> 01 73 41 [L3]> 05 24 31 03 50 18 93 08 29 47 80 00 00 00 00 80 2b 2b 2b 2b
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +020011ms_to_bts_tx_cb: BTS->MS(us) message 6
Holger Hans Peter Freyther15f740c2011-12-12 00:29:50 +010012MS: Verifying incoming primitive.
Holger Hans Peter Freyther72bd4eb2011-12-11 20:25:12 +010013
14Sending back to MS
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070015lapdm_phsap_dequeue_prim(): got rc 0: Success
Jacob Erlbeck2462cf62014-02-25 10:49:00 +010016Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x00
17Message: [L2]> 03 00 0d [L3]> 05 04 0d 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +020018ms_to_bts_tx_cb: BTS->MS(us) message 12
Holger Hans Peter Freyther3a5f08c2012-01-12 23:12:28 +010019MS: Verifying incoming MM message: 3
Holger Hans Peter Freyther72bd4eb2011-12-11 20:25:12 +010020ms_to_bts_l1_cb: MS(us) -> BTS prim message
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070021lapdm_phsap_dequeue_prim(): got rc -19: No such device
Holger Hans Peter Freyther72bd4eb2011-12-11 20:25:12 +010022
23Sending back to BTS
24ms_to_bts_l1_cb: MS(us) -> BTS prim message
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +020025bts_to_ms_tx_cb: MS->BTS(us) message 14
Holger Hans Peter Freyther15f740c2011-12-12 00:29:50 +010026BTS: Verifying dummy message.
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070027lapdm_phsap_dequeue_prim(): got rc 0: Success
28MSGB: L3 is undefined
Jacob Erlbeck2462cf62014-02-25 10:49:00 +010029Took message from DCCH queue: L2 header size 23, L3 size 0, SAP 0x1000000, 0/0, Link 0x00
30Message: [L2]> 01 21 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070031lapdm_phsap_dequeue_prim(): got rc -19: No such device
32lapdm_phsap_dequeue_prim(): got rc -19: No such device
Daniel Willmanne5233922012-12-25 23:15:50 +010033I test RF channel release of an unestablished channel.
Andreas Eversberg6e182082013-02-06 14:13:21 +010034I test contention resultion by having two mobiles collide and first mobile repeating SABM.
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +020035bts_to_ms_tx_cb: MS->BTS(us) message 25
Andreas Eversberg6e182082013-02-06 14:13:21 +010036BTS: Verifying CM request.
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070037lapdm_phsap_dequeue_prim(): got rc 0: Success
Jacob Erlbeck2462cf62014-02-25 10:49:00 +010038Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x00
39Message: [L2]> 01 73 41 [L3]> 05 24 31 03 50 18 93 08 29 47 80 00 00 00 00 80 2b 2b 2b 2b
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070040lapdm_phsap_dequeue_prim(): got rc -19: No such device
41lapdm_phsap_dequeue_prim(): got rc 0: Success
Jacob Erlbeck2462cf62014-02-25 10:49:00 +010042Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x00
43Message: [L2]> 01 73 41 [L3]> 05 24 31 03 50 18 93 08 29 47 80 00 00 00 00 80 2b 2b 2b 2b
Jacob Erlbeck90937fe2014-01-24 13:48:19 +010044I test RF channel establishment.
45Testing SAPI3/SDCCH
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070046lapdm_rslms_recvmsg(): got rc 0: Success
47lapdm_phsap_dequeue_prim(): got rc 0: Success
Jacob Erlbeck8dac4152014-01-28 11:03:11 +010048Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x03
49Message: [L2]> 0f 3f 01 [L3]> 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070050lapdm_phsap_dequeue_prim(): got rc -19: No such device
51lapdm_phsap_dequeue_prim(): got rc -19: No such device
Jacob Erlbeck90937fe2014-01-24 13:48:19 +010052Testing SAPI3/SACCH
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070053lapdm_rslms_recvmsg(): got rc 0: Success
54lapdm_phsap_dequeue_prim(): got rc -19: No such device
55lapdm_phsap_dequeue_prim(): got rc 0: Success
Jacob Erlbeck8dac4152014-01-28 11:03:11 +010056Took message from ACCH queue: L2 header size 5, L3 size 18, SAP 0x1000000, 0/0, Link 0x43
57Message: [L2]> 00 00 0f 3f 01 [L3]> 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070058lapdm_phsap_dequeue_prim(): got rc -19: No such device
59lapdm_phsap_dequeue_prim(): got rc -19: No such device
Daniel Willmann09129352014-03-20 18:54:57 +010060I test if desync problems exist in LAPDm
61
62Establishing SAPI=0
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +020063bts_to_ms_dummy_tx_cb: MS->BTS(us) message 25
Daniel Willmann09129352014-03-20 18:54:57 +010064
65Dumping queue:
6600 00 17 [L2]> 01 73 41 [L3]> 05 24 31 03 50 18 93 08 29 47 80 00 00 00 00 80
67
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070068lapdm_phsap_dequeue_prim(): got rc 0: Success
Daniel Willmann09129352014-03-20 18:54:57 +010069Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x00
70Message: [L2]> 01 73 41 [L3]> 05 24 31 03 50 18 93 08 29 47 80 00 00 00 00 80 2b 2b 2b 2b
71
72Sending Classmark Change
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +020073bts_to_ms_dummy_tx_cb: MS->BTS(us) message 27
Daniel Willmann09129352014-03-20 18:54:57 +010074
75Dumping queue:
7600 00 17 [L2]> 01 21 01
77
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070078lapdm_phsap_dequeue_prim(): got rc 0: Success
79MSGB: L3 is undefined
Daniel Willmann09129352014-03-20 18:54:57 +010080Took message from DCCH queue: L2 header size 23, L3 size 0, SAP 0x1000000, 0/0, Link 0x00
81Message: [L2]> 01 21 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
82
83Enqueueing Ciphering Mode Command
84
85Dumping queue:
8600 00 17 [L2]> 03 20 0d [L3]> 06 35 01
87
88
89Sending GPRS Suspend Request
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +020090bts_to_ms_dummy_tx_cb: MS->BTS(us) message 22
Daniel Willmann09129352014-03-20 18:54:57 +010091
92Dumping queue:
Daniel Willmann3dc4e162014-03-20 19:24:48 +01009300 00 17 [L2]> 03 40 0d [L3]> 06 35 01
Daniel Willmann09129352014-03-20 18:54:57 +010094
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +070095lapdm_phsap_dequeue_prim(): got rc 0: Success
Daniel Willmann09129352014-03-20 18:54:57 +010096Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x00
Daniel Willmann3dc4e162014-03-20 19:24:48 +010097Message: [L2]> 03 40 0d [L3]> 06 35 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
Daniel Willmann09129352014-03-20 18:54:57 +010098
99Sending Cipher Mode Complete
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +0200100bts_to_ms_dummy_tx_cb: MS->BTS(us) message 11
Daniel Willmann09129352014-03-20 18:54:57 +0100101
102Dumping queue:
Daniel Willmann09129352014-03-20 18:54:57 +010010300 00 17 [L2]> 01 61 01
104
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +0700105lapdm_phsap_dequeue_prim(): got rc 0: Success
106MSGB: L3 is undefined
Daniel Willmann09129352014-03-20 18:54:57 +0100107Took message from DCCH queue: L2 header size 23, L3 size 0, SAP 0x1000000, 0/0, Link 0x00
Daniel Willmann3dc4e162014-03-20 19:24:48 +0100108Message: [L2]> 01 61 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
Daniel Willmann09129352014-03-20 18:54:57 +0100109
110Establishing SAPI=3
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +0200111bts_to_ms_dummy_tx_cb: MS->BTS(us) message 6
Daniel Willmann09129352014-03-20 18:54:57 +0100112
113Dumping queue:
Daniel Willmann09129352014-03-20 18:54:57 +0100114
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +0700115lapdm_phsap_dequeue_prim(): got rc 0: Success
Daniel Willmann09129352014-03-20 18:54:57 +0100116Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x03
117Message: [L2]> 0d 73 01 [L3]> 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
118
119Sending CP-DATA
120
121Dumping queue:
Daniel Willmann09129352014-03-20 18:54:57 +0100122
Vadim Yanitskiy45a90cf2020-08-27 19:29:26 +0700123lapdm_phsap_dequeue_prim(): got rc 0: Success
124MSGB: L3 is undefined
Daniel Willmann3dc4e162014-03-20 19:24:48 +0100125Took message from DCCH queue: L2 header size 23, L3 size 0, SAP 0x1000000, 0/0, Link 0x03
126Message: [L2]> 0d 21 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
Vadim Yanitskiy488989d2020-08-27 19:35:02 +0700127
128=== I test SAPI0/SAPI3 prioritization ===
129
130MS is establishing a SAPI=0 link
Pau Espin Pedrol06da40b2023-08-23 17:40:48 +0200131bts_to_ms_dummy_tx_cb: MS->BTS(us) message 22
Vadim Yanitskiy488989d2020-08-27 19:35:02 +0700132BTS is establishing a SAPI=3 link
133lapdm_phsap_dequeue_prim(): got rc 0: Success
Vadim Yanitskiy488989d2020-08-27 19:35:02 +0700134Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x00
135Message: [L2]> 01 73 35 [L3]> 06 27 07 03 50 58 92 05 f4 44 59 ba 63 2b 2b 2b 2b 2b 2b 2b
Vadim Yanitskiy776c5b12020-08-27 20:58:49 +0700136lapdm_phsap_dequeue_prim(): got rc 0: Success
137Took message from DCCH queue: L2 header size 3, L3 size 20, SAP 0x1000000, 0/0, Link 0x03
138Message: [L2]> 0f 3f 01 [L3]> 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
139Checking the func=UA message: OK
140Checking the func=SABM message: OK
Vadim Yanitskiy488989d2020-08-27 19:35:02 +0700141
142Checking whether the DCCH/SACCH queues are empty
143lapdm_phsap_dequeue_prim(): got rc -19: No such device
144lapdm_phsap_dequeue_prim(): got rc -19: No such device
Holger Hans Peter Freyther72bd4eb2011-12-11 20:25:12 +0100145Success.