Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
i am having the same issue on same configuration
Original comment by rajinder...@gmail.com
on 15 Sep 2011 at 3:16
I am facing the same problems,....
can we get any explanation about it, and how to solve the problem
Original comment by jordan.j...@yahoo.com
on 21 Sep 2011 at 4:51
In the code file CTPTestingApplication.cc, I have commented the line by adding
following line 'COMMENT THIS LINE' as shown below.
// This method updates the number of packets received by node 0 from other nodes
void CtpTestingApplication::update_packets_received(int srcID, int SN)
{
map < int, packet_info >::iterator i = packet_info_table.find(srcID);
if (i == packet_info_table.end());
//COMMENT THIS LINE // declareOutput("Packets received", srcID);
packet_info_table[srcID].packets_received[SN]++;
if (packet_info_table[srcID].packets_received[SN] == 1)
collectOutput("Packets received", srcID);
}
void CtpTestingApplication::update_ddr_per_sn(int srcID , int SN){
map<int,int>::iterator i = packet_ddr_table.find(SN) ;
if(i==packet_ddr_table.end()){
trace()<<"New entry: "<<SN ;
//COMMENT THIS LINE // declareOutput("My Stats",SN) ;
}
if(packet_info_table[srcID].packets_received[SN]==1){ //duplicate reception
collectOutput("My Stats",SN,"Duplicates") ;
}
else {
packet_info_table[srcID].packets_received[SN]++;
packet_ddr_table[SN] += 1 ;
collectOutput("My Stats",SN,"DDR") ;
}
trace()<<"Received for SN "<<SN<<": "<<packet_ddr_table[SN] ;
}
=================================
make is successful.Now proceeding further with CastaliaResults....
Original comment by kiranpal...@gmail.com
on 27 Sep 2011 at 2:19
Sorry for the late reply. I confirm, the compilation error is related to
changes made to collection statistics between Castalia 3.0 and 3.1.
The solution of comment #4 is fine.
Note that ctp-castalia will not work on Castalia 3.2 due to some changes. An
updated version already exist but has not been tested. It will be available by
the end of October (sorry but I have my phd defense before :) ).
Original comment by ucolesa...@gmail.com
on 29 Sep 2011 at 3:23
[deleted comment]
[deleted comment]
Original comment by ucolesa...@gmail.com
on 30 Sep 2011 at 10:26
Ok here's what you need to do to get the released CTP code to work with
Castalia 3.2 (or the upcoming 3.3)
in CtpTestingApplication.cc and CtpTestingApplication.h
- replace ApplicationGenericDataPacket with ApplicationPacket
in CtpTestingApplication.cc
- comment out the whole update_packets_received() method
- delete declareOutput("My Stats", SN) ; from the update_ddr_perSN() method
and put declareOutput("My Stats") ; at the startup() method
in mac/cc2420Mac/CC2420Mac.cc
- replace instances of getRoutingInteractionControl() with
getNetMacInfoExchange()
- replace getMacInteractionControl() with getMacRadioInfoExchange()
- swap RSSI with LQI in the right hand side of the assignments (little bug in
the original code)
Optional, depends on platform (I had to do it for my Mac OSX)
in mac/cc2420Mac/TosEnvironment.h AND in
routing/ctpNoe/components/TosEnvironment.h:79
- line 79 replace 0x100000000 with 0xffffffff
in routing/ctpNoe/components/CtpForwardingEngine.cc
- replace line 1080 netPkt->getNetMacInfoExchange().source =
selfAddress.c_str() ; // ok
with netPkt->setSource(selfAddress.c_str()) ; // ok
- replace instances of getRoutingInteractionControl() with
getNetMacInfoExchange() (lines 213, 1053, 1081)
in routing/ctpNoe/components/CtpRoutingEngine.cc AND
routing/ctpNoe/components/DualBuffer.cc AND
routing/ctpNoe/components/LinkEstimator.cc
- replace instances of getRoutingInteractionControl() with
getNetMacInfoExchange()
Original comment by bou...@gmail.com
on 18 Oct 2011 at 10:28
Please check the new CtpCastalia-beta-1.1 release in the download section. Now
it supports Castalia 3.2.
Original comment by ucolesa...@gmail.com
on 4 Jan 2012 at 1:44
Original issue reported on code.google.com by
kiranpal...@gmail.com
on 10 Sep 2011 at 5:40