Comments (5)
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.
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.
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.
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?
from artery.
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)
- Artery build error HOT 6
- run into problems while trying `vagrant up` on my Ubuntu 22.04 machine HOT 6
- CAM and DENM messages HOT 2
- DEN use cases HOT 1
- connecting artery simulation scenario with the external v2x device HOT 3
- Traffic Lights management HOT 1
- Problem with adding new files to INET (<!> Error: Cannot load library) HOT 3
- adding RSU to simuLTE probleme cars veins HOT 5
- Difficulty Implementing External Service Message Transmission and Enabling Network Participants to Edit Messages in Artery HOT 6
- Integrating MQTT protocol with artery HOT 13
- Segementation fault (core dumps) in artery::FovSensor::refreshDisplay HOT 1
- ASSERT: Condition 'mController' does not hold in function 'getVehicleController' HOT 14
- Equip services to vehicles HOT 1
- Protobuff transmission using cPacket and request
- Problems running CAM Fixed and Dynamic with the same scenario HOT 5
- about a cmake error HOT 6
- UPER encoded DecentralizedEnvironmentalNotificationMessage(DENM) structure
- Regarding creating a new service to stationary nodes(rsu) HOT 3
- Creating messages HOT 1
- Ask for help! How do I use 'CollectivePerceptionMockService' in Artery? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artery.