Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 28 13:09
    arurke closed #2365
  • Jan 28 13:09
    arurke locked #2365
  • Jan 28 13:06
    arurke closed #2394
  • Jan 28 13:06
    arurke locked #2394
  • Jan 28 13:01
    slcmcu commented #2394
  • Jan 28 13:00
    slcmcu opened #2394
  • Jan 27 18:07
    arurke commented #2389
  • Jan 27 17:51
    arurke synchronize #2390
  • Jan 27 17:43
    arurke commented #2387
  • Jan 27 13:58
    atiselsts commented #2387
  • Jan 27 10:23
    atiselsts opened #2393
  • Jan 24 15:10

    nfi on develop

    Fix broken links in the documen… Merge pull request #2391 from n… (compare)

  • Jan 24 15:10
    nfi closed #2391
  • Jan 24 14:59

    nfi on develop

    Rearranged the tutorial order s… Merge pull request #2392 from n… (compare)

  • Jan 24 14:59
    nfi closed #2392
  • Jan 24 14:52
    nvt synchronize #2391
  • Jan 24 14:52
    nvt synchronize #2391
  • Jan 24 14:50
    nvt synchronize #2391
  • Jan 24 14:41
    nvt synchronize #2391
  • Jan 24 14:04
    nvt opened #2392
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
9 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.

1 reply
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.
2 replies
Jim Solderitsch
@jsolderitsch

I am back using contiki-ng after about a year away. I have built binaries for cc1352r1 Launchpads before and the command

make TARGET=simplelink BOARD=launchpad/cc1352r1

would produce a hex file and a bin file. Now this command produces an elf file only. I am trying to use TI's Uniflash tool to push firmware to my device but it seems it does not recognize an elf file. Can anyone help me create a .bin file from the sources. My Makefile is very stripped down:

CONTIKI_PROJECT = blink
all: $(CONTIKI_PROJECT)

CONTIKI = ../..
include $(CONTIKI)/Makefile.include

But it used to work when last I tried. Fresh docker pull of contiki-ng. Using docker desktop 4.14.1 on a Mac.

5 replies
Dr Automaton
@ekawahyu
Does anyone have any recommendation on a better debugging experience, preferably using OpenOCD, with XDS100v3 or ST-Link or JLink, for CC26xx product line? I expect the minimum it should run on terminal over GDB.
alexdr3437
@alexdr3437
Bit of a noob question: In Cooja, if I want to recompile my motes do I need to delete all of them, make a new mote type and re-add them? Is there an easier way?
2 replies
CPA-Aarts
@CPA-Aarts
Is there a nice guide(line) for analysing your network behavior? I'd like a way to quickly see how my adjustments improve/worsen the network in terms of latency / power consumption / transmissions per node, etc. At the moment I wrote some lines for prints int he Mote output window, but perhaps there's a better way to read or extract statistics to something like Matlab
1 reply
F. Fernando Jurado-Lasso
@fdojurado
Can anyone suggest how to increase the speed in Cooja simulator? Is there any special command for Gradle, cooja, etc? I am already using Cooja motes.
3 replies
alexdr3437
@alexdr3437

What is the correct way to add a new source directory? I am trying to add the path to PROJECT_SOURCEFILES like so:

PROJECT_SOURCEFILES += dir/file.c

But when I try to compile I get an error because it is not generating a dependency file.

fatal error: opening dependency file build/cooja/obj/.deps/dir/file.d: No such file or directory
3 replies
Mehdi Kherbache
@MehdiKherb
Hello, i want to ask if the mqtt_client provided in the examples works properly ? because i am trying to get a similar MQTT client from inside cooja to connect to an MQTT broker in the cloud but it does not work ..