{"id":48684556,"url":"https://github.com/comnetshh/trace-based-radio-model","last_synced_at":"2026-04-11T03:55:39.375Z","repository":{"id":122873823,"uuid":"400262765","full_name":"ComNetsHH/Trace-Based-Radio-Model","owner":"ComNetsHH","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-26T19:59:12.000Z","size":2586,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-11T03:55:37.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ComNetsHH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-26T18:07:47.000Z","updated_at":"2021-08-26T19:06:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"17cfbfad-d679-4e68-924a-49402766d37c","html_url":"https://github.com/ComNetsHH/Trace-Based-Radio-Model","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ComNetsHH/Trace-Based-Radio-Model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComNetsHH%2FTrace-Based-Radio-Model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComNetsHH%2FTrace-Based-Radio-Model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComNetsHH%2FTrace-Based-Radio-Model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComNetsHH%2FTrace-Based-Radio-Model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ComNetsHH","download_url":"https://codeload.github.com/ComNetsHH/Trace-Based-Radio-Model/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComNetsHH%2FTrace-Based-Radio-Model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-11T03:55:38.550Z","updated_at":"2026-04-11T03:55:39.346Z","avatar_url":"https://github.com/ComNetsHH.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![DOI](https://zenodo.org/badge/400262765.svg)](https://zenodo.org/badge/latestdoi/400262765)\n# TraceBasedRadio\nOMNeT++ Trace-Based Radio Model extends the INET's `UnitDiskRadio` to a more realistic model by obtaining the Signal-to-Noise Ratio (SNR) in the `TraceBasedReceiver` and passing the SNR to a novel `TraceBasedErrorModel`, which queries the trace file-provided lookup table to obtain the closest-matching SNR’s mapping to a Packet Error Rate (PER) and Bit Error Rate (BER). This trace file is expected to contain a triple of (SNR, PER and BER) per line as follows:\n| SNR (dB) |  PER |     BER     |\n|:--------:|:----:|:-----------:|\n|    -5    |   1  | 0.493378795 |\n|    -4    |   1  | 0.486143304 |\n|    ...   |  ... |     ...     |\n|    10    | 0.01 |   5.22E-08  |\n\n## Getting Started\n1. Please download [inet-4.2.5](https://github.com/inet-framework/inet/tree/v4.2.5) for OMNeT++ 5.6.2 and import it into the simulator.\n2. Please clone this repo `TraceBasedRadio` and import it into OMNet++. To build it you need to do the following steps:\n    1. `inet` must be set as a project reference. This is done by right-clicking on the `TraceBasedRadio` project in the Project Explorer and navigate to `Properties-\u003e Project References -\u003e Select inet -\u003e Apply and Close`\n    2. Ensure the build modes of this project and `inet` are identical (both `release` or both `debug`): This is done by right-clicking on each project in the Project Explorer and navigating to `Build Configuration -\u003e Set Active -\u003e \u003cmode\u003e`\n    3. The `include paths` from INET must be added to this project such that you can write classes in your project which inherit `inet` classes. For that, you need to right-click on the `TraceBasedRadio` in the Project Explorer and navigate to `Properties -\u003e OMNeT++ -\u003e Makemake`, select the `src` folder in the list and then click \"Options\" in the right panel. \n    4. Go to the `Target` tab and make sure that `Shared library ...` is checked.\n    5. Now go to the `Compile` tab and make sure all checkboxes are checked. \n    6. Move to the `Link` tab and make sure that the `Link with libraries exported from...` checkbox is checked. \n    7. Finally, `Apply and Close` and you should be able to `build` the `TraceBasedRadio` project without errors as a project that reference the INET project.\n5. Navigate to `radio-model/simulation/omnetpp.ini` in the OMNeT++ IDE and click run. \n6. Run the following command in the terminal to extract the results into a .csv file using the OMNeT++'s scavetool:\n```\ncd ./radio-model/simulation/results/\nscavetool export -f 'module(traceBasedRadioModel.host[1].wlan[0].radio.receiver.errorModel) AND name(\"Signal-to-Noise_Ratio\")' -o SNR.csv General-x*.vec\nscavetool export -f 'module(traceBasedRadioModel.host[0].app[0]) AND name(\"packetSent:count\")' -o Packet_sent.csv General-x*.sca\nscavetool export -f 'module(traceBasedRadioModel.host[1].app[0]) AND name(\"packetReceived:count\")' -o Packet_received.csv General-x*.sca\n```\n7. The python result analysis script that generates the figure of the PER vs the SNR could be run using:\n```\npython result_analysis_per_vs_snr.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomnetshh%2Ftrace-based-radio-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomnetshh%2Ftrace-based-radio-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomnetshh%2Ftrace-based-radio-model/lists"}