Commit e9ec142c authored by aligungr's avatar aligungr

UE SRA dev.

parent 6af9ea83
...@@ -52,6 +52,7 @@ class UeSraTask : public NtsTask ...@@ -52,6 +52,7 @@ class UeSraTask : public NtsTask
private: /* Transport */ private: /* Transport */
void receiveSraMessage(const InetAddress &address, const sra::SraMessage &msg); void receiveSraMessage(const InetAddress &address, const sra::SraMessage &msg);
void sendSraMessage(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); void deliverUplinkRrc(rrc::RrcChannel channel, OctetString &&pdu);
private: /* Measurement */ private: /* Measurement */
......
...@@ -33,7 +33,7 @@ void UeSraTask::sendSraMessage(const InetAddress &address, const sra::SraMessage ...@@ -33,7 +33,7 @@ void UeSraTask::sendSraMessage(const InetAddress &address, const sra::SraMessage
m_udpTask->send(address, stream); 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()) if (!m_servingCell.has_value())
{ {
...@@ -43,10 +43,15 @@ void UeSraTask::deliverUplinkRrc(rrc::RrcChannel channel, OctetString &&pdu) ...@@ -43,10 +43,15 @@ void UeSraTask::deliverUplinkRrc(rrc::RrcChannel channel, OctetString &&pdu)
sra::SraPduDelivery msg{}; sra::SraPduDelivery msg{};
msg.sti = m_sti; msg.sti = m_sti;
msg.pduType = sra::EPduType::RRC; msg.pduType = pduType;
msg.pdu = std::move(pdu); 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); 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 } // 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