Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 09:29
    xtrega opened #1216
  • 04:51
    edgaralb opened #1215
  • 04:34
    edgaralb commented #1102
  • Mar 28 17:48
    alexrayne edited #1211
  • Mar 28 13:34
    matinpf edited #1214
  • Mar 28 13:33
    matinpf edited #1214
  • Mar 28 13:32
    matinpf edited #1214
  • Mar 28 13:30
    matinpf opened #1214
  • Mar 27 11:22
    alexrayne opened #1213
  • Mar 26 20:02
    alexrayne opened #1212
  • Mar 26 19:47
    alexrayne commented #987
  • Mar 26 12:26
    alexrayne opened #1211
  • Mar 26 11:49
    alexrayne closed #1210
  • Mar 26 11:49
    alexrayne commented #1210
  • Mar 26 11:46
    alexrayne commented #678
  • Mar 26 06:55
    alexrayne commented #1210
  • Mar 25 13:04
    alexrayne commented #1210
  • Mar 25 13:03
    alexrayne commented #1210
  • Mar 25 12:56
    alexrayne edited #1210
  • Mar 25 11:26
    alexrayne opened #1210
MEDOSM
@MEDOSM
Hello, why the maximum channel offset is set to 255 in orchestra unicast rules ?
MEDOSM
@MEDOSM
it's not 16 channel offset Max ?
Alakesh Kalita
@Alakesh1025_twitter
I want to send a decimal no with EB. Can anyone please tell me in which file/ where I should do the modification? #TSCH #contiki-NG
HelmutRibel
@HelmutRibel
Hello!
Can I use Contiki-NG to monitor network traffic and measure the Packet Delivery Rate and Latency? If so, which tools or interfaces are available?
Atis Elsts
@atiselsts
@MEDOSM because channel offset is uint8_t in some places in the code. Why would it be 16? True that the predefined hopping sequences only go up to 16 in size, but users are free to define longer hopping sequences as well
@Alakesh1025_twitter The correct way is to add a new Information Element (IE) to the EB packet. Look at files frame802154e-ie.h and frame802154e-ie.c which show how to define and use custom IE. Then call the functions from tsch-packet.c
MEDOSM
@MEDOSM
@atiselsts I don't understand why users are free to define longer hopping sequences. Like you said, in the 2.4 GHz band, there is only 16 available channels so it must be 16 max. Maybe it's a silly question but I'm confused.
Atis Elsts
@atiselsts
the way I understand it, "channel offset" is the offset in the channel hopping sequence. The length of the sequence can be longer than 16 channels, since sequences where the channels repeat are possible
j-r-mota
@j-r-mota
@HelmutRibel If I understand your question correctly, there is a few ways you can do this. One easy way to see which packets are being delivered is in Cooja, clicking in Tools > Radio Messages. But if you want the nodes to print the Delivery Rate and Latency, superficially speaking, you can make the nodes send it's current "total_messages_sent" number and it's current "tsch_get_network_uptime_ticks()", and compare, on the receiver side, the number of sent messages from that node with the number of received messages to calculate the delivery rate. The latency can be calculated by subtracting the network_uptime_ticks from the sender to the receiver. At least, that's the way I'm doing it. Feel free to ask if you need more details, I can write an answer on git-hub or explain it by e-mail.
Felipe Lalanne
@pipex
Hi, not sure if the right channel. I wanted to share our Contiki-NG based HTTP/2 server implementation for embedded devices https://github.com/niclabs/two
Any feedback is appreciated
Atis Elsts
@atiselsts
looks pretty cool! Is this a feature complete HTTP/2 implementation?
Felipe Lalanne
@pipex
Not really, is quite limited at the moment. Only single stream connections are supported (so no priority and no PUSH promise) and only GET for now. The idea is to find use cases and see where it should go from there.
th3g3ntl3mann
@th3g3ntl3mann
good evening developers, what does contiki-ng provide instead of collect-view in contiki os.
Thanks in advance
André Alves
@AndrfpAlves_twitter
Hello everyone. Thank you in advance for the attention.
In contiki-NG the RDC layer is no longer present. I understand that the TSCH controls now the driver for the radio dutycycling
I intend to re-create a sink kind of mote, and therefore I wanted to run a data sink with 100% duty cycle. How should I proceed? I was using nullrdc_driver
Atis Elsts
@atiselsts
@AndrfpAlves_twitter use CSMA, it has 100 % duty cycle by default
janbeutel
@janbeutel

