Commit e9ec142c authored by aligungr's avatar aligungr

UE SRA dev.

parent 6af9ea83
......@@ -52,6 +52,7 @@ class UeSraTask : public NtsTask
private: /* Transport */
void receiveSraMessage(const InetAddress &address, const sra::SraMessage &msg);
void sendSraMessage(const InetAddress &address, const sra::SraMessage &msg);
void deliverUplinkPdu(sra::EPduType pduType, OctetString &&pdu, OctetString &&payload);
void deliverUplinkRrc(rrc::RrcChannel channel, OctetString &&pdu);
private: /* Measurement */
......
......@@ -33,7 +33,7 @@ void UeSraTask::sendSraMessage(const InetAddress &address, const sra::SraMessage
m_udpTask->send(address, stream);
}
void UeSraTask::deliverUplinkRrc(rrc::RrcChannel channel, OctetString &&pdu)
void UeSraTask::deliverUplinkPdu(sra::EPduType pduType, OctetString &&pdu, OctetString &&payload)
{
if (!m_servingCell.has_value())
{
......@@ -43,10 +43,15 @@ void UeSraTask::deliverUplinkRrc(rrc::RrcChannel channel, OctetString &&pdu)
sra::SraPduDelivery msg{};
msg.sti = m_sti;
msg.pduType = sra::EPduType::RRC;
msg.pduType = pduType;
msg.pdu = std::move(pdu);
msg.payload.appendOctet4(static_cast<int>(channel));
msg.payload = std::move(payload);
sendSraMessage(InetAddress{m_servingCell->linkIp, cons::PortalPort}, msg);
}
void UeSraTask::deliverUplinkRrc(rrc::RrcChannel channel, OctetString &&pdu)
{
deliverUplinkPdu(sra::EPduType::RRC, std::move(pdu), OctetString::FromOctet4(static_cast<int>(channel)));
}
} // namespace nr::ue
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment