-
Notifications
You must be signed in to change notification settings - Fork 129
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
Issues about using DEN service under Veins #60
Comments
Sorry @ruisonghan, I cannot reproduce the problem you have described. I have set a breakpoint at |
I am checking all my codes and I will tell u the results when done. But I don't think it is the problem of |
My first thought was whether my issue is related to #7, but codes have changed a lot. Anyway. I will check my codes. |
Sorry, I still don't know the reasons after checking my codes. I added some output in EV_INFO << "UseCase::initialize"<< endl; I got the following logs, but it seems that World.node[0].appl.middleware: Initializing module World.node[0].appl.middleware, stage 1
World.node[0].appl.middleware.CaService: Initializing module World.node[0].appl.middleware.CaService, stage 0
World.node[0].appl.middleware.DenService: Initializing module World.node[0].appl.middleware.DenService, stage 0
World.node[0].appl.middleware.DenService.TrafficJamEndOfQueue: Initializing module World.node[0].appl.middleware.DenService.TrafficJamEndOfQueue, stage 0
World.node[0].appl.middleware.DenService.TrafficJamAhead: Initializing module World.node[0].appl.middleware.DenService.TrafficJamAhead, stage 0
World.node[0].appl.middleware.DenService.ImpactReductionContainerExchange: Initializing module World.node[0].appl.middleware.DenService.ImpactReductionContainerExchange, stage 0 Do u need me to share the codes with u? Thanks |
Turned out that the CCH carrier frequency was not set correctly in the storyboard scenario's configuration using Veins PHY/MAC. |
Hi, Riebl Thanks, it works. May I know why there is still no output of logging information in OMNeT++ if I add some log commands like |
|
Hi, Riebl I have read the simulation manual of OMNet++ and know that EV equals to EV_INFO. I tried to set different levels of logging but failed to succeed. Info messages are just suppressed under Veins, instead of INET. Currently, I don't know what difference between Veins and INET made this happen. |
I think this logging behaviour is more related to Veins than Artery. Since the original problem is solved I am closing this issue ticket. Do not hesitate to open another issue ticket if you think Artery is causing some problems related to logging. |
OK. Thanks again for solving the original problem for me. |
Hi, Riebl
With the help of your work, I can build some simple scenarios of my own. Thanks so much.
However, when testing my scenario, I found that the DEN service and its use cases may not work when using Veins module as the PHY.
My scenario:
A truck controlled by Storyboard will stop and send a DEN messages, and vehicles receiving this message will stop or avoid the choosing the road where the truck is.
My work:
I added my DEN use cases under artery/src/artery/application/den/ and added my scenarios under artery/src/artery/scenarios.
The problem and relevant test:
Everything goes well when using the INET network as the PHY in omnetpp.ini, but when changing INET to Veins, my use case doesn't work anymore. Vehicles were not controlled by my use case.
In order to know why, I tested your TrafficJamAhead use case (one use case of DEN service) under the scenario storyboard. I added some outputs in void TrafficJamAhead::initialize(int stage) using EV commands. It looks like this:
The results:
When using INET, I could see these outputs in the log window of OMNet++.
While, on the other side, I could not see these output with Veins and it seems that TranfficJamAhead doesn't initialize at all.
My question:
I am not sure whether this occurs due to my own fault or not, since I have done some modifications to the DEN service. But since I can run my scenario correctly under INET, why it is not OK with Veins?
The text was updated successfully, but these errors were encountered: