Re: [Tinyos-help] is bit shift in T2 logical or arithmetic?

2011-03-24 Thread Eric Decker
tinyos uses nesc which is a superset of C. Bitshift is what ever C defines it as. And please specify your environment/context at the top of your question. Putting it at the bottom makes it real easy to miss. This really isn't a tinyos question but a basic programming question. I use Harbison

[Tinyos-help] Memory consumption of TinyOS components

2011-03-24 Thread Anna Förster
Dear all, we have been facing a weird problem with memory consumption after compilation. The basic trouble is that including the same piece of software into different TOS applications results in different increases of memory consumption (as shown after compilation). We would like to understand

Re: [Tinyos-help] Memory consumption of TinyOS components

2011-03-24 Thread Eric Decker
Hi Anna, Kind of hard to understand from staring at what you've provided. Something that might help would be to examine the resultant output of nesc. This is the app.c file that will be in the build directory build/platform/app.c Something else that might also help you track this down is to

[Tinyos-help] is anyone still using the eyesIFX platforms?

2011-03-24 Thread Eric Decker
-- Eric B. Decker Senior (over 50 :-) Researcher ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How can I find a wire?

2011-03-24 Thread Flemming Nyboe
Hello, In a TinyOS application, is there a trick to find the wiring of a particular singleton component? e.g. If I want to know what is wired to the Msp430SpiConfigure interface used by Xe1205SpiNoDma0P in the BlinkToRadio app? Regards Flemming ___

Re: [Tinyos-help] How can I find a wire?

2011-03-24 Thread Eric Decker
Its all in knowing where to lookAnd what the thing looks like. There maybe a way to do this using the docs feature. Doing something like. make telosb docs will generate html docs that can be accessed using a browser that presents a graphical representation of how things are wired.

[Tinyos-help] Change the RF frequency (channel)

2011-03-24 Thread Marc Barceló
Hello to everyone, I am a researcher working in WSN. Do Someone know if it is possible to change online the frequency (channel) used by a mote ? (i.e. not using the MAKEFILE). I am interested in providing a mechanism to the motes to adapt their transmission to the channel conditions, so I

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-24 Thread Urs Hunkeler
Hi Yusnaidi, I don't know about your problem, as I currently don't have a Mac OS X system with the latest OS to play with. However, I did compile the libraries for different systems, and the libraries included in the latest tinyos.jar should support Mac OS X on PPC, Intel 32-bit and Intel

Re: [Tinyos-help] Change the RF frequency (channel)

2011-03-24 Thread Miklos Maroti
Hi Marc, Sure, use the RadioChannel interface provided by ActiveMessageC on the IRIS platform (tos/platforms/iris/ActiveMessageC) Miklos 2011/3/23 Marc Barceló marc.barc...@uab.cat: Hello to everyone, I am a researcher working in WSN. Do Someone know if it is possible to change online the

[Tinyos-help] Interpreting packets

2011-03-24 Thread Rubenalia
Hi all, I'm testing (working with TinyOs2) TestSecurity app. in CC2420 chip, which is in tinyOs tree (tests/cc2420/TestSecurity). I'm using Avrora to simulate it and I'm getting the following output (file attached). If I follow structure from message.h first, that encapsulate platform_message.h,

Re: [Tinyos-help] Change the RF frequency (channel)

2011-03-24 Thread José A. Tarifa
I use tmote sky motes, but here http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/iris/ihtml/tos.chips.rf230.RadioState.html the radioState interface has a setChannel command El 24/03/2011 11:51, Miklos Maroti escribió: Hi Marc, Sure, use the RadioChannel interface provided by ActiveMessageC on

Re: [Tinyos-help] How can I find a wire?

2011-03-24 Thread Flemming Nyboe
Thanks Eric, I'll try that. As far as I can see, the make platform docs (nesdoc) output only displays the interfaces and internals of each component. i.e. if I look at a configuration I can see if it uses Xe1205SpiNoDma0P and how it wires it, but not the other way around. Regards Flemming

Re: [Tinyos-help] is bit shift in T2 logical or arithmetic?

2011-03-24 Thread Xiaohui Liu
Hi, I just tested the following snippet on TelosB, whose output is also listed. int8_t a, b; a = -1; printf(%d\n, a 1); //-2 a = -127; b = a 1; printf(%d\n, b); //2 printf(%d\n, a 1); //-254 b = a 1; printf(%d\n, b); //-64 So the right shift is arithmetic.

Re: [Tinyos-help] Tinyos-help Digest, Vol 94, Issue 5

2011-03-24 Thread sofia aparicio
Hello, I would like to know if it is possible to configure two differents networks with iris motes and working at the same time. Thank you very much. Sofia ___ Tinyos-help mailing list

[Tinyos-help] tinyOS packets and IEEE 802.15.4 frames

2011-03-24 Thread Jasone Astorga
Hi, I'm working with TinyOS on TelosB motes and I don't really understand the difference/relationship between IEEE 802.15.4 frames and TinyOS packets. I always use packet to refer to network layer data structures (for example an IP packet) and frame to refer to link layer data structures (for

Re: [Tinyos-help] CC2420 bug: initial ACK transmission power not set correctly

2011-03-24 Thread tjacob
Philip Levis p...@cs.stanford.edu: On Mar 17, 2011, at 3:26 AM, tja...@mail.tu-berlin.de wrote: Hello, I think I have found a bug in the cc2420 stack concerning the transmission power of the acknowledgements. Maybe someone can verify it? I don?t know who is responsible for the stack at the

[Tinyos-help] Precise timing (CPU cycles)

2011-03-24 Thread Damian Rusinek
Hello all. I'm trying to check the duration of some calculations on Imote2. I know how to get 1/32768 s (~ 30microsecs) (using Alarm32kHz) precision, but I need to get even more precise duration. Does anybody know how to get the situation in which I could modify the TaskScheduler to do one thing

Re: [Tinyos-help] Interpreting packets

2011-03-24 Thread Michael Schippling
Have a gander at this thread: https://www.millennium.berkeley.edu/pipermail/tinyos-help/2011-March/049964.html MS Rubenalia wrote: Hi all, I'm testing (working with TinyOs2) TestSecurity app. in CC2420 chip, which is in tinyOs tree (tests/cc2420/TestSecurity). I'm using Avrora to

Re: [Tinyos-help] Memory consumption of TinyOS components

2011-03-24 Thread Michael Schippling
Somewhere in the build chain unused code is pruned and I believe it happens on a function by function basis. So, if your usage is different in each app different code may be generated. I remember being tripped up by this a couple times MS Eric Decker wrote: Hi Anna, Kind of hard to

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-24 Thread Yusnaidi Md Yusof
Hi Urs, What I meant was I got so many error messages after issuing the './configure', 'make', and 'sudo make install' commands. Do I missed settings any enviroment variables possibly? or etc... I am a bit confuse where I can use the tinyos.jar file. I have uncompressed the file and found that

Re: [Tinyos-help] Precise timing (CPU cycles)

2011-03-24 Thread Michael Schippling
Someone was recently trying to do just this with Timer3 on the atmega. Here's the thread, maybe you can get the OP to provide more detail: https://www.millennium.berkeley.edu/pipermail/tinyos-help/2011-March/050087.html MS Damian Rusinek wrote: Hello all. I'm trying to check the duration of

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-24 Thread Yusnaidi Md Yusof
Hi, Thanks for the suggestions. My machine use gcc4.4 but I will try to use the gcc4.3 instead as following your suggestion. I really blank how I can check if NativeSerial_darwin.cpp icludes all the required headers? How can I do that? What are 'headers' mean here? and.. I really have no idea

Re: [Tinyos-help] Serial Communication using C/C++ on Windows

2011-03-24 Thread Breno Guimarães
Hi, I noticed that some people have trouble using the serial port to communicate with the base using the BaseStation application. So I wrote a guide to help on that with code suggestions and some explanation about serial port using and ActiveMessage protocol.

Re: [Tinyos-help] Interpreting packets

2011-03-24 Thread Rubenalia
Hi, when I say the packet shows everything in hex. i mean that the simulation in avrora with packet monitor option shows all the data frame in hexadecimal, and i suppose it should show unintelligible characters because i'm using Security encryption before i send the packet. What I would like to

Re: [Tinyos-help] Serial Communication using C/C++ on Windows

2011-03-24 Thread Omprakash Gnawali
Breno, It will be great if you can add your document as a tutorial under user contributed tutorials on this page: http://docs.tinyos.net/index.php/TinyOS_Tutorials - om_p 2011/3/24 Breno Guimarães bren...@gmail.com: Hi, I noticed that some people have trouble using the serial port to

Re: [Tinyos-help] Interpreting packets

2011-03-24 Thread Rubenalia
Ok, I'll do it. And what about the security issue?? Thanks!! 2011/3/24 Michael Schippling sc...@santafe.edu My general approach is to layout all the structures I expect to see in the message, count up the number of bytes, and note any values that are constant which could be used as markers.

Re: [Tinyos-help] testnetwork problem

2011-03-24 Thread Omprakash Gnawali
On Wed, Mar 23, 2011 at 12:49 AM, lue ikhong lueikh...@gmail.com wrote: Hi All, i had tried Testnetwork apps on my tinynode mote. one mote wit node id 0 and another with node id 1. i read the data through serial port. here's the problem, the data packets received are always the data from the

Re: [Tinyos-help] Collection Tree Protocol - Sending to root node

2011-03-24 Thread Omprakash Gnawali
On Tue, Mar 1, 2011 at 5:35 AM, Pawel Kuzak pawelku...@t-online.de wrote: Hello all, i am using the Collection Tree Protocol in Avrora simulating MICAz motes with X-MAC as MAC protocol. In “CtpForwardingEngineP.nc” I am counting the number of retransmissions a node needs during the

[Tinyos-help] TelosB battery power

2011-03-24 Thread Joey Wilson
All, I have a question about the TelosB battery power. I'm wondering if I leave a TelosB plugged into a USB port, so it's getting it's power from the port, and also leave two AA batteries inserted, will the AA batteries drain at all if the USB continues to deliver power? Is there a circuit in the

[Tinyos-help] Help compiling TinyOS from source

2011-03-24 Thread Denilson Figueiredo de Sá
Hello! I got TinyOS 2.1.0 tarball, but the same issue also happens when I try a checkout from tinyos-main SVN at Google Code. I go to support/sdk/c/sf directory, and then type ./bootstrap, followed by ./configure. It all goes fine. However, the following error shows up when I type make: make

Re: [Tinyos-help] Serial Communication using C/C++ on Windows

2011-03-24 Thread Breno Guimarães
Hi! Thanks for the tips Michael! After I read your comments I noticed that I forgot to specify which tools and system configuration required to understand and run everything at the guide. I'll write about that when I have the chance. Omprakash, thanks for the advice! I will add it there very

Re: [Tinyos-help] Collection Tree Protocol - Sending to root node

2011-03-24 Thread Omprakash Gnawali
On Thu, Mar 24, 2011 at 3:16 PM, Pawel Kuzak pawelku...@t-online.de wrote: Hallo Omprakash, Thank you for your reply. I understand that the closer a node to a root is the more packets it has to deal with, but let me explain my problem to you more clearly. I used the following setup: Rest of

Re: [Tinyos-help] is bit shift in T2 logical or arithmetic?

2011-03-24 Thread Eric Decker
Interesting. All of this is toolchain dependent On Thu, Mar 24, 2011 at 7:34 AM, Xiaohui Liu whu...@gmail.com wrote: Hi, I just tested the following snippet on TelosB, whose output is also listed. You should also include the output of msp430-gcc --version because it is toolchain

Re: [Tinyos-help] Help compiling TinyOS from source

2011-03-24 Thread Eric Decker
I helps if you read the instructionsie. Look at the README file and follow the instructions. It says. ./bootstrap ./configure --prefix=somewhere make But if you look carefully at what you typed below, you typed make all-am. Not sure why you did that. This short circuits

Re: [Tinyos-help] TelosB battery power

2011-03-24 Thread Eric Decker
i'm not sure. But I do know that other designs that were based off the TelosB state that it is a bad idea to power from the USB with batteries installed. Other designs provide a jumper that switches between usb power and bat power. The safe thing to do is remove the batteries.Or pull the

Re: [Tinyos-help] testnetwork problem

2011-03-24 Thread lue ikhong
But if im not wrong, the tossim doesnt support tinynode platform,right? On Fri, Mar 25, 2011 at 1:26 AM, Omprakash Gnawali gnaw...@cs.stanford.eduwrote: On Wed, Mar 23, 2011 at 12:49 AM, lue ikhong lueikh...@gmail.com wrote: Hi All, i had tried Testnetwork apps on my tinynode mote. one mote

Re: [Tinyos-help] testnetwork problem

2011-03-24 Thread Omprakash Gnawali
On Thu, Mar 24, 2011 at 8:00 PM, lue ikhong lueikh...@gmail.com wrote: But if im not wrong, the tossim doesnt support tinynode platform,right? The mote (not TOSSIM) will send debug messages over the UART. - om_p ___ Tinyos-help mailing list

Re: [Tinyos-help] testnetwork problem

2011-03-24 Thread lue ikhong
When i hooked up the mote 1 to UART, there is no debug message but packets of data, 00 FF FF 00 00 09 00 16 20 00 07 00 00 00 00 00 1A 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 1B 00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 09 any clue? On Fri, Mar 25, 2011 at 11:15 AM, Omprakash

Re: [Tinyos-help] Memory consumption of TinyOS components

2011-03-24 Thread Vinai Sundaram
I think the size of the executable depends on how you used the logging component in your TOS applications. The reasons are nesC compiler does aggressive inlining and by default, TinyOS build system optimizes for code size (-Os is passed to C compiler). You can try turning off inlining and

Re: [Tinyos-help] testnetwork problem

2011-03-24 Thread Breno Guimarães
Hi Lue, Did you check the number of blinks on your motes and count the number of received messages? Maybe you are getting the right number of messages but they are not properly labeled from 0 and from 1. This would explain why you get the same result with any node as root. If that doesn't help,

Re: [Tinyos-help] testnetwork problem

2011-03-24 Thread lue ikhong
Hi Breno, i was suspecting the same thing, so i purposely changed the data message for other node. example, node 0 will send 0xCAFE to root and node 1 will send 0xAAA. at the end, UART only displayed 0xCAFE, which is from node 0 only. So, i bet it is not the case here. i tried easycollection app