contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.71k stars 2.58k forks source link

perl script for mote output #2505

Open Dipen404 opened 6 years ago

Dipen404 commented 6 years ago

can anyone help me with the perl script to calculate energy consumption, latency, PDR, convergence time, control traffic overhead from the output of cooja simulation running RPL-UDP application

abbasalouswy commented 6 years ago

hello all I need same help for Dipen404

rahnemoon commented 6 years ago

it better to use the collect-view plugin and wrote your module base on this. but you could simulation script editor to calculate some statistics based on your mote's output. the simulation script editor works with JS with some limitation. And if you insist to use Perl, you could code JS script to write in file and process that log with Perl.

Dipen404 commented 6 years ago

@erfanlinman thank you but I don't have much ideas how to use simulation script editor to get some statisics I need to extract only numerical data values from mote output. But mote output does not specify which data values is represented for what thing of RPL or mote. My ultimate goal is to evaluate performance of RPL comparing ETX and hop count for different performance metrics such as latency energy consumption, PDR etc. I know we can change objective function MRHOF to Of0 but i am lost to get the specific statistics for corresponding MRHOF and of0.

rahnemoon commented 6 years ago

.@Dipen404 look for the delay, PDR you could use the collect-view but for the energy, you need some change. additionally, I advice you read the complete wiki in GitHub and Contiki 2.6 documents.

hieunq95 commented 6 years ago

Hi, I think this would be helpful https://pdfs.semanticscholar.org/d319/4d5f43f1cd3995ba7c9e99776ac8f150d445.pdf

dharejo commented 4 years ago

hi, can anyone please help me how to find latency of sky motes, t-motes and wismotes em trying a lot but didn't find any tutorial related to my work

dharejo commented 4 years ago

i hve performed simulation on these motes but found 0.0 value at latency graph so plz help me how plot graph of latency or calculate latency of motes in cooja.

sousouk commented 1 year ago

Hello can you tell me how I do script perl in cobtkiki cooja simulator please help me