Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 25 18:05
    kkrentz synchronize #2295
  • Nov 25 17:22
    kkrentz synchronize #1774
  • Nov 25 16:53

    nvt on develop

    6LoWPAN: Remove deprecated sics… Merge pull request #2297 from k… (compare)

  • Nov 25 16:53
    nvt closed #2297
  • Nov 25 16:17
    nvt closed #1275
  • Nov 25 16:17
    nvt commented #1275
  • Nov 25 16:16
    nvt closed #780
  • Nov 25 16:16
    nvt commented #780
  • Nov 25 07:33
    kkrentz synchronize #1774
  • Nov 24 14:53
    kkrentz edited #2295
  • Nov 24 14:53
    kkrentz synchronize #2295
  • Nov 24 13:21

    nvt on develop

    Avoid using rand() directly in … Merge pull request #2299 from a… (compare)

  • Nov 24 13:21
    nvt closed #2299
  • Nov 24 11:52
    arurke closed #1730
  • Nov 24 11:52
    arurke locked #1730
  • Nov 24 11:50
    pjonsson commented #1730
  • Nov 24 10:36
    arurke opened #2299
  • Nov 24 08:28
    kkrentz opened #2298
  • Nov 24 08:26
    kkrentz opened #2297
  • Nov 24 08:25
    kkrentz opened #2296
salmeghlef
@salmeghlef
Hello guys,How to install Contiki-NG in a graphical user interface form? I don't want to use it as a command line form!!! Is there a GUI mode available for Contiki-NG?
eloudrhiri-abdelhadi
@eloudrhiri-abdelhadi
Hello Community,
I've a issue about energest module with Cooja motes. It always prints 0 permil for rx, tx, lpm. CPU ticks are always at the maximum. How can I deal with this issue ?
eloudrhiri-abdelhadi
@eloudrhiri-abdelhadi
image.png
Issaaaaaaaaam
@Issaaaaaaaaam
Hello guys,
I wanted to know if you could point me to a working TCP-connection demo. I tried the old contiki tcp demo but for some reason it does not work on cooja.
Thank you in advance!
salmeghlef
@salmeghlef
Hello guys, when trying to run cooja under contiki-ng using $ and run :
it says: build.xml is not found, how to fix this issue please?
eloudrhiri-abdelhadi
@eloudrhiri-abdelhadi
Hello again,
I would like to give an update about my issue, it may help someone eventually if they face the same problem.
I found that in the radio-cooja.c file, the ENERGEST_ON functions for listening and transmitting were missed, and therefore we could never launch the energest module once the mote is one of these two states.
Which led me to update the two radio-cooja files.
But, the ticks of the CPU are at the maximum value. I think this is the value it should indicate if we use cooja mote. What do you think?
Dr Automaton
@ekawahyu
Hey guys, I always wanted to develop Contiki-NG and Cooja on Windows, and finally I made it happens! Just in case anyone is interested to do the same: https://youtu.be/zfA9BINRvVk
2 replies
You need Windows 10/11 with WSL/WSL2 installed and for Sky mote you need to build MSP430 GCC toolchain build from source. Anyway, follow the instruction in the video and let me know if you have any question
And last night I added an update on how you can use VSCode with integrated WSL/WSL2 terminal for Contiki-NG development. Here is the link: https://youtu.be/PyNLdX4-vgg
Dr Automaton
@ekawahyu
Thanks to all of you who provided wiki pages and documentation on how to make this to work!
salmeghlef
@salmeghlef

guys, can someone help me to convert this C code to .sky file so it can be applied on cooja mote, thank you
(CoAP_Clinet.c & CoAP_Client.h)

https://drive.google.com/file/d/1wqOXc2sExr2QFxqUBuHfQcGqJwoEtkhv/view?usp=sharing

and the dependent file

https://drive.google.com/file/d/1KXByL1Yb2C5Gvt8OGBrB_yhsa02rbWpi/view?usp=sharing

23 replies
kkrentz
@kkrentz
Does somebody know of a replacement for "ant run_errorbox"? Ultimately, I would like to see the mote outputs before a crash.
CPA-Aarts
@CPA-Aarts
I'm trying to create a rpl udp client/server network (+1 border router), but all nodes tell me they're waiting for prefix. I didn't have this problem in contiki 2.7
My current main goal is to create a mesh network of rpl/6lowpan/coap nodes that create data at an interval, route it to the border router for logging and each hop data is appended. For example, each node sends a string with their IDs appended when the string is passed through.
Right now the problem is that no communication is happening at all. I wish to first try to make it work on the basic rpl templates before moving on to the desired cc2650 platform.
CPA-Aarts
@CPA-Aarts
I have read through the contiki docs, but additional documentation/tutorials/help for this is appreciated :). (Am also available on Teams or Discord if someone is willing to help this much)
CPA-Aarts
@CPA-Aarts
Currently have a udp rpl many client / single server network. I can alter the message, but I am not sure how I would write and assign an "ID" variable to be added to the message and have it unique per mote created. I could create multiple client.c files with unique message but that would be redundant and poorly scalable.
Also looking at the template it seems clients should print the logs when they receive data from other clients, but that is not the case. How can I force clients to display a message when a packet from a sender to a different destination (root/server) is being passed on. (bonus points on tips on altering those packets)
farzad veysi
@farzadveysi313_gitlab
Hi @alexstanoev,
Could you please let me know how I can save the logs of two concurrent simulations separately in COOJA? by default the log of the simulation is held in the directory of the project under the name COOJA.testlog. When I try to run COOJA on the HPC server over multiple nodes, only one node writes log in the COOJA.testlog. Is there a way to record the log of each node under a different name?
1 reply
kkrentz
@kkrentz
Which versions of gnu-binutils and gnu-cc are recommended for the latest Cooja? A Cooja simulation of mine hangs and the problem apparently lies in the interface between the C- and Java-world ...
2 replies
Sol-Bee
@SolBee
Hello guys, how can I solve the following error when run './gradlew run' in WSL Ubuntu 20.04 LTS?
I followed the instructions (https://docs.contiki-ng.org/en/develop/doc/getting-started/Toolchain-installation-on-Linux.html) but I cannot run cooja.
I also followed the video (https://www.youtube.com/watch?v=zfA9BINRvVk)
3 replies
image.png
YSmolders
@YSmolders
error.png
Hi all, im having a problem running a Cooja mode after updating my Contiki-ng folders yesterday. It compiles the mote just fine, but it cannot create it.
Any help is appreciated
13 replies
Mohammad-Reza feyzi
@jones199
hi Developpers . Could you tell me how how to use TSCH with UDP client and server mote in contiki .best Regards
6 replies
btgwynn
@btgwynn
Hello Developers. Can a Contiki NG node be a Root of one RPL instance and a child in another? I saw this presentation:www.ietf.org/proceedings/94/slides/slides-94-rtgarea-1.pdf, which says a node can be a router in one instance and a leaf in another, and I know that isn't quite the same as what I am asking. I put together a test to try. In Cooja, I made two nodes, each using the rpl-border-router example configured to use RPL classic in storing and multicast mode, but with different default instance IDs and different prefixes. Both border routers connect to a Ubuntu host via tunslip. I have RPL logging set to DBG. When I run the simulation I see the nodes exchange DIOs, each joins the other's DAG, and each have IP addresses with both prefixes. However, if I ping from the host I don't get a ping response, but do see warnings from both nodes that a loop is detected. Is there something I am missing in my configuration to allow a root of one DAG in one instance participate as a child in a DAG on another instance? I see that uip configuration is set to act as a router by default, so it seems like that I have done should be able to be handled.
2 replies
salmeghlef
@salmeghlef
Hello guys, Is there a demo on how to use the native platform for contiki based motes to simulate client-server networking ?
11 replies
salmeghlef
@salmeghlef
Screen Shot 1444-04-14 at 9.39.19 PM.png
Screen Shot 1444-04-14 at 9.39.19 PM.png
safiyagul
@safiyagul
hello all can anyone guide me on how to generate heterogeneous traffic in RPL using Contiki -ng
safiyagul
@safiyagul
@jones199 are u able to balance the traffic load by changing DIO?
1 reply
Mohammad-Reza feyzi
@jones199
hi Developpers . Please tell me how to calculate and plot the metrics such as : PDR,Latency and ... from the cooja log files. Best Regards
11 replies
safiyagul
@safiyagul
for calculating PDR , PDR = (∑ received packets by destination/ ∑ sent packets by the source ) *100%. you have to check the log file line by line to see how many packets has been sent and how many received.
similarly for the latency, you have to check the time at which first hello message has been sent by which node
Ivanilson França Vieira Junior
@ivanilsonjunior
image.png

Thinking aloud to open a discussion regarding metrics (PDR):

I have been researching TSCH scheduling and realized that PDR might hide network issues; for example, disconnections may occur in TSCH networks, and after a while the queue is full, and the S.O. notifies the app that it cannot generate data (at least until the link is restored). Disconnections may happen due to failure in node synchronization(IEEE Std 802.15.4 - Section 6.5.4.2). But, the PDR calculus is only performed over the generated and sent data. IMHO, PDR is an excellent measure to assess links, paths, etc. But, it could hide some TSCH issues as MAC disconnections. That's why I relate the PDR with the Expected Generated Packages: Simulation Time, Warmup time and the nodes sending interval (All nodes except root generates).

I don't know if I have explained my point clearly or if my reasoning is correct, but I think it is interesting.

Mohammad-Reza feyzi
@jones199
Hi Developpers i have some problems in TSCH . i Wrote the program an codes and compiled very well but unable to send the data to the sink . please help me. best regards
4 replies
Screenshot from 2022-11-12 05-18-49.png
salmeghlef
@salmeghlef
how to show the sign ">" on a running hello-world example and start typing some commands just like in the attached screenshot:
Screen Shot 1444-04-19 at 10.11.29 PM.png
2 replies
CPA-Aarts
@CPA-Aarts
Is it possible to send a message not to root but just the parent with RPL-Lite. I would say so since it is upward routing / non-storing, but I cannot find info or a get_parent_ipaddr()function in the documentation.
3 replies
Aditya Sadawarte
@addy419
Hi, I am trying to find the current parent in RPL-Lite. How do I do that? I want to make a graph of latency (group by hop neighbourhood) from sink
7 replies
CPA-Aarts
@CPA-Aarts
generic question: what is the quickest procedure to testing updated code in the cooja simulation? Right now I reload the simulation, but when I work with multiple mote types (e.g. server/client) , the reload causes all nodes to be set to a single type. Perhaps there's a faster way to debug, test and experiment?
2 replies
Dr Automaton
@ekawahyu
@CPA-Aarts It was a bug in Cooja I reported about 4 weeks ago. Please take a look at this PR that has the fix for it: contiki-ng/cooja#682
2 replies
CPA-Aarts
@CPA-Aarts

vmplayer_DKkJKKwiEc.png

I notice a udp packet is being sent and acknowledged using radio message analysis. However the mote 2 is not capturing the packet and the payload. Closely following the udp-/client .c examples , which also contains a (albeit commented) reponse callback code.

Ivanilson França Vieira Junior
@ivanilsonjunior

Hi, I have a doubt regarding Cooja's way of running, and I would like some advice...
I have three scenarios and need to perform several runs changing a few parameters (It's working Ok), but after the Gradle adoption, I changed my code to use it.

#https://github.com/ivanilsonjunior/pythonLogParser/blob/4249d9ac554e3f9b3e71fbf495f2099ee791efa8/Runner.py#L58
        args = " ".join([self.COOJA_PATH + "/gradlew --no-watch-fs --parallel --build-cache -p", self.COOJA_PATH, "run --args='-nogui=" + filename, "-contiki=" + self.CONTIKI_PATH, "-logdir=" + self.SELF_PATH, "-logname=COOJA.log" + "'"])

Is there some performance gain if I use the old way, cooja.jar (grade fulljar) file, instead of the Gradle?
Best regards.

2 replies
Rahav Dor
@rahav.dor_gitlab

Hello. Is it possible to call clock_wait() when compiling for .native or Cooja?

Is there a way to implement a few millisec blocking delay otherwise? (for a scientific experiment I need a function to hold in place, without yielding for a very short time).

WonderSarz
@WonderSarz
Hello ! Is there any examples on centralized TSCH scheduler implementation on contiki-ng/ cooja ? Thank you for your help.