Bjorn Gronvall | 1 Feb 2008 01:06
Picon
Picon

Re: uaodv.c

On Thu, 31 Jan 2008 10:15:39 +0100
Adam Dunkels <adam@...> wrote:

> The uAODV code for the Tmote Sky used to work (at least it was used in 
> the RUNES project), but it required the use of Makefiles that were not 
> part of the Contiki build system. So it is not possible to build it for 
> the Tmote Sky in the normal way (make TARGET=sky). Also, it probably 
> requires the old cc2420 driver.

> > Is this application only intended to be run over Cooja?
> > Can I use uaodv.c with sky?

Last time I checked it was not possible to simultaneously include the
new contiki stuff and AODV and uIP because of memory constraints. It
should still be possible to build contiki without RIME but with uIP
and AODV if you use the old Makefile. Check what happens if you cd to
platform/sky and type make. In theory it should still build.

Cheers,
/b

--

-- 
  _     _                                           ,_______________.
Bjorn Gronvall (Björn Grönvall)                    /_______________/|
Swedish Institute of Computer Science              |               ||
PO Box 1263, S-164 29 Kista, Sweden                | Schroedingers ||
Email: bg@..., Phone +46 -8 633 15 25          |      Cat      |/
Cellular +46 -70 768 06 35, Fax +46 -8 751 72 30   '---------------'

-------------------------------------------------------------------------
(Continue reading)

Perico delospalotes | 1 Feb 2008 14:43
Picon

Examples for netsim not working

Hi!

I am a new user of Contiki. I was doing the tutorials for netsim, compiling and executing the examples of Rime.
All of them compile fine but only test-abc.netsim works when executing. For example, when I try test-mesh.netsim all nodes crash.

Do you know why is this happening?

Thanks for your help,

Perico.

-------------------------------------------------------------------------
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 | 1 Feb 2008 17:32
Picon
Picon

Re: Examples for netsim not working

Are you running the 2.1 release? The mesh code is unfortunately broken 
in 2.1, which is the reason for test-mesh.netsim crashing. The other 
examples typically require a button press on one of the nodes, which is 
done by pressing the middle mouse button when the node has a red circle 
around it.

For example, the data collection example sets up a collection tree that 
is rooted at the node that receives the button press and the trickle 
example sends out a packet from the node that receives the button press.

Hope this helps,

/adam

Perico delospalotes wrote:
> Hi!
> 
> I am a new user of Contiki. I was doing the tutorials for netsim, compiling
> and executing the examples of Rime.
> All of them compile fine but only test-abc.netsim works when executing. For
> example, when I try test-mesh.netsim all nodes crash.
> 
> Do you know why is this happening?
> 
> Thanks for your help,
> 
> Perico.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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/
Perico delospalotes | 4 Feb 2008 12:49
Picon

Re: Examples for netsim not working

Hi,

Thanks for the info :)

One more question: Could you recommend me any program to debug/develop code for Contiki?

Thanks in advance,

Peri.

-------------------------------------------------------------------------
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 | 4 Feb 2008 17:44
Picon
Picon

Re: Examples for netsim not working

Perico delospalotes wrote:
> Hi,
> 
> Thanks for the info :)
> 
> One more question: Could you recommend me any program to debug/develop code
> for Contiki?

I am very happy with emacs and an xterm myself, but I know that Fredrik 
uses Eclipse and others may have other favorite editors.

/adam
--

-- 
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/
Chris Wang | 7 Feb 2008 17:04
Favicon

Problems using PT_SPAWN

Hi all.

I’m trying to use PT_SPAWN and its giving me some problems. I was hoping someone could correct my code:

 

The main process:

 

PT_INIT(&thr);

 

PROCESS_BEGIN();

PT_SPAWN(&thr, test_data_send(&thr));

PROCESS_END();

 

The thread

 

PT_THREAD(test_send_data(struct pt *pt))

{

   …some stuff…

   PT_WAIT_UNTIL(pt, data_received == true);

}

 

The problem I am seeing is that when the data_received variable gets set in a different function, the thread never sees it. I believe the protothreads require polling, however the main process won’t get called unless an event occurs so the thread doesn’t get polled. What would be the correct way to implement something like this?

Chris

 

-------------------------------------------------------------------------
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 | 7 Feb 2008 18:24
Picon

Print to the serial port

Hi guys,

I have written a small application to store statistics -like number of received control packets, sent packets...- in every node.

Now I would like to take this info out through the serial port to be able to analyze it in my computer (we have a small testbed with 8 nodes, which I can access through the internet, in which all nodes are connected through usb cables).

