uma maheswari | 29 May 12:43 2015
Picon

Powertrace - reg.

Dear All,

Can anyone help me in calculating the energy consumption in Cooja using Powertrace?

Regards

S Umamaheswari
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
uma maheswari | 29 May 11:29 2015
Picon

Latency in Cooja - reg.

Dear All,

Can anyone help me in caclulating the PDR and LAtency from the Cooja Simulation log?

Regards

S Umamaheswari

------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Andreas Urke | 28 May 22:31 2015

Fwd: CC26xx, event not working after COAP_BLOCKING_REQUEST()

I am playing around with the cc26xx-web-demo.c and got a strange problem. I suspect it requires deeper knowledge of processes and PTs than I have.

I have two processes, A and B. B sends events to A using process_post(), and A receives them correctly. After some time I call 
COAP_BLOCKING_REQUEST() in process A, but after this point A does not receive the events from B anymore. I have timer events going in A which still works fine. The return value from process_post() is always PROCESS_ERR_OK.

I tried printing the values of the process and the process_event_t to check if COAP has in some way changed them, but they are all identical except the _address_ of the process_event_t (value is still the same). I don't see how this should impact, but maybe it is a lead. 

Anyone got an idea? Or hint on how best to debug? I'm on bleeding-edge Contiki.

Regards,
Andreas Urke

------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
nguyen dinh | 28 May 20:37 2015
Picon

[Help] Antelope database operations

Hello,

I’m so interested in Antelope, a small DBMS for sensor node.

I build a relation with three attributes a1, a2 and a3 and create index for these,
create relation data;
OK

create attribute a1 domain int in data;
OK

create attribute a2 domain int in data;
OK

create attribute a3 domain int in data;
OK

create index data.a1 type inline;
OK

create index data.a2 type maxheap;
OK

create index data.a3 type memhash;
Query "create index data.a3 type memhash;" failed: Index error

create index data.a3 type hash;
Query "create index data.a3 type hash;" failed: Parsing error

I go to ../apps/antelope/index.c and modify the line code 51th:
            static index_api_t *index_components[] = {&index_inline, &index_maxheap};
     >>> static index_api_t *index_components[] = {&index_inline, &index_maxheap, &index_memhash};
But the compiler returns error,

I want to test hash index function so please help me know how I can create hash index for attribute a3?

After inserting value into data, I want to delete attribute a1, but it returns error:

I used three commands bellows:

remove attribute a1 in data;
Query "remove attribute a1 in data;" failed: Parsing error

remove attribute a1 from data;
Query "remove attribute a1 from data;" failed: Parsing error

remove attribute a1 domain int in data;
Query "remove attribute a1 domain int in data;" failed: Parsing error

Please help me how to remove an attribute in a table?

I read the paper “A database in every sensor” and I just only find a few antelope operations via some examples. How can I find the full antelope operations and the syntax of an operation? Is there any document about it?

Thanks a lot!
Andy

------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Trieu Nguyen | 28 May 16:41 2015
Picon

Tool to download directly from linux to msp430f5xx ?

Dear all,

Mind you give me a tool to download directly from Linux (using ContikiOS) to MSP430F5xx ? The tool maybe support download a format file such as: .txt, .ihex, .hex, ..

Regards,
Trieu
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
NGUYEN Quang Duy | 28 May 16:21 2015
Picon

Send data from a node to a PC via tun0

Hi all,

My situation : I have a PC connect to a board router (BR) via tun0. I have also a node (N) which can send data or ping to an address specific. I can ping from PC to BR and N with no problem. On the other hand, I can't ping from N to PC.

Then I do some research, I try to add some static routing with the function "uip_ds6_route_add(...)", so everytime I send data to an address, it will send to my BR and then my BR try sending it to my PC. But it doesn't work (I check the routing table of the board router by web interface but my new demand of static route is not included).

Did anyone meet the same problem as mine?

Thank you




------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
jehuti ku | 27 May 23:00 2015
Picon

STM32

Hi,


I want to port Contiki to a stm32F0. What is the best way for doing this ? start from stm32test platform ? Thanks a lot for any advice,


I also would like to know if there are many people working on stm?


Best Regards,


Jehuti Ku.

------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
gilles bourgeois | 27 May 18:15 2015
Picon

LLSEC testing with CC2650 and BB 6LBR config failed in the Edge router


Hi All,

