aboutsummaryrefslogtreecommitdiffstats
path: root/library/RSL_Emulation.ttcn
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-22 15:54:41 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2018-10-24 16:34:05 +0200
commita07cfd909ca708709652f9e9481bf909936669e0 (patch)
tree231728e8f502ac1e43e9f6378d9849f514f8f2e0 /library/RSL_Emulation.ttcn
parent0fcc4d357f33476d8c8d9fe4f9f3dfb57ca76ce8 (diff)
RSL_Emulation: Fail explicitly on ASP_IPA_EVENT_DOWN
Otherwise RSL layer fails this way when this event is received: RSL_Emulation.ttcn:429 Receive operation on port IPA_PT succeeded, message from TC_chan_act_a51-RSL-IPA(3): @IPA_Emulation.ASP_IPA_Event: { up_down := ASP_IPA_EVENT_DOWN (0) } id 9 - Function main_client was stopped. PTC terminates. RSL_Emulation.ttcn:429 Message with id 9 was extracted from the queue of IPA_PT. RSL_Emulation.ttcn:430 setverdict(fail): none -> fail reason: "Received unknown primitive from IPA", new component reason: "Received unknown primitive from IPA" We now fail with a clearer message "Lost IPA connection!". These failures seem to happen under high load when the BTS doesn't get a steady clock from osmo-trx. Change-Id: Idc6565c9de72d98015d56a41e5616c46051c8a8d
Diffstat (limited to 'library/RSL_Emulation.ttcn')
-rw-r--r--library/RSL_Emulation.ttcn8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/RSL_Emulation.ttcn b/library/RSL_Emulation.ttcn
index c56c2783..cf02d00c 100644
--- a/library/RSL_Emulation.ttcn
+++ b/library/RSL_Emulation.ttcn
@@ -23,6 +23,7 @@ module RSL_Emulation {
* (at your option) any later version.
*/
+import from Misc_Helpers all;
import from General_Types all;
import from Osmocom_Types all;
import from GSM_Types all;
@@ -346,6 +347,13 @@ function main(boolean bts_role := true) runs on RSL_Emulation_CT {
[not bts_role] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP}) -> value evt {
CCHAN_PT.send(evt);
}
+ [bts_role] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_DOWN}) {
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Lost IPA connection!");
+
+ }
+ [not bts_role] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_DOWN}) {
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Lost IPA connection!");
+ }
[bts_role] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_ID_ACK}) {
IPA_PT.send(ts_ASP_RSL_UD(IPAC_PROTO_RSL_TRX0,ts_RSL_PAGING_LOAD_IND(23)));
}