Is there any way to print my data through the serial port?

Thanks again for your valuable help,

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
kyasi | 7 Feb 2008 22:34
Favicon

Testing Install for AVR and SAM7(ARM) development

Hello

Can someone recommend an example that is known to compile properly for
the AVR and also the SAM7 (ARM) cpu's.  

I have downloaded contiki-2.x and i have WINAVR and Yargarto which are
both GNU tool chains that are already proven on my Windows machine.  I
am trying to use cygwin for use
with contiki.
In the examples directory i have built  hello-world  for the native
platform and this worked just fine and i can execute it thru cygwin
without a problem.

But i thought that the stk501 platform for the AVR would have been a
good choice for testing my installation.

In the hello-world example directory i tried  make TARGET=stk501   but i
get lots of errors mostly concerning the typedef  uint16_t  versus u16_t
that it seems to like.

Plus there is a extern in rand.h  that it does not like  versus the
attribute definition in the rand.c for GNU compilers.

I tried other examples, but all have problems compiling.

Is there a known good working simple example that should compile
properly, all the baseline contiki functionality for AVR, and then
additionally for SAM7 (ARM) platform.

I would like to create applications that run on Atmel AVR  STK eval kits
and the SAM7 eval kits from Atmel.

thanks
KC

-------------------------------------------------------------------------
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/
Simon Berg | 8 Feb 2008 12:20
Picon
Favicon

Re: Testing Install for AVR and SAM7(ARM) development

On Thu, 2008-02-07 at 16:34 -0500, kyasi@... wrote:
> Hello
> 
> Can someone recommend an example that is known to compile properly for
> the AVR and also the SAM7 (ARM) cpu's.  
> 
> I have downloaded contiki-2.x and i have WINAVR and Yargarto which are
> both GNU tool chains that are already proven on my Windows machine.  I
> am trying to use cygwin for use
> with contiki.
> In the examples directory i have built  hello-world  for the native
> platform and this worked just fine and i can execute it thru cygwin
> without a problem.
> 
> But i thought that the stk501 platform for the AVR would have been a
> good choice for testing my installation.
> 
> In the hello-world example directory i tried  make TARGET=stk501   but i
> get lots of errors mostly concerning the typedef  uint16_t  versus u16_t
> that it seems to like.
> 
> Plus there is a extern in rand.h  that it does not like  versus the
> attribute definition in the rand.c for GNU compilers.
> 
> I tried other examples, but all have problems compiling.
> 
> Is there a known good working simple example that should compile
> properly, all the baseline contiki functionality for AVR, and then
> additionally for SAM7 (ARM) platform.
There is a port for SAM7S in CVS. Only one platform, stepper-robot, is
currently using it. I suspect that some of simpler example applications,
like hello-world, should work on other boards using the SAM7S, as long
as the debug port is used for output. I'm not sure the SAM7S code is in
sync with the rest of the repository, but I could check that during the
weekend.

> 
> I would like to create applications that run on Atmel AVR  STK eval kits
> and the SAM7 eval kits from Atmel.
> 
> thanks
> KC

simon

-------------------------------------------------------------------------
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/
Adam Dunkels | 8 Feb 2008 21:03
Picon
Picon

Re: Problems using PT_SPAWN

The easiest way to do it is to post a "dummy" event to the process that 
is waiting:

process_post(&waiting_process, PROCESS_EVENT_CONTINUE, NULL);

This causes the process to be scheduled, which in turn causes the 
condition that the child protothread is waiting for to be evaluated. 
Since this condition is now true, the protothread will continue its 
execution.

/adam

Chris Wang wrote:
> Hi all. 
> 
> I'm trying to use PT_SPAWN and its giving me some problems. I was hoping
> someone could correct my code:
> 
>  
> 
> The main process:
> 
>  
> 
> PT_INIT(&thr);
> 
>  
> 
> PROCESS_BEGIN();
> 
> PT_SPAWN(&thr, test_data_send(&thr));
> 
> PROCESS_END();
> 
>  
> 
> The thread
> 
>  
> 
> PT_THREAD(test_send_data(struct pt *pt))
> 
> {
> 
>    .some stuff.
> 
>    PT_WAIT_UNTIL(pt, data_received == true);
> 
> }
> 
>  
> 
> The problem I am seeing is that when the data_received variable gets set in
> a different function, the thread never sees it. I believe the protothreads
> require polling, however the main process won't get called unless an event
> occurs so the thread doesn't get polled. What would be the correct way to
> implement something like this?
> 
> Chris
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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