Skip to content

Commit

Permalink
* [EchoProbe] Support lookback for X310 or multi-channel SDR
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzp committed Feb 20, 2022
1 parent 29eb611 commit 5ef7e9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog of PicoScenes Plugin Development Kit (PDK)

## Feb. 21, 2022
* [EchoProbe] Support lookback for X310 or multi-channel SDR

## Feb. 14, 2022
* [EchoProbe] Implement NDP frame transmission

Expand Down
5 changes: 3 additions & 2 deletions plugin-echoprobe/EchoProbePlugin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ void EchoProbePlugin::parseAndExecuteCommands(const std::string &commandString)
boost::algorithm::to_lower(modeString);
boost::trim(modeString);

/**
* Injector and Logger no logger performs stopTx/Rx() because of loopback mode for SDR multi-channel
*/
if (modeString.find("injector") != std::string::npos) {
parameters.workingMode = MODE_Injector;
nic->stopRxService();
nic->startTxService();
} else if (modeString.find("logger") != std::string::npos) {
parameters.workingMode = MODE_Logger;
nic->stopTxService();
nic->startRxService();
} else if (modeString.find("responder") != std::string::npos) {
parameters.workingMode = MODE_EchoProbeResponder;
Expand Down

0 comments on commit 5ef7e9c

Please sign in to comment.