Please enable JavaScript.
Coggle requires JavaScript to display documents.
Code walkthrough - Coggle Diagram
Code walkthrough
Measure
Any changes
Yes
Check if measurements ongoing
Yes
Stop Injection
No
Do nothing
No
Prepare start injection.
Check type of injection and
Send start injection order to DU
START_INJECTION call chain
If measurements is on going send new start order
MSG
START_INJECT2_RFFM
VswrServiceBase::handleStartInjectionResponse
Set received parameters into clientCfG
clientCfg.setInjectionOffset(p_response.getInjectionOffset());
clientCfg.setInjectionRepetitionRate(p_response.getInjectionRepetitionRate());
clientCfg.setInjectionRepetitionOffset(p_response.getInjectionRepetitionOffset());
Start order to DP call chain
dvswrServiceV1::measure (called every 5th second)
Retrieve needed information
Create reqParams
Call requestDataCapture in rtsCtrl.
RTS::RtsCtrlIf::getInstance().requestDataCapture(err, reqParams, ongoingRequestId);
Wait for callback or timeout
If meas succeded calculate VSWR/return loss by calling returnLossCalculation
rtsCtrl::requestDataCapture
Create and populate genericReq
Setup up callback doCaptureData
doCaptureData will call handleRequest that call rtsRequestProcessor::configureAndSetup that setup callback doConfigureAndSetup
rtsRequestProcessor::doConfigureAndSetup
Creates an instance of InjectionAndCaptureRequest (rtsInjectionAndCaptureRequest.cc)
Call setUpAndCapture in this instance
rtsInjectionAndCaptureRequest::setUpAndCapture::setUpAndCapture
call preConfigureAdapter that check type of configuration. In this case TorSharedDvswrConfiguration
Then calls captureData
Database
Wait for results and calculate VSWR