Hello all,

Today we announce the public release of the FlockLab 2 testbed. This is a refinement and extension of the original FlockLab testbed concept with new features: more accurate power profiling based on the RocketLogger, GPS-based time synchonization and most importantly native SWD debugging based on the Segger JLink OB for ARM target devices. Second, we have switched target platforms to now support DPP CC430, DPP2 LoRa, nRF52840 and for backwards compatibility the ever popular Tmote Sky. A list of all currently supported sensor nodes and FlockLab 2 testbed locations is available in our wiki [1].

Currently, we only have a small amount of observers deployed compared to the old FlockLab 1 but we are working to extend the testbed with more observers in the near future. However, due to production delays and restricted access to our campus we are currently limited in what we can do. You can find the latest updates regarding FlockLab 2 on our news page [2]. Also, we will continuously update our wiki page with new information about FlockLab 2.

Let us know if you have any questions or feedback and of course if you discover any bugs. Also we are very open to collaboration if you want to help building features for the FlockLab 2 testbed. -> flocklab@tik.ee.ethz.ch

As before, the testbed is available at https://flocklab.ethz.ch.

Best regards,
The FlockLab Team

[1] https://gitlab.ethz.ch/tec/public/flocklab/flocklab/-/wikis/Man/Targets
[2] https://gitlab.ethz.ch/tec/public/flocklab/flocklab/-/wikis/News

Ahmed Ibrahim
@ahmedmibrahim
image.png
image.png

Hello Folks,
I'm having trouble running 2 rpl-border-router on the same linux host
My setup is like that:

  • 2x CC1310 flashed with rpl-border-router
  • 1 linux PC running tunslip6 with "connect-router"
    Each one can run alone successfully, however when I try to run the 2 simultaneously, the 2nd connection comes at tun1 interface and it doesn't Proceed (doesn't ping)

Any clue what can be done?

George Oikonomou
@g-oikonomou
@ahmedmibrahim Try using a different v6 prefix for one of the two interfaces. make PREFIX=<something> connect-router should do the trick I think (off the top of my head)
Ahmed Ibrahim
@ahmedmibrahim
image.png
image.png

Hi @g-oikonomou ,
Thanks for your suggestion. I tried on one router:
sudo make clean
sudo make PREFIX=fd00::1/64 TARGET=connect-router
sudo ./tunslip6 fd00::1/64 -s /dev/ttyACM0
and on the other:
sudo make clean
sudo make PREFIX=fd00::2/64 TARGET=connect-router
sudo ./tunslip6 fd00::2/64 -s /dev/ttyACM2

and still got the same issue.

George Oikonomou
@g-oikonomou
I was trying to say change the fd00:: part. Use something like fc00:: or fdfd::
btw you don't need to clean, just run tunslip with a different prefix argument and reset your device if it already has received the prefix
Ahmed Ibrahim
@ahmedmibrahim
Thanks George, I tried fc00 or fdfd and didn't work (even when there is one router only), whenever I change the fd00 it fails.
George Oikonomou
@g-oikonomou
eehh
So if you could try single device, run tunslip with one of those prefixes and then please paste the full tunslip output here that would help. Please don't use screeenshots is possible try pasting code-formatted text
Ahmed Ibrahim
@ahmedmibrahim
Note: I tried this on a raspberrypi as well as a Linux VM and the problem is the same on both
It would be useful to see what the device prints if restarted with tunslip running - hopefully it has a reset btn
HelmutRibel
@HelmutRibel

Data received from Node with Id: 2 Packet Nr: 218
Data received from Node with Id: 2 Packet Nr: 218
Data received from Node with Id: 2 Packet Nr: 218
Data received from Node with Id: 2 Packet Nr: 218

This is a section of the console output. It's receiving one packet all the time. I was monitoring network traffic with sensniff and wireshark and each packet had a bad fcs. Is there a relationship?
_

George Oikonomou
@g-oikonomou
@HelmutRibel you need to configure a couple of things on wireshark before it can validate CRCs
HelmutRibel
@HelmutRibel
@g-oikonomou Okay. Let's just skip that. My problem is that the same message gets sent more than once. In the logs, it looks like the sender is ignoring the ack message and does a retransmission.
George Oikonomou
@g-oikonomou

@HelmutRibel You will need to open Wireshark's preferences and select 'TI CC24xx FCS format' under Protocols -> IEEE 802.15.4. You will also need to correctly configure contexts under 6LoWPAN. Use fd00::/64 for context 0.

In terms of multiple retransmissions of the same thing, this is typical when various timings are off: One possible case is that the sender does not wait long enough for the ACK. Or it misses it for whatever reason. What's your radio? What's your MAC?

HelmutRibel
@HelmutRibel
@g-oikonomou I use the Ti cc2650 platform and CSMA. I use everything with the default settings.
George Oikonomou
@g-oikonomou
You are not using Contiki-OS/ContikiMAC. Right?
HelmutRibel
@HelmutRibel
Right. I use contiki-ng. There are the settings for csma with nullrdc, right?
George Oikonomou
@g-oikonomou
OK with Contiki-NG, CSMA on the CC2650 this should not be happening...
I am scratching my head now
Ahmed Ibrahim
@ahmedmibrahim

@g-oikonomou :
Sorry for the delay: My RaspberryPi got fried, I tried the experiment again on a VMWare RaspberryPi and it worked! I'm not sure what was the reason (but I had to reset one of the router nodes to get it working), I'll post if I found the root cause
Here is the output of a healthy router node (Prefix = fd00::1/64)

********SLIP started on ``/dev/ttyACM0''
opened tun device ``/dev/tun0''
ifconfig tun0 inet `hostname` mtu 1500 up
ifconfig tun0 add fdfd::1/64
ifconfig tun0 add fe80::0:0:0:1/64
ifconfig tun0

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 192.168.146.128  netmask 255.255.255.255  destination 192.168.146.128
        inet6 fdfd::1  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::1  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::8542:55f1:cbc6:9147  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[INFO: Main      ] Starting Contiki-NG-release/v4.4-88-g9236744d3-dirty
[INFO: Main      ] - Routing: RPL Lite
[INFO: Main      ] - Net: sicslowpan
[INFO: Main      ] - MAC: CSMA
[INFO: Main      ] - 802.15.4 PANID: 0xabcd
[INFO: Main      ] - 802.15.4 Default channel: 26
[INFO: Main      ] Node ID: 49409
[INFO: Main      ] Link-layer address: 0012.4b00.1375.c101
[INFO: Main      ] Tentative link-local IPv6 address: fe80::212:4b00:1375:c101
[INFO: CC26xx/CC13xx] TI CC1310 LaunchPad
[INFO: CC26xx/CC13xx]  RF: Channel 26
[INFO: RPL BR    ] Contiki-NG Border Router started
[INFO: BR        ] RPL-Border router started
*** Address:fdfd::1 => fdfd:0000:0000:0000
[INFO: BR        ] Waiting for prefix
[INFO: BR        ] Server IPv6 addresses:
[INFO: BR        ]   fdfd::212:4b00:1375:c101
[INFO: BR        ]   fe80::212:4b00:1375:c101

and here is the output when I use prefix fdfd (which is now working too):

