Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 27 04:52
    yanpads commented #1182
  • Jan 25 00:28
    hseokman opened #1182
  • Jan 24 22:00
    hseokman opened #1181
  • Jan 24 21:26

    g-oikonomou on develop

    Add dbg-io module for JN516x pl… Merge pull request #1180 from h… (compare)

  • Jan 24 21:26
    g-oikonomou closed #1180
  • Jan 24 21:03
    g-oikonomou closed #1178
  • Jan 24 21:03
    g-oikonomou commented #1178
  • Jan 24 21:00
    hlukasz commented #1178
  • Jan 24 20:59
    hlukasz opened #1180
  • Jan 24 15:54
    manuwsn opened #1179
  • Jan 23 21:28
    g-oikonomou commented #1178
  • Jan 23 21:00
    hlukasz commented #1178
  • Jan 23 20:59
    hlukasz commented #1178
  • Jan 22 12:14
    g-oikonomou commented #1178
  • Jan 22 09:27
    yatch labeled #1178
  • Jan 22 09:27
    yatch commented #1175
  • Jan 22 09:26
    yatch closed #1175
  • Jan 22 09:26
    yatch labeled #1178
  • Jan 22 09:26
    yatch opened #1178
  • Jan 22 09:09
    yatch commented #1175
MrGlobi
@MrGlobi
Hey everyone, so i still have problems running the sicslowpan fragmentation. The reassembly fails with the message: "input: invalid fragment offset". But I think that the fragments i receive are correct. The problem is, I think, that frag_buf has some random data in it (the first 2 elements, the rest seems to be fine). Even when I boot up the node, and i enter the function "input" in sicslowpan.c for the first time, the elements of frag_buf have nonzero len. Im a bit confused whats hapening here. Any suggestions? Did anyone use the reassembly of sicslowpan successfully?
hseokman
@hseokman
I committed my CC1312R TSCH to my repo https://github.com/hseokman/contiki-ng/tree/tsch-cc1312r
I had to change rtimer interrupt priority so that the radio API work in the interrupt handler and RTC and RAT was drifting away that I had to sync periodically. Also printing in the interrupt handler will reset the device that I had to disable framer and MAC logging.
Jean Pierre Dudey
@jeandudey
Hi! i have a question, can Contiki-ng be used with C++, and how?
Ahmed Ibrahim
@ahmedmibrahim
Hey everyone,
cc26xx-web-demo consumes more power than the datasheet value in Deep Sleep Mode, Could you please help root cause this issue? Currently the demo won't be suitable for battery powered applications
contiki-ng/contiki-ng#1131
MichaelFurxer
@MichaelFurxer
Hi, does anyone know of a way to use an android phone as a 6LoWPAN border router? Maybe a CC2650 Device could run the border router and connect trough BLE with a phone using its internet connection? That would be a great thing!
Ahmed Ibrahim
@ahmedmibrahim
@MichaelFurxer not the best Idea as the network will be lost if the phone ran out of battery or so ...
use a cheap raspberryPi (with bluetooth those days) as Border router, and connect to it via the android phone
Andrew
@NeoN7777
Hi, can somebody help to understand low power mode of contiki-ng for CC1310? contiki-ng/contiki-ng#1152
Frode Eskelund
@RCfesk
We believe we observe problems with neighbor tables filling up in dense networks and nodes not able to join properly or keep stable connections. We found the paper "Scaling RPL to Dense and Large Networks with Constrained Memory" by @simonduq , @joakimeriksson et al. that also discusses some of the limitations. Are there any solutions or better algorithms for replacing neighbors? Or any other work on this problem that you are aware of?
Joakim Eriksson
@joakimeriksson
Exactly as you say - either yo will not get nodes to join or the connections will ot be stable (due to neighbors lost their link-states, etc). So in dense networks it will be always issues as long as you need state in the routing nodes.
Are you using storing or non-storing mode of RPL? Non-storing will give you the option of having more neighbors in the tables since no routes are stored.
KavinduS
@KavinduS
Can someone guide me on how to convert some conde written in contiki to contiki-ng. I am fairly new to contiki-ng.
KavinduS
@KavinduS
I have been following mark solters contiki ota repo
is there a way to do it using contiki-ng
if you have done it using contiki-ng please do tell
Joakim Eriksson
@joakimeriksson
Have you looked at this: contiki-ng/contiki-ng#623
Frode Eskelund
@RCfesk
@joakimeriksson Thanks. We're using rpl-lite, and are able to increase the number of nodes somewhat, but every entry seems to take up a few tens of bytes, so we run out of memory pretty soon in any case.
Joakim Eriksson
@joakimeriksson
@RCfesk Ok! So then you are using non-storing. Do you see what is the reason for the topology issues? Is it due to no longer adding neighbors or due to neighbour churn and loss of link-stats?
Frode Eskelund
@RCfesk
I think we see both. Sometimes the new nodes are not added, and we do also see much more control traffic and frequent topology changes in dense networks.
Joakim Eriksson
@joakimeriksson
Ok, same things as we saw when starting the work with the neighbour policy. Do you use the "default" policy or is that not used? The largest problem is if you remove "parents" with good link metrics as the node need to guess link quality next time it sees it. So maybe trying a more conservative switching could work a bit - but that will leave you with a slightly more non-optimal topology. On children nodes there is not much need of link metrics and I think there is some kind of auto-add feature of neighbours on sending of packets somewhere (I am not the expert on that feature - and it is a little bit of violation of IP's model of neighbors) - but that will also save some memory (to not have all the children in the tables all the time). How many nodes do a typical node in the network have?
And what is the size of your nbr table?
MichaelFurxer
@MichaelFurxer
@ahmedmibrahim I was thinking of a location without WiFi or LAN, power supply is no problem. Sure i could use a phone as a WiFi Hotspot, a Raspberry as border router and a CC2650 as Slip radio. It would be great though to skip th Raspberry. I was thinking if its possible to use BLEach to forward IPv6 packets to the phone and from there to the internet. Im not sure if i thats possible though....
Another idea would be to run tunslip6 on the phone and connect a CC2650 border router via bluetooth serial port.
Frode Eskelund
@RCfesk
Yes, we have not modified the default simple RPL-lite policy (It seems to be different than the Classic). The networks we are testing on are different from case to case, but will probably be in the order of tens of nodes within close listening range in dense networks. We've been using nbr table size of 16. We can delay the onset of the problem by increasing the size, but to "solve" it I think we need to look more into the algorithm itself. Thank you for the feedback; we'll have a look to see if a more non-optimal topology is feasible instead of more unstable networks.
Joakim Eriksson
@joakimeriksson
@RCfesk - ok so even with just a few more reachable nodes you will get issues?! It would be interesting to add Cooja-CI tests with that kind of setup to simulate the same network density and see what happens.
Alakesh Kalita
@Alakesh1025_twitter

I want to add a shared link using {timeslot -0, channel offset (time source node linkaddr % 16)}
struct tsch_neighbor *n = tsch_queue_get_time_source();
tsch_schedule_add_link(sf_min,
(LINK_OPTION_RX | LINK_OPTION_TX | LINK_OPTION_SHARED | LINK_OPTION_TIME_KEEPING),
LINK_TYPE_ADVERTISING, &tsch_broadcast_address,
0, (&n->addr)->u8[7] %16);
But the program gets terminate. How to do this?

I am able add a link using node own linkaddress channel offset
tsch_schedule_add_link(sf_min,
(LINK_OPTION_RX | LINK_OPTION_TX | LINK_OPTION_SHARED | LINK_OPTION_TIME_KEEPING),
LINK_TYPE_ADVERTISING, &tsch_broadcast_address,
0, linkaddr_node_addr.u8[7] %16);

But tsch_schedule_add_link(sf_min,
(LINK_OPTION_RX | LINK_OPTION_TX | LINK_OPTION_SHARED | LINK_OPTION_TIME_KEEPING),
LINK_TYPE_ADVERTISING, &tsch_broadcast_address,
0, (&n->addr)->u8[7] %16); is not working. Any help?

Anders T. Akre
@andak
I had a lot of packet retransmissions in TSCH, and after a while I found that ACKs were discarded because they miss destination panid https://github.com/contiki-ng/contiki-ng/blob/develop/os/net/mac/tsch/tsch-packet.c#L180. And it indeed seems like tsch_packet_create_eack() does not include panid. Can someone tell me what I'm missing?
Atis Elsts
@atiselsts
@Alakesh1025_twitter did you check if n != NULL ? Most likely, there is no TSCH timesource at the point when you call this
alsy, why not use n->addr.u8[7] instead of (&n->addr)->u8[7]
YAS-CODE
@YAS-CODE
Hello guys, I want to create Uuid from Zolertia Remote ver b devices, Please help me about it
serdarkose
@serdarkose
I am using a fresh Raspian and Contiki-NG, when I compile "/examples/rpl-border-router" it outputs a lot of "stringop-truuncation" warning for strncpy uses on several files, are they something to fix on Contiki-NG project:
here are the output https://pastebin.com/2ZthU3CF
as I read about the warning, it looks like those are potential overflow issues
Tom De Smet
@tdesmet
@serdarkose I noticed the same on the latest ubuntu, I added CFLAGS += -Wno-stringop-truncation -Wno-array-bounds in my Makefile so I could compile
serdarkose
@serdarkose
@tdesmet I set Werror=0 to suppress the warning, I wonder if it is something that should be fixed (a potential issue) or is it a safe to use it?
Teodora Druta
@teodoradruta_gitlab
Hello. Has anyone ever tried to integrate a file system like FAT Fs to contiki?
philok93
@philok93
Hi everyone. I am studying several attacks in RPL protocol and I would like to implement a solution in Contiki-ng. Does anyone knows if authentication is implemented in contiki-ng? I found that in classic contiki-os they implemented a secure mode of RPL (https://github.com/contiki-os/contiki/pull/1934/commits/b3b600d2db95738e22e672e9bbc0e4937ec15bee) . I believe authentication solves more problems than encrypting packets so I need your guidance on which directories/files I should look at and start implementing a solution
Kerem Örs
@fkerem

Hi Everyone,

Do you know how to DISPLAY DODAG TREE?

In the previous versions of Contiki, I was able to display the DODAG tree by adding following line to uip-ds6-route.c file:
-> #include DEBUG DEBUG_ANNOTATE

However, I couldn't figure it out in contiki-ng.
Can anyone help me?

Kerem Örs
@fkerem
I could display it with RPL-Lite but I cannot do it with RPL-Classic
I add the line "#define LOG_CONF_WITH_ANNOTATE 1" to proj-conf.h and I get the error in the above image with RPL-Classic
RPL-Lite doesn't cause such an error
serdarkose
@serdarkose
I am running RPI 3 (native border router) and TI cc1310 launchpad (slip) with 30 nodes. The border router crashes all the time with this error:
"border-router.native: slip_send overflow: Success"
is it due to RX buffer on the slip radio? I increased "#define PROP_MODE_CONF_RX_BUF_CNT 24" and "#define QUEUEBUF_CONF_NUM 24" on the slipradio but it doesn't help at all
Has any one experienced the same problem?
MaripeD
@MaripeD
Hi Everyone, Is it possible to make orchestra tsch to work for lower datarate (long range) like 2.5kbps in cc1310 radio?
gsoni260
@gsoni260

Hello friends, I am trying to implement DAG Metric Container objective types such as throughput, latency in mrhrof objective function in contikirpl. For this i want to write code for getting data packet details like timestamp of packet send/receive, number of packets send/received by immediate parent mote in rpl-mrhrof .h file.
For counting packets received, i tried very simple code in neighbor_link_callback() because this function receives link-layer neighbor information. (..contiki-3.0/core/net/rpl/rpl-mrhof.c)

#include "sys/node-id.h" (included in file to access node-id)

`static uint16_t pkt1=0,pkt2=0,pkt3=0; / pkt1,2 and 3 store incoming packets for mote2,3 and 4 respectively /

if(status == MAC_TX_OK) // pkts transmission successfully
{
switch (node_id) {
case 2:
pkt1++;
break;
case 3:
pkt2++;
break;
case 4:
pkt3++;
break;
default:
PRINTF("Other::error outside of three mote \n");
break;
}
} ` The problem with this code is i am getting more number of packets in these variable. i think because of it is storing all types of packets (control and data packets). How to get only data packets in these variable (pkt1,pkt2,pkt3).

j-r-mota
@j-r-mota
Hello, I'm trying to build a TSCH Schedule that makes the RPL transmit into a timeslot and my application transmit in another timeslot, does someone know if is that possible?
Christopher Templado
@systemplado
hello all should i migrate to contiki-ng? it seems that contiki is no longer in development? or am i wrong?
Atis Elsts
@atiselsts
@j-r-mota yes, you can do that. You can identify RPL messages by looking at packetbuf attributes PACKETBUF_ATTR_NETWORK_ID and PACKETBUF_ATTR_CHANNEL. Then in you scheduling function you can set the value of PACKETBUF_ATTR_TSCH_TIMESLOT attribute based on these values.
This is a good question, if you post it on Stack Overflow and tag with "contiki", I will write a more detailed reply
MEDOSM
@MEDOSM
Hello, I would like to create a Schedule function based on orchestra that dynamically adjusts time slots assignment according to traffic load. Basically, my idea would be to allocate more timeslot to the nodes close to the root node and less timeslot to those which do not need it (far from the root for example). Do you know if it is possible? If yes, where should I look?