Comments (10)
[deleted comment]
from ctp-castalia.
i am having the same issue on same configuration
Original comment by [email protected]
on 15 Sep 2011 at 3:16
from ctp-castalia.
I am facing the same problems,....
can we get any explanation about it, and how to solve the problem
Original comment by [email protected]
on 21 Sep 2011 at 4:51
from ctp-castalia.
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 [email protected]
on 27 Sep 2011 at 2:19
from ctp-castalia.
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 [email protected]
on 29 Sep 2011 at 3:23
from ctp-castalia.
[deleted comment]
from ctp-castalia.
[deleted comment]
from ctp-castalia.
Original comment by [email protected]
on 30 Sep 2011 at 10:26
- Changed state: Accepted
from ctp-castalia.
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 [email protected]
on 18 Oct 2011 at 10:28
from ctp-castalia.
Please check the new CtpCastalia-beta-1.1 release in the download section. Now
it supports Castalia 3.2.
Original comment by [email protected]
on 4 Jan 2012 at 1:44
- Changed state: Fixed
from ctp-castalia.
Related Issues (9)
- Make errors HOT 5
- multipath rings routing HOT 3
- effect of changing TOSH_DATA_LENGTH parameter from 28 to 60(TosEnvironment.h file in routing folder) HOT 3
- Issue Castalia 3.2 HOT 3
- trying to run make for the beta 1.1 version of CTP on castalia 3,2 HOT 1
- trying to change the congestion threshold in CTP HOT 5
- Not able to install ctp-castalia HOT 7
- modification in header
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 ctp-castalia.