********SLIP started on ``/dev/ttyACM2''
opened tun device ``/dev/tun1''
ifconfig tun1 inet `hostname` mtu 1500 up
ifconfig tun1 add fd00::1/64
ifconfig tun1 add fe80::0:0:0:1/64
ifconfig tun1

tun1: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 192.168.146.128  netmask 255.255.255.255  destination 192.168.146.128
        inet6 fe80::6426:e07c:b0dc:1864  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::1  prefixlen 64  scopeid 0x20<link>
        inet6 fd00::1  prefixlen 64  scopeid 0x0<global>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[INFO: Main      ] Starting Contiki-NG-release/v4.4-88-g9236744d3-dirty
[INFO: Main      ] - Routing: RPL Lite
[INFO: Main      ] - Net: sicslowpan
[INFO: Main      ] - MAC: CSMA
[INFO: Main      ] - 802.15.4 PANID: 0xabcd
[INFO: Main      ] - 802.15.4 Default channel: 27
[INFO: Main      ] Node ID: 17175
[INFO: Main      ] Link-layer address: 0012.4b00.1884.4317
[INFO: Main      ] Tentative link-local IPv6 address: fe80::212:4b00:1884:4317
[INFO: CC26xx/CC13xx] TI CC1310 LaunchPad
[INFO: CC26xx/CC13xx]  RF: Channel 27
[INFO: RPL BR    ] Contiki-NG Border Router started
[INFO: BR        ] RPL-Border router started
*** Address:fd00::1 => fd00:0000:0000:0000
[INFO: BR        ] Waiting for prefix
[INFO: BR        ] Server IPv6 addresses:
[INFO: BR        ]   fd00::212:4b00:1884:4317
[INFO: BR        ]   fe80::212:4b00:1884:4317
fdojurado
@fdojurado
I am having issues running Cooja with Docker. I am using Mac os. I am getting error like this "Invalid MIT-MAGIC-COOKIE-1 keyException". Any suggestions?
valerio tanfera
@valtan_gitlab

Hello everyone, i'm a newbie on contiki. I've installed contiki-ng and now I want try CoAP tutorial but doesn't work.

Server:

make && sudo ./coap-example-server.native 
TARGET not defined, using target 'native'
make: Nothing to be done for 'all'.
[WARN: Tun6      ] Failed to open tun device (you may be lacking permission). Running without network.
[INFO: Main      ] Starting Contiki-NG-5dff12862-dirty
[INFO: Main      ] - Routing: RPL Lite
[INFO: Main      ] - Net: tun6
[INFO: Main      ] - MAC: nullmac
[INFO: Main      ] - 802.15.4 PANID: 0xabcd
[INFO: Main      ] - 802.15.4 Default channel: 26
[INFO: Main      ] Node ID: 1800
[INFO: Main      ] Link-layer address: 0102.0304.0506.0708
[INFO: Main      ] Tentative link-local IPv6 address: fe80::302:304:506:708
[INFO: Native    ] Added global IPv6 address fd00::302:304:506:708
[INFO: App       ] Starting Erbium Example Server

Client's side I get this error:

coap get coap://[fd00::302:304:506:708]/.well-known/core
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo EAI_AGAIN
    at Object._errnoException (util.js:1022:11)
    at errnoException (dns.js:55:15)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)

How can I solve?

George Oikonomou
@g-oikonomou
@valtan_gitlab Hi valerio, it sounds like you are suffering from #1069. Try installing a different coap client, I recommend the one from libcoap.
Also, #1093
valerio tanfera
@valtan_gitlab
@g-oikonomou I haven't docker, I'm on 32 bit system, but maybe the 0.7 version still fails, how can I install 0.5.1 instead the 0.7.1?
philok93
@philok93
Hi @g-oikonomou , I am trying to create my own nbr-table looking at the nbr-table.h API. Is it possible to add my own table and my policies while keeping the existing nbr table? Because in the nbr_table_add_lladdr() I don't see the use of *table argument and it creates a new list so maybe is confusing the 2 tables. Also, memory is a problem Z1 nodes can't add new neighbours in my custom table