Git Product home page Git Product logo

Comments (5)

awillecke avatar awillecke commented on June 17, 2024 1

Hi,

in Artery, you can use the result recording features of OMNet++. For example, the CaService can record the station ID and genDeltaTime when receiving a CAM. If it does is determined in the omnetpp.ini of the scenario you run. The example scenario has all recordings disabled by default. On how to enable recordings of all or only specific signals/statistics you are interested in, please refer to the OMNet++ documentation.

Best regards
Alex

from artery.

MartinaBarbiFivecomm avatar MartinaBarbiFivecomm commented on June 17, 2024

Thank you for your reply. However I have few more questions please:

  • In the highway-police scenario I get a results folder with scalar and vector data, but in the omnetpp.ini of this scenario there is no recording code to store those vectors. So where is it configured?

  • When trying to open the vec file in the Omnet++ IDE nothing is loading, or if I try to open the whole directory for example Desktop/artery/scenarios/highway-police it gives me an error saying that the directory could not be loaded. Do you know why is this happening?

Thanks in advance for your help,

Martina

from artery.

awillecke avatar awillecke commented on June 17, 2024

I have no experience with the highway-police scenario, but at a first glance it seems that it (or rather its services) does not record anything. That is why the result files are empty, and you cannot find any code for recording. You would need to implement the recording of the measurements you are interested in yourself. Maybe this part of the documentation is helpful.

If you just want to try recording data, you could enable recordings by the channelLoadRecorder in the envmod config section. Adding something like this should work:

*.node[*].channelLoadRecorder[*].ChannelLoad.vector-recording = true
*.node[*].channelLoadRecorder[*].ChannelLoad.scalar-recording = true
*.node[*].channelLoadRecorder[*].ChannelLoad.statistic-recording = true

from artery.

MartinaBarbiFivecomm avatar MartinaBarbiFivecomm commented on June 17, 2024

I did put these lines **.scalar-recording = true and **.vector-recording = true in the omnetpp.ini file and it stores some variables when also running the general configuration. However when I plot the data for the four vehicles I get these histograms for the minSNIR and PacketErrorRate, but I actually do not understand what is the x-axis representing? in the minSNIR which units are those values? And in the PacketErrorRate it should be something below 1 as it is usually a percentage right?

SNIR
PacketErrorRate

from artery.

riebl avatar riebl commented on June 17, 2024

The last time I have been using the OMNeT++ IDE is years ago. Thus, I cannot say what it is plotting there exactly. I assume you can get some details in the "Properties" section in the bottom left corner of your screenshots.

The scalars and vectors you see in the results files are default statistics produced by the INET WLAN model. As long as those are not explicitly disabled, you will find them in the result files. If you look for @statistic in the *.ned files, you will find a vast number of metrics you could record.

My personal favourite for collecting data with OMNeT++ is its SQLite backend. You can have a look at scenarios/car2car-grid/omnetpp.ini where this backend is used. Furthermore, this scenario can serve as an example of how to enable Artery-specific metrics such as LinkLatency. With the SQLite backend, the result files are SQLite databases you can open and process independently of the OMNeT++ IDE. For my thesis, I have used Python a lot for analysing the data and creating plots.

from artery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.