I am running last 6LBR snapshot with LLSEC commit , to test encrypted communication with a CC2650 sensortag.
( I know it is forbidden not to authenticate before encryption :-) but for testing purpose let's say it's OK)

I first made a test without encryption, everything OK with PING and WEB access with the sensor. (some PB with COAP, got a 404, will check that ..)

Now, with encryption :

Everything OK in the node, for instance , I see some multicast ICMPV6/ RPL DIO messages to FF02::1A [all-RPL-nodes]
=> so, decoding from wireshark is good, Auxiliary security header is displayed with sec level=4

In 6lbr, It's not.
I had a look at source code etc to check about configuration, but still:
  • the sensor is more displayed in the configuration  web server of 6lbr
  • no more 6lowPAN/upper layer messages in wireshark 
  • in my log, I see the uplink message , not rejected , meaning sec level from sensor is OK, decryption goes on , no check with the MIC, the give it to NETSTACK_NETWORK layer

I must have missed something....

So question is :

Has anyone played with the security yet , on a similar platerom, e.g with 6lbr ?

I keep going to investigate.

Regards

GillesB,


------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
hanan lamaazi | 27 May 13:00 2015
Picon

IntervalFormat in cooja

Hi all:

my simulation aims to proposed different scenarios of mobility, for this, i installed bonnmotion v2.1.3 simutor , the advantage of this simulator that it can allows to convert file in some format supported by cooja, but the problem when i want to convert in wiseml format, it not work, so i decide to use IntervalFormat, but i don't know how can i open the file by cooja,

 any help please

Thank you in advance
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Adarsh BU | 27 May 12:19 2015
Picon

Contiki Porting Procedures

Hi ,
I need to port contiki to the STM32F4XX Discovery board. So can any of you suggest me the procedure that to be taken care while porting contiki to this new MCU and Radio drivers.

--
Regard's
ADARSH B U
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Khaoula Dhifallah | 27 May 11:42 2015
Picon

RPL : ranodmized routing ( select parent)

Hello,

I'm working on enhancing  RPL resiliency against insider attacks and I have a question please.

I want to implement a randomized version of RPL. It means that every packet follows a new route chosen randomly among the node parents.

in core/net/rpl/rpl_dag.c I've changed the function  rpl_select_parent(..)  to choose one of the potential parents of a node randomly (the rank of the chosen parent must be less than the node's rank)

The problem is that I get a low delivery ratio (50%).
Do you have an idea about this please ?

here is the program:

rpl_parent_t *
rpl_select_parent(rpl_dag_t *dag)
{
  rpl_parent_t *p, *best;
  int tab[50]={-1};
  int k=0;
  best = NULL;
  /*choose randmly one parent of nodes who have a rank less than the node itself */  
 
 
  p = nbr_table_head(rpl_parents);
  int  n=0;
 
 
 
  while(p != NULL) {
     
      
    if((p->rank > dag->rank) || (p->rank == INFINITE_RANK)){
        /*ignore this parent*/      
        } 
           
    else {  
             tab[k]=n;
             k++;            
            }
   
    n++;
    p = nbr_table_next(rpl_parents, p);
   
  }
 
  int l=0;
 
  unsigned short seed=(short)(dag->rank /2 );
  random_init(seed); 

  if (k!=0){                                     /*the node has some parents */
  l=random_rand()%k;           /* choose randomly one of them*/
  int i=tab[l];

  if (i==0){
      best = nbr_table_head(rpl_parents);
              }
  else{
  int j=1;
  best = nbr_table_head(rpl_parents);
  for (j=1;j<=i;j++){     
       best=nbr_table_next(rpl_parents, best);     
       }
     }

  }

  else { PRINTF("node has no parents "); /* in this case the rank of the node is the lowest among neignbours then choose the minimum */

    p = nbr_table_head(rpl_parents);
      while(p != NULL) {
    if(p->rank == INFINITE_RANK) {
      // ignore this neighbor
    } else if(best == NULL) {
      best = p;
    } else {
      best = dag->instance->of->best_parent(best, p);
    }
    p = nbr_table_next(rpl_parents, p);
  }
  }
 
 

rpl_set_preferred_parent(dag, best);

 
if(best != NULL) {
 
     rpl_set_preferred_parent(dag, best);
    }
 



  return best;
}

--
 
Khaoula Dhifallah
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

Gmane