Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preliminary hidden bwp monitor #11

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

XuyangCaoPrinceton
Copy link
Collaborator

As title. Write a JSON parser that takes JSON-format (as discussed) RRC Reconfiguration and monitor on hidden bwp. If ASN format given, we can just use the ASN decoder (even better).

Test on MOSOLAB 40MHz multi bwp. Works well; correctly deduce the DCI size from configs and monitor the hidden bwp DCIs.

Next steps:
Interface with the actual DB.
Frequency start detection (hidden bwp might start on a different RB, multiple of 6 though).
CRC check for different DCI size for cross validation.

^ more can be found in comments as well.

The JSON parser will be improved based on more configuration scenarios we see (too many optional fields and hence existence check handling).

a2.csv
a1.csv

* dci size with CRC == 1 to serve as a target and maybe use dynamic programming
* to tune the dci-size parameters towards the target size
*/
std::ifstream f("/home/xyc/hidden_bwp_40/NG-Scope-5G/nrscope/hidden_bwp_db/369.txt");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me change this as a config file (not config file but copy in CMAKE term)...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -31,6 +31,9 @@
#include "asn1_utils.h"
#include <cstdio>
#include <stdarg.h>
#include <nlohmann/json.hpp>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me add to README how to install this (installed on our server though)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1149,6 +1150,11 @@ int srsran_pdcch_nr_decode_with_rnti_nrscope_dciloop(srsran_pdcch_nr_t* q,

// Copy DCI message
srsran_vec_u8_copy(dci_msg->payload, c, dci_msg->nof_bits);
// printf("[hidden bwp dci bits]: ");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep those comments for later use thanks

@@ -48625,6 +48629,624 @@ SRSASN_CODE cell_group_cfg_s::unpack(cbit_ref& bref)
}
return SRSASN_SUCCESS;
}

SRSASN_CODE cell_group_cfg_s::from_json(json js_in) {
Copy link
Collaborator Author

@XuyangCaoPrinceton XuyangCaoPrinceton Sep 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't follow the 80-character rule here; match what they have in srsRAN libraries and this make those long indexing looks easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant