From d16bb27306ca4c44298f66ed2dcc6e9320da01c3 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 2 Dec 2019 12:57:03 +0100 Subject: [PATCH] pcu: Handle PCUIF (DE)ACT.req messages Change-Id: I4440a6b24fb76b4f8096706769250b91bd2444bb --- pcu/PCUIF_RAW_Components.ttcn | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pcu/PCUIF_RAW_Components.ttcn b/pcu/PCUIF_RAW_Components.ttcn index ab8b3b758..6d2940440 100644 --- a/pcu/PCUIF_RAW_Components.ttcn +++ b/pcu/PCUIF_RAW_Components.ttcn @@ -339,7 +339,6 @@ runs on RAW_PCU_BTS_CT { /* Wait until the PCU is connected */ PCUIF.receive(tr_RAW_PCU_EV(PCU_EV_CONNECT)); - /* TODO: implement ACT.req handling */ alt { /* Wait for TXT.ind (PCU_VERSION) and respond with INFO.ind (SI13) */ [] PCUIF.receive(tr_PCUIF_TXT_IND(bts_nr, PCU_VERSION, ?)) -> value pcu_msg { @@ -360,6 +359,18 @@ runs on RAW_PCU_BTS_CT { vc_CLCK_GEN.start(f_ClckGen_CT_handler()); repeat; } + /* PCU -> TS becomes active */ + [] PCUIF.receive(tr_PCUIF_ACT_REQ(bts_nr, ?, ?)) -> value pcu_msg { + log("Rx ACT.req from the PCU: TRX" & int2str(pcu_msg.u.act_req.trx_nr) & + "/TS" & int2str(pcu_msg.u.act_req.ts_nr)); + repeat; + } + /* PCU -> TS becomes inactive */ + [] PCUIF.receive(tr_PCUIF_DEACT_REQ(bts_nr, ?, ?)) -> value pcu_msg { + log("Rx DEACT.req from the PCU: TRX" & int2str(pcu_msg.u.act_req.trx_nr) & + "/TS" & int2str(pcu_msg.u.act_req.ts_nr)); + repeat; + } /* PCU -> test case forwarding (filter by the BTS number) */ [] PCUIF.receive(tr_PCUIF_MSG(?, bts_nr)) -> value pcu_msg { TC.send(pcu_msg);