Manula Thantriwatte | 2 May 2011 08:43
Picon

Access X,Y,Z Coordinates in Cooja



Hello everybody,

I want to access X,Y,Z coordinates of sensor motes by using a query. I want to test it by using Cooja simulator. As an example, SELECT node,temp FROM sensors WHERE x=5.1, y=2.3, z=3.4 SAMPLE PERIOD 2 FOR 10;
How can I do this ? I want to know how we can access coordinates of a sensor mote by using Contiki program ? Are there any sample tutorial for that ?

Thanks.

--
Regards,
Manula Thantriwatte.
Undergraduate | University of Colombo School of Computing
Sri Lanka




------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
M Pouillot | 2 May 2011 08:52

Re: ipv6 and rpl

xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

Hi Mahrjri,

 

To see all the children of one specific node you can count the number of element in the routing table(filled by DAO message). In this implementation of contiki the lifetime of DAO message is INFINITE, so never an element of the routing table will be removed. You can change this value and so, if no DAO message is received during this while, the child will be removed of the routing table.

Just your attention that in the routing table, you have all the children of one node and not the direct children.

 

best regards,

 

Mathieu

 

De : mahjri imen [mailto:imen.mahjri-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Envoyé : samedi 30 avril 2011 16:03
À : contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Objet : [Contiki-developers] ipv6 and rpl

 

hello everybody,

I'm new using contiki and cooja and i need some help. I'am supposed to add
an extension header to the ipv6 paquet, i will be using this extension header for storing monitoring information. My work aims to add the  monitoring information in each sent data packet . 

I have read the file "contiki-2./core/net uip6.c"  but i exactly don't know what to do. I'm
afraid if i add information in the uip_buff,which contains the packet to
send, it will affect other functions using this buffer.

I'am also supposed to count the number of children of each node in the Dag
using rpl messages. I used the DAO messages received by each node to
increment the number of children N and i used the no-DAO messages to
decremente  N but unfortunately the decrementation of N did not work. In
fact when a node  get connected to a a new parent the number of children of
his new parent increment but when a node change of parent the number of
children of his old  parent doesn't decrement. I tried to use the neighbor
discovery protocol to decrement the number of children but it did not work.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Jaroslav Meduna | 2 May 2011 09:41
Picon

uIP/Rime

Hello,

Could you help me with configure uIP/Rime to have the uIP stack with IPv4 (at the Ethernet side – for old application) and Rime with IPv6 for RPL (running icmp6). My idea is to have MODBUS TCP server to receive data from SCADA over ethernet and send packet by application to RIME over radio network. I don’t need for this setup IPv6, but i’m affraid, that RPL need it at all.

Thank you in advance

Jaroslav

 

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Wouter Horré | 2 May 2011 10:01
Picon

Re: [AVR Raven] watchdog timeout too short?

Hi,

Op 29 Apr 2011, om 18:24 heeft Nicolas Tsiftes het volgende geschreven:
> It is better to adjust your code for the watchdog timer instead of the 
> other way around. Otherwise, what
> happens when the next guy wants to write 2kb rather than 1kb, and so on?
> 
> Long tasks should be splitted so that PROCESS_PAUSE() calls can be 
> inserted in between. This will make
> the system more responsive while increasing your software's 
> applicability to other platforms, which may have
> significantly shorter watchdog timers than 4 s.

I know it is generally a bad idea to do very long tasks, that's why I put a ? in the subject of my email. 

In this case, I write data to EEPROM that comes in from the network. The reason I write it to EEPROM is to avoid
the extra buffer in RAM. Splitting the task would mean buffering the data in RAM and would defeat the
purpose. This is all part of a task that is supposed to be happening rather infrequent (the deployment of
new code over the air), during which an irresponsive node is acceptable. For sure more acceptable than a
node going rogue due to out-of-memory problems.

I have seen emails passing by about a new buffering mechanism in the development version of Contiki, but I
haven't had time to check it out. Would this mechanism be of any help here?

Another option would be to limit the TCP segment size, so that the data comes in in smaller chunks.  Is there a
way to do this for a single connection? I could do it for the default by setting UIP_CONF_TCP_MSS, but I feel
like that would unnecessarily cripple other connections.

best regards
Wouter
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
Idriss Ghodhbane | 2 May 2011 12:45
Picon

Error compiling Contiki for ANTX

Hi everybody,



I am a newbie in the Contiki's world.
In fact, I am trying to compile Contiki for our processor AntX developped in CEA
using our AntX compiler.
I have encountred many problems and one of them is the following one:


/home/user/AntX/tools/lib/gcc/antx-unknown-elf/4.2.4/../../../../antx-unknown-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000

Big thanks in advance for helping me.

Best Regards,

Idriss


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
François Revol | 2 May 2011 16:04
Picon
Favicon
Gravatar

Re: Error compiling Contiki for ANTX

Hi,

Le 2 mai 2011 à 12:45, Idriss Ghodhbane a écrit :

> In fact, I am trying to compile Contiki for our processor AntX developped in
> CEA
> using our AntX compiler.
> I have encountred many problems and one of them is the following one:
> 
> 
> /home/user/AntX/tools/lib/gcc/antx-unknown-elf/4.2.4/../../../../antx-unknown-elf/bin/ld:
> warning: cannot find entry symbol _start; defaulting to 00000000

It's not an error, just a warning.
Depending on how you use the resulting binary it might be an issue or not.

If you need to start it as a user program in an other OS (like the native version) then yes it's a problem
because the OS won't find the entry point. Then you need to link with the crt files of your compiler.

But if, like most other embedded platforms, your cpu just starts the firmware at a specific location then
the _start symbol is of no use to it.

François.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
Idriss Ghodhbane | 2 May 2011 16:12
Picon

Re: Error compiling Contiki for ANTX

Hi François,


Thank you for your explanation.
I will take a look on the crt files of the AntX compiler 
and I will tell you the result.


Idriss

2011/5/2 François Revol <revol-GANU6spQydw@public.gmane.org>
Hi,

Le 2 mai 2011 à 12:45, Idriss Ghodhbane a écrit :

> In fact, I am trying to compile Contiki for our processor AntX developped in
> CEA
> using our AntX compiler.
> I have encountred many problems and one of them is the following one:
>
>
> /home/user/AntX/tools/lib/gcc/antx-unknown-elf/4.2.4/../../../../antx-unknown-elf/bin/ld:
> warning: cannot find entry symbol _start; defaulting to 00000000

It's not an error, just a warning.
Depending on how you use the resulting binary it might be an issue or not.

If you need to start it as a user program in an other OS (like the native version) then yes it's a problem because the OS won't find the entry point. Then you need to link with the crt files of your compiler.

But if, like most other embedded platforms, your cpu just starts the firmware at a specific location then the _start symbol is of no use to it.

François.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Picon
Gravatar

Public key encryption

Has anyone implemented public key encryption code small enough for
Contiki to use? It would be used to initially pass out the AES key in
a secure manner so it can be fairly slow.

--

-- 
Jon Smirl
jonsmirl@...

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
mahjri imen | 2 May 2011 18:16
Picon

Re: ipv6 and rpl (imen mahjri)

Hi M Pouillot,
thank you for your response, but i don't understand what you exactly meant. It's true that dao messages have an infinite life time but the no dao messages are sent with a life time=0. I changed the  value of the variable INFINITE_LIFETIME   defines in the file "rpl.h" ( #define INFINITE_LIFETIME 0xffffffff) but it didn't work and i don't think that it's a good idea. By counting the number of entries in the routing table i had the same result as using Dao messages because the number of children is  only incremented and not decremented.  If you have an idea about how to do it and which file i should modify i will be very thankful because as i have already said i did not understand what you meant.
thank you again for your help

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
cyril auburtin | 2 May 2011 21:18
Picon
Picon
Favicon

rpl-border-router in cooja?

Well I have tried to simulate a border-router in cooja, either with sky platform, it fails (cf previous mails), or with cooja platform (built with the patch from last contiki-2.x sources, without it doesn't build, the serial out flow is anormally big, and it's not normally working:

Can someone help me with that Please


382    ID:1    Contiki 2.5 started. Node id is set to 1.
382    ID:1    Rime address: 1.0.41.138.84.131.41.138
382    ID:1    MAC nullmac RDC nullrdc NETWORK uip
382    ID:1    Tentative link-local IPv6 address fe80:0000:0000:0000:0301:01ff:fe01:0101
382    ID:1    Tentative global IPv6 address aaaa:0000:0000:0000:0301:01ff:fe01:0101
382    ID:1    Starting 'Border router process'
382    ID:1    RPL-Border router started
256382    ID:1    # [1024 bytes binary data]  // normally the router when sleeping only sends 1 or 2 bytes
512382    ID:1    # [1024 bytes binary data]
768382    ID:1    # [1024 bytes binary data]
1024382    ID:1    # [1024 bytes binary data]
1281382    ID:1    # [1024 bytes binary data]
...

Attachment (cooja-router.patch): text/x-patch, 3085 bytes
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

Gmane