Hello,
I am working on ubuntu 13.10 32 bits.
I am trying to integrate the usherbrooke implementation of 802.11p to ns2.35.
The link of the implementation is:
http://www.gel.usherbrooke.ca/interl...x.php?page=NS2
After respecting the instructions in the file instructions.txt present in the downloaded archive and when trying to make a simple example to try the 802.11p implementation, i got the error: Mac/802_11p set basicRate_: can't read "basicRate_": no such variable .
It seems like there is a binding error because the class Mac802_11p has a member variable: double basicRate_;
The error is caused by the line bind_bw("dataRate_", &dataRate_); in the constructor Mac802_11p::Mac802_11p()
A snippet of the code in the constructor:
tcl.evalf("Mac/802_11p set dataRate_");
if (strcmp(tcl.result(), "0") != 0)
bind_bw("dataRate_", &dataRate_);
else
dataRate_ = bandwidth_;
I noticed that this same code is used in 802.11 implementation which works well in ns2.
I noticed also that the file ns_tcl.cc contains the line Mac/802_11 set basicRate_ 1Mb and there isn't a line for 802.11P protocol.
Does anyone has an idea to fix this problem ?
If you have better alternatives for 802.11p implementation, your suggestions are welcome.