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

Bad RPL route with Security LLSEC on 6lbr cc2650 and sensortag #1899

Open pierre-microlide opened 7 years ago

pierre-microlide commented 7 years ago

Hi, we started develop our contiki project one month ago to adapt wireless sensor on our data logger. Border router : 6lbr on a linux board and a launchpad cc2650 with slip-radio. Everything works fine with 10 sensors (sensortag) : RPL route is good.

1) To have different wireless networks on different border routers we want to use the security key with LLSEC : I don't know if it's the good way ?

2) we program a security key on the border router and sensortag : it works but the RPL route is very bad. We loose sensors regularly, they want to connect directly on the border router instead of using a sensor node : The route between two sensors is very rarely effective ==> The mesh doesn't work correctly .... If we only remove security all is ok.... Configuration for LLSEC =

undef NETSTACK_CONF_FRAMER

define NETSTACK_CONF_FRAMER noncoresec_framer

undef NETSTACK_CONF_LLSEC

define NETSTACK_CONF_LLSEC noncoresec_driver

undef LLSEC802154_CONF_ENABLED

define LLSEC802154_CONF_ENABLED 1

ifndef NONCORESEC_CONF_SEC_LVL

define NONCORESEC_CONF_SEC_LVL 6

endif

undef AES_128_CONF

define AES_128_CONF aes_128_driver

define LLSEC_ANTIREPLAY_ENABLED 1

define LLSEC_REBOOT_WORKAROUND_ENABLED 1

Thank's in advance for help. Pierre

kkrentz commented 7 years ago

Could you please try if #1703 resolves your problem?

pierre-microlide commented 7 years ago

Hello kkrentz, excuse me for delay but i was out of office since 3 weeks. I looked adaptativesec but i have a question : We use 6lbr on our linux board to manage sensors. Can we use adaptativesec for the sensors and noncoresec for the border router with 6lbr ? Thank's

naguirre commented 7 years ago

@kkrentz does #1703 supports cc26xx platforms ?

g-oikonomou commented 7 years ago

@naguirre We observed some stack overflow problems with LLSEC enabled in our custom CC2650-based board. Try reserving more RAM for the stack in the linker script and see if that will help you.

amitbhanja commented 6 years ago

Hello guys, Did you find a way to resolve this issue using noncoresec?

Regards, Amit

pierre-microlide commented 6 years ago

Hello, finally, i didn't use noncoresec in my project.... And my différents tests was not good. Regards Pierre