Andrew Pullin | 2 Mar 2008 23:36
Picon
Favicon

Code profiling in Contiki?

Hi folks. We'd like to do some code profiling of various algorithms 
(signal analysis, routing, etc) in Contiki, on Tmote-sky hardware. Is 
there a known way to do this, using any of the existing profiling 
methods & packages? (gprof, valgrind, etc). The most honest way I can 
think of doing this would be to attach a debugger to an actual mote, and 
periodically trap a running program to determine where it is current 
executing.

Any advice on this would be appreciated, as I'm not that familiar with 
performance analysis methods & tools.

Thanks,
Andrew Pullin
Berkeley Manufacturing Institute

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
jiqing qiang | 3 Mar 2008 10:27
Picon

Timer set

Hello,

   I have a question concerning the clock module. For example if the frequency is set to Fsys then the system interruption frequency seems to be Fsys/INTERVALLE, while INTERVALLE = constant/CLOCK_SECOND, and the interruption frequency is also 1/CLOCK_SECOND, this make a strange formula Fsys/constant = 1/(CLOCK_SECOND^2). Could anyone tell me how to set up/ ajust the value of CLOCK_SECOND with the clock frequency?

   Thank you,

--
Qiang Jiqing

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Berta Carballido | 4 Mar 2008 11:49
Picon
Favicon

Packet sizes

Hi all,

I am writing to you to ask which is the maximum PSDU size in Contiki (is 127 bytes?).

And, as in those bytes Rime and MAC headers should be included, which is the maximum number of data bytes that can be sent per packet? (or in other words> how long are the Rime and MAC headers?)

Thanks a lot,
Berta.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Fredrik Österlind | 4 Mar 2008 11:59
Picon
Picon

Re: Packet sizes

Hi Berta,

The maximum size depends on which platform you use.
On the TmoteSky with CC2420 the current radio driver uses 2 bytes CRC 
overhead (+ 1 byte length).
The maximum packet payload size is hence 128 - 3 = 125 bytes.

Rime overhead is minimum 2 bytes (anonymous broadcast only adds 16-bit 
channel information). Each additional Rime layer adds a few bytes.

/ Fredrik

Berta Carballido wrote:
>
> Hi all,
>
> I am writing to you to ask which is the maximum PSDU size in Contiki 
> (is 127 bytes?).
>
> And, as in those bytes Rime and MAC headers should be included, which 
> is the maximum number of data bytes that can be sent per packet? (or 
> in other words> how long are the Rime and MAC headers?)
>
> Thanks a lot,
> Berta.
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Contiki-developers mailing list
> Contiki-developers@...
> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Rob Wehrli | 4 Mar 2008 12:08

Re: Porting to the Renesas H8S...

On Thu, 28 Feb 2008 15:41:54 -0500, Adam Dunkels <adam@...> wrote:

> Start by looking at the native port. It includes the basic stuff that is
> needed: boot-up code and the timer. There are also a set of slides
> available on the Contiki website - which currently seems to be
> impossible to reach :(
>
> /adam

...any opportunity to locate the mentioned slides?

Take Care.

Rob!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Berta Carballido | 4 Mar 2008 12:48
Picon
Favicon

Re: Packet sizes

Thanks for that :),

Could you please tell me if I am right?

For the collect protocol:

collect.c (6 bytes of header)
ruc.c (2 bytes)
suc.c (0 bytes)
uc.c (2 bytes)
ibc.c (2 bytes)
abc.c (2 bytes)

Thanks again,
Berta.

-----Original Message-----
From: contiki-developers-bounces@... on behalf
of Fredrik Österlind
Sent: Tue 3/4/2008 10:59 AM
To: Contiki developer mailing list
Subject: Re: [Contiki-developers] Packet sizes

Hi Berta,

The maximum size depends on which platform you use.
On the TmoteSky with CC2420 the current radio driver uses 2 bytes CRC 
overhead (+ 1 byte length).
The maximum packet payload size is hence 128 - 3 = 125 bytes.

Rime overhead is minimum 2 bytes (anonymous broadcast only adds 16-bit 
channel information). Each additional Rime layer adds a few bytes.

/ Fredrik

Berta Carballido wrote:
>
> Hi all,
>
> I am writing to you to ask which is the maximum PSDU size in Contiki 
> (is 127 bytes?).
>
> And, as in those bytes Rime and MAC headers should be included, which 
> is the maximum number of data bytes that can be sent per packet? (or 
> in other words> how long are the Rime and MAC headers?)
>
> Thanks a lot,
> Berta.
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Contiki-developers mailing list
> Contiki-developers@...
> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

Attachment (winmail.dat): application/ms-tnef, 3574 bytes
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Hardy Griech | 5 Mar 2008 10:37
Picon

rtimer?

Hi,

some questions about rtimer:

- are rtimers a fully functional contiki module?
   In rtimer.h the documentation of rtimer_set() refers
   to RTIMER_TASK which is nowhere else defined.

- parameter duration of rtimer_set() is not used

- also the limitation that only one rtimer task may
   be scheduled at a certain time is not very
   reasonable (TMO).

- Adam also mentioned in some earlier post 
(http://sourceforge.net/mailarchive/message.php?msg_name=477FE91C.8060405%40sics.se)
   an upcoming revision of the real-time timer subsystem.
   Any more information on that?

Hardy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Alex Mendoza | 6 Mar 2008 11:52
Picon
Favicon

codeprop error

Hi,
Im doing some tests on tmotes using the platform sky. Im programming one 
mote with make gateway.u and another with make client.u
Then I run tunslip and ping the client without any problem.
Afterwards I compile the blink example with make blink.ce and send it 
with codeprop to the client:
~/wsn/contiki-2.x/tools$ ./codeprop 172.16.0.9  
~/wsn/contiki-2.x/examples/sky/blink.ce
This is my output:
File successfully sent (1024 bytes)
Reply: err 7 u
OK                  0
BAD_HEADER          1
NO_SYMTAB           2
NO_STRTAB           3
NO_TEXT             4
UNDEFINED           5
UNKNOWN_SEGMENT     6
NO_STARTPOINT       7
TEXT_TO_LARGE       8
DATA_TO_LARGE       9
UNKNOWN_RELOC      10
MULTIPLY_DEFINED   11

Is there something i need to change?

Alex

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
jiqing qiang | 11 Mar 2008 11:02
Picon

Non cyclic thread

Hi,

  I would like to know if there's a way to create a thread/protothread that is called and executed only once? It seems that all the threads/protothreads should have an infinite loop inside.

  Thanks,

--
Qiang Jiqing

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Adam Dunkels | 11 Mar 2008 23:15
Picon
Picon

Re: Porting to the Renesas H8S...

They are on the website under the link "Publications and Documentation" 
to the left. I cannot check if they are accesible right now (sitting on 
an airplane over Germany right now :)) but they *should* be there.

/adam

Rob Wehrli wrote:
> On Thu, 28 Feb 2008 15:41:54 -0500, Adam Dunkels <adam@...> wrote:
> 
>> Start by looking at the native port. It includes the basic stuff that is
>> needed: boot-up code and the timer. There are also a set of slides
>> available on the Contiki website - which currently seems to be
>> impossible to reach :(
>>
>> /adam
> 
> ...any opportunity to locate the mentioned slides?
> 
> 
> Take Care.
> 
> Rob!
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Contiki-developers mailing list
> Contiki-developers@...
> https://lists.sourceforge.net/lists/listinfo/contiki-developers
> 

--

-- 
Adam Dunkels <adam@...>
http://www.sics.se/~adam/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane