How to change parameter values such as beaconLengthBits for car in veins

245 views
Skip to first unread message

Aman

unread,
Oct 21, 2019, 6:34:42 AM10/21/19
to OMNeT++ Users
Hi Christoph,

I am trying to vary the application message parameters in the omnetpp.ini file for application type = TraCIDemoRSU11p for the veins/examples/veins/RSUExampleScenario.ned example.
I changed the BeaconLengthBits value for RSU and it reflects in the debug mode.
However, the parameters for node/car are not recognized in the omnetpp.ini file. If I understand correctly, the cars (or nodes as they are referred to as in the veins) are generated on their own and do not need to be part of the RSUExampleScenario.ned.
But then how can I customize the parameter values of node[*] within omnetpp.ini?


#                      App Layer                         #
##########################################################
*.node[*].applType = "TraCIDemo11p"
*.node[*].appl.headerLength = 80 bit
*.node[*].appl.sendBeacons = false
*.node[*].appl.dataOnSch = false
*.node[*].appl.beaconInterval = 1s


Aman

unread,
Oct 21, 2019, 10:32:46 AM10/21/19
to omn...@googlegroups.com
Upon asking some other users on this group, it is clear that there is issue with my setup w.r.t node[*] parameters. Could you guide me as to what could be a starting point to troubleshoot why node[] can't be found?
I am using omnet++ 5.1.1, veins 4.6 , sumo 0.30.0, inet 3.6.4.

Christoph Sommer

unread,
Oct 21, 2019, 1:36:55 PM10/21/19
to OMNeT++ Users
Aman wrote:
>
> the parameters for node/car are not recognized in the omnetpp.ini file. If I understand correctly, the cars (or nodes as they are referred to as in the veins) are generated on their own

If I understand you right, you are worried that the text editor in the OMNeT++ IDE shows all parameters assigned to submodules of a car as "currently unused". In a sense, this is correct: until the simulation is running, there is really no car to assign these parameters to.

Do not worry, though: as soon as the simulation is running, the parameters are assigned as intended!

To help the OMNeT++ IDE understand what you are doing (that is, purely for cosmetics) , you can temporarily change your network's .ned file to contain a module instantiation like
node[0]: org.car2x.veins.nodes.Car;

I've seen this convince some OMNeT++ IDE versions that, at some points, cars will be in the simulation - and the "unused parameter" warnings go away.

Best,

Christoph

--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/

Mohammad Haidari

unread,
Oct 21, 2019, 3:28:44 PM10/21/19
to omn...@googlegroups.com
hi prof  Christoph
i want calculate the density of vehicles and to the number of beighbors how can calculate and access the number of neighbors pls guide me.
thanks  

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/1616925E-AF2A-4686-848B-93F439538692%40ccs-labs.org.
Reply all
Reply to author
Forward
0 new messages