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.72k stars 2.58k forks source link

Unable to detect channel activity in Cooja while simulating a network consisting of Sky motes #2656

Open amgovind1997 opened 4 years ago

amgovind1997 commented 4 years ago

Hi community, I am currently trying to implement a few new MAC protocols into the Contiki source tree (version 3.0). I am using Sky motes for the simulation. I have set the value of _NETSTACK_CONFRADIO to _cc2420driver using the project_conf file. However, the channel clear assessment function always returns that the channel is clear. Hence, I am facing a difficulty while implementing protocols like BMAC, ZMAC etc. which make use of the CCA function. I tried another example where, I constantly transmitted packets between two nodes and observed traffic using a third node. Again the channel was always detected to be clear. I am unable to ascertain if this is a problem with Cooja or with Contiki itself, as I don't have access to hardware as of now (due to the lockdown). Does anyone know a workaround in this issue? Or has anybody else experienced a similar issue?