pcu: Handle PCUIF (DE)ACT.req messages
Change-Id: I4440a6b24fb76b4f8096706769250b91bd2444bb
diff --git a/pcu/PCUIF_RAW_Components.ttcn b/pcu/PCUIF_RAW_Components.ttcn
index ab8b3b7..6d29404 100644
--- a/pcu/PCUIF_RAW_Components.ttcn
+++ b/pcu/PCUIF_RAW_Components.ttcn
@@ -339,7 +339,6 @@
/* 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 @@
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);