[Tinyos-help] Packet ack

2009-11-13 Thread giorgio
Reading tep 126 cc2420 radio stack I don't understand this : The current CC2420 stack uses software acknowledgements, which have a higher drop percentage. When used with the UniqueSend and UniqueReceive interfaces, dropped acknowledgements are more desirable than false acknowledgements.

[Tinyos-help] wanna get acoustic data

2009-11-13 Thread Jin He
What interface should I use? I am using telosb platform. Thanks, Jin ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] tinydb

2009-11-13 Thread purnima gandhi
hi   i wanna know that in language tinydb is written how i can update tinydb source code   purnima ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] installing problem

2009-11-13 Thread Xiao Sun
Hi, I installed the tinyos system on windos xp by cygwin (AVR + 2420). I install all the software successfully, but when I test the 'blink' program using 'make micaz sim', it shows ' No such file or directory. stop.make/Makeruleske target '/opt/tinyos-2.x' '.What does that mean? Could you

Re: [Tinyos-help] Radio power consumption

2009-11-13 Thread jymascis
Hi I am actually trying to turn radio off of telosb/tmote in tinyos1.x for last few days but cant manage it. sounds like you've acheived it, any hints? Guillermo De Cesco wrote: Hi, I am not sure. I will commit power measurements in the future for my development. I recall that in the

Re: [Tinyos-help] USART1 on Atm128

2009-11-13 Thread Matthew Bygo
Paul, and all, I'm not having much success with this :-( I just can't figure out how the At45db code configures the USART... the files you pointed to set USART1 to asynch mode, and therefore don't configure the clock line. But magically the At45db code is able to use the USART1 pins in synch

[Tinyos-help] Change node id dynamically during run-time

2009-11-13 Thread Vikram vik76
Hello, Can we change the node ID ( TOSH_NODE_ID ) dynamically during runtime? As far as I understand, we specify the node id while programming the mote. eg: make micaz install.5 Apart from this, is there a way to set the node ID programmatically? Thanks Vikram

Re: [Tinyos-help] Data memory for micaz motes

2009-11-13 Thread Michael Schippling
You aren't. Vikram vik76 wrote: On reading Table 1-2, I found SRAM value for micaz to be 4kB. I wrote a code wherein I declare two arrays of 3 bytes each, and then assign values to the elements to these two arrays. The compilation looks like this: compiled TestAppC to

[Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Maciej Franecki
Hello, I followed the installing tinyos-2.x on Mac os x tutorial available at docs.tinyos.net. I did some tests and it possible to compile stuff and to program the physical sensors... The problem comes with TOSSIM... even with the typical Blink app: $ make micaz sim /...warnings../ In file

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Razvan Musaloiu-E.
Hi! On Fri, 13 Nov 2009, Maciej Franecki wrote: Hello, I followed the installing tinyos-2.x on Mac os x tutorial available at docs.tinyos.net. Quick q: are you using the macports from here? http://hinrg.cs.jhu.edu/git/?p=ports.git -- Razvan ME I did some tests and it possible to

[Tinyos-help] why dosen't someone reply to this?? plz i require serious help

2009-11-13 Thread Arslan Shahid
I'm currently following the Lesson 5 (TOSSIM) from the TinyOS 1.x Tutorial, in which I'm supposed to compile CntToLedsAndRfm application. In that step i found problems running the make pc, and I realized that it happens for other applications. It shows:

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Enzeneer
I've had similar problems, and asked on the forums, but did not receive any conclusive reply. Razvan, I did use your macports. They give the same error. Abhay On Fri, Nov 13, 2009 at 9:44 AM, Razvan Musaloiu-E. razv...@cs.jhu.edu wrote: Hi! On Fri, 13 Nov 2009, Maciej Franecki wrote:

Re: [Tinyos-help] Data memory for micaz motes

2009-11-13 Thread Vikram vik76
Problem resolved. Let me share. When I compile for Micaz using make micaz, it compiles for larger data size showing higher RAM size. But when I install the program on a micaz mote using make micaz install, it didn't work beyond 4 kilo bytes RAM size. But for tmote sky motes, it compiles only upto

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Maciej Franecki
Razvan Musaloiu-E. wrote on 11/13/2009 03:44 PM: Quick q: are you using the macports from here? http://hinrg.cs.jhu.edu/git/?p=ports.git I used this tutorial: http://docs.tinyos.net/index.php/Installing_tinyos-2.x_on_Mac_OS_X_(Tiger_%26_Leopard) There's nothing there about your ports.

[Tinyos-help] Negative values from Counter

2009-11-13 Thread Robert Smith
Hi, I am currently using TinyOS2.x, and tyring to use microseconds in mica platform. I used CounterMicro32C to get microsec counter, and after awhile, the return value becomes negative value. CounterMicro32C provides interface Counter with uint32_t format, but why am I getting negative values

Re: [Tinyos-help] Data memory for micaz motes

2009-11-13 Thread Michael Schippling
Yup, you're not going to be doing many floating point matrix calculations on a Mote...hope you can squeeze your algorithm down to where it works. MS Vikram vik76 wrote: Problem resolved. Let me share. When I compile for Micaz using make micaz, it compiles for larger data size showing higher

Re: [Tinyos-help] Negative values from Counter

2009-11-13 Thread Thomas Schmid
Are you maybe converting the uint32_t into an int32_t? How do you know it is negative? Because a uint32_t is never negative, per definition, except if you cast it into a different signed type. Cheers, Thomas On Fri, Nov 13, 2009 at 7:25 AM, Robert Smith robby_smith...@yahoo.com wrote: Hi, I

Re: [Tinyos-help] Negative values from Counter

2009-11-13 Thread Michael Schippling
Who says it's negative? When a signed integer's top bit gets set it becomes negative. Somewhere along the way your unsigned variable is being mis-interpreted. Often the default behavior is signed, so make sure you are using the right declarations and casts. Java doesn't know from unsigned, so

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Maciej Franecki
it seems that I (maybe partially..) solved it. That's what I've done: installed gcc 4.3.4 from macports changed gcc soft link (in /usr/bin) to point the new version and: *** Successfully built micaz TOSSIM library did some basic tests in python and (as for now) it seems to be working.

Re: [Tinyos-help] Negative values from Counter

2009-11-13 Thread Robert Smith
Thank you. I didn't cast the return value, so I'm geussing I misused printf. I did printf(%ld, call Counter.get());. I checked TestPrintfC.nc of tutorial/Printf, and it uses %ld for uint32_t, so I assumed %ld is for uin32_t format. Can anyone tell if I am using printf correctly? Best

Re: [Tinyos-help] Visualization tool for TinyOs 2.x

2009-11-13 Thread mojtaba raznahan
Hi, Excuse me, how can i download whole project as a single file ? In this link i should download the project one by one Thanks On Mon, Nov 9, 2009 at 10:44 PM, mojtaba raznahan mojtaba.razna...@gmail.com wrote: Hi Mehmet, Thanks you very much. I'll try this application .I will ask

Re: [Tinyos-help] Negative values from Counter

2009-11-13 Thread Thomas Schmid
%ld is for signed int, use %lu for unsigned long int. Cheers, Thomas On Fri, Nov 13, 2009 at 8:01 AM, Robert Smith robby_smith...@yahoo.com wrote: Thank you. I didn't cast the return value, so I'm geussing I misused printf. I did printf(%ld, call Counter.get());.  I checked TestPrintfC.nc

[Tinyos-help] Packet interpretation

2009-11-13 Thread Zé Pedro Espogeira
Hi to all im reading the Sensing tutorial and im using the HamamatsuS1087ParC interface to read from the light sensor in telosb. with a BaseStation node i can see the packets content being delivered, and they look like this: 00 FF FF 00 01 1C 00 93 00 00 01 00 00 01 00 58 0F C6 0F C8 0F

Re: [Tinyos-help] Negative values from Counter

2009-11-13 Thread Robert Smith
Thats why Thanks a lot for your help=] Best, Rob %ld is for signed int, use %lu for unsigned long int. Cheers, Thomas On Fri, Nov 13, 2009 at 8:01 AM, Robert Smith robby_smith...@yahoo.com wrote: Thank you. I didn't cast the return value, so I'm

Re: [Tinyos-help] Packet interpretation

2009-11-13 Thread Michael Schippling
I think you have interpreted things correctly, although if you are using a telos mote I thought it maintained the CC2420 radio header throughout -- but that looks like the old familiar types/AM.h header. The last two bytes should be the CRC. You will have to go look at the program you are using

Re: [Tinyos-help] why dosen't someone reply to this?? plz i require serious help

2009-11-13 Thread Paul Johnson
I am not aware of many people that are still using tinyos 1.x, so I doubt you will be able to get any sort of authoritative response from anyone. Since the compiler is complaining about TOSH_NUM_NODES, have you considered adding to your Makefile a line like this: CFLAGS +=

Re: [Tinyos-help] why dosen't someone reply to this?? plz i require serious help

2009-11-13 Thread Akankshu Dhawan
Hi Paul I dont have a similar problem but I want to learn about using CFLAGS and PLFAGS in tinyoy-2.x. I have used some of them when people have told me and for the most part they have worked but I want to learn about the usage and different such flags ? I look forward to hearing from someone

Re: [Tinyos-help] Visualization tool for TinyOs 2.x

2009-11-13 Thread Paul Johnson
Mojtaba, You need a CVS client to check out the entire project. Depending on your platform there are lots of different cvs programs. -Paul mojtaba raznahan wrote: Hi, Excuse me, how can i download whole project as a single file ? In this link i should download the project one by one

Re: [Tinyos-help] why dosen't someone reply to this?? plz i require serious help

2009-11-13 Thread Paul Johnson
Akankshu, CFLAGS is usually the flags you pass to gcc (or in this case ncc). It simply is a lit of command line parameters that you pass to the program. To see what various flags do, you should look at the man pages for gcc/ncc. In general, the flag -DSOMETHING it basically is the same as

Re: [Tinyos-help] Visualization tool for TinyOs 2.x

2009-11-13 Thread Enzeneer
So I got it to build by comparing files from tinyos-2.1.0. It gives a bunch of warnings: /Users/abhay/Developer/Source/tinyos-2.x/tos/chips/cc2420/lpl/DefaultLplC.nc:39:2: warning: #warning *** USING DEFAULT LOW POWER COMMUNICATIONS ***

Re: [Tinyos-help] why dosen't someone reply to this?? plz i require serious help

2009-11-13 Thread Akankshu Dhawan
Thanks a lot. :) On Fri, Nov 13, 2009 at 1:27 PM, Paul Johnson oewyn...@gmail.com wrote: Akankshu, CFLAGS is usually the flags you pass to gcc (or in this case ncc). It simply is a lit of command line parameters that you pass to the program. To see what various flags do, you should look

Re: [Tinyos-help] MicP precision compared to SoundLocalizer

2009-11-13 Thread Akankshu Dhawan
Hi Paul I think I will try this one thing. Let me reinstall the tinyos tool set and source tree so that I get the original settings for ADC and Mic details and the compare because it might be some change that I have made that is making it behave in this way. Because I do remember making some

Re: [Tinyos-help] Visualization tool for TinyOs 2.x

2009-11-13 Thread mojtaba raznahan
Thanks Paul and Enzeneer, I should check this out . I'm using ubuntu 9.04 tinyos 2.1.0 and TOSSIM And dont have the harwares your sincerley, Mojtaba On Fri, Nov 13, 2009 at 9:48 PM, Paul Johnson oewyn...@gmail.com wrote: Mojtaba, You need a CVS client to check out the entire project.

Re: [Tinyos-help] why dosen't someone reply to this?? plz i require serious help

2009-11-13 Thread Michael Schippling
And PFLAGS is passed to the ncc Precompiler. I'm not entirely clear if C and P FLAGS are independent entities or if they are both passed to both processes though... MS Paul Johnson wrote: Akankshu, CFLAGS is usually the flags you pass to gcc (or in this case ncc). It simply is a lit of

[Tinyos-help] sensor problem

2009-11-13 Thread Li, Haixia
Hello, I am using Tinyos 2.x on IRIS. I read the DemoSensorC component at \tos\sensorboards\basicsb\. I found there is another DemoSensorC component at \tos\sensorboards\mda100. I traced the first one. I found the ADC 6 and PortC1 are used for the sensor. Now I want to connect a sensor

Re: [Tinyos-help] sensor problem

2009-11-13 Thread Michael Schippling
The DemoSensor component is supplied for each kind of sensor board in order to confuse you about how things work...actually to make it possible to reuse upper level code without change depending on the sensor board definition. It fundamentally exposes an ADC interface connected to whatever the

Re: [Tinyos-help] sensor problem

2009-11-13 Thread Akankshu Dhawan
Hi All How can I find similarly which ADC is the Microphone (MicP and MicStream components) connecting to ??? I am using MICAZ motes and mts310 sensorboard I want to know where should I look to find the exact ADC I am getting the data from ? Thanks Akankshu On Fri, Nov 13, 2009 at 3:55 PM,

Re: [Tinyos-help] sensor problem

2009-11-13 Thread Michael Schippling
Somewhere at the bottom of the pile of code and configs should be an ADC connection. There used to be a make micaz docs command that generated a module connection diagram from a working program, and after hours of study you could actually figure out what it was trying to tell you about the

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Razvan Musaloiu-E.
Hi! On Fri, 13 Nov 2009, Maciej Franecki wrote: Razvan Musaloiu-E. wrote on 11/13/2009 03:44 PM: Quick q: are you using the macports from here? http://hinrg.cs.jhu.edu/git/?p=ports.git I used this tutorial:

Re: [Tinyos-help] Visualization tool for TinyOs 2.x

2009-11-13 Thread Enzeneer
I finally got this to work by using the motes code from the CVS repository and the java code from the distribution on the UCD website. Some minor modifications were necessary to make the two compatible -- basically the octopus_collected_msg struct is changed and a few of the methods like

Re: [Tinyos-help] sensor problem

2009-11-13 Thread Li, Haixia
hi MS, Thank you very much. Now I read the PotoC at the /mda100 , I found this one is more complicated than the another version at /basic . The sensor I used also needs power control. I think I can change that one. Now I have mda 100 and mda 320. Do you think can I use mda 320 with the potoc

Re: [Tinyos-help] sensor problem

2009-11-13 Thread Michael Schippling
I really can't help with that because I don't know what you are trying to design. If your sensor works just like the photo cell on one of the boards you might just be able to solder it in place. Otherwise the mda100 may have room to attach whatever you need. I haven't used any of them though. MS

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Razvan Musaloiu-E.
Hi! On Fri, 13 Nov 2009, Maciej Franecki wrote: it seems that I (maybe partially..) solved it. That's what I've done: installed gcc 4.3.4 from macports changed gcc soft link (in /usr/bin) to point the new version and: *** Successfully built micaz TOSSIM library I committed some fixes

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Enzeneer
Cool! This works, but I still have problems compiling some of the other applications that reference stdlib.h. Can you point me to some information about mig? How does it select the gcc version? Abhay On Fri, Nov 13, 2009 at 9:24 PM, Razvan Musaloiu-E. razv...@cs.jhu.edu wrote: Hi! On Fri, 13

[Tinyos-help] Gain value and relation with ADC

2009-11-13 Thread Akankshu Dhawan
Hi All I wanted to know what is the relation between the ADC values that I get when I use the MicP interface. I know that I am getting values with an offset of around 500 out of the 10-bit range of 1024. But I am curious to know two things : 1. Can I change this offset to get a somewhat better

Re: [Tinyos-help] sensor problem

2009-11-13 Thread Li, Haixia
Hello, Michael, Thank you for your guide. I have connected my sensor on mda100, and I did a small modify for PhotoImpIP component. It works. However, I still cannot understand it clearly. thanks and regards, Haixia Li From: Michael Schippling

[Tinyos-help] ahhr-ipsn09 clustering code not inside apps ?

2009-11-13 Thread Akankshu Dhawan
Hi All I was trying to see the clustering algorithm implemented by Konrad Iwanickihttp://www.few.vu.nl/~iwanicki/ on the tinyos repository inside tinyos-2.x-contrib but the apps and doc folders are empty ? Only section with files available is the tos Can someone tell where I can get this. ??

[Tinyos-help] energy monitoring for MICAZ

2009-11-13 Thread Akankshu Dhawan
Hi All I want to monitor the energy consumption while my application is running. I want to know which components do I need to refer or which interfaces need to be wired? If there is a sample application that is available that would be really helpful. I just want to compute energy consumed after

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Enzeneer
Hi, It occurs whenever I try to build a Java program and target=null is specified in the Makefile. For example in the Oscilloscope app. Now I found that if I change the target=telosb or target=$(PLATFORM), then it builds without problem. The errors when target=null is specified are as below:

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Razvan Musaloiu-E.
Hi! On Fri, 13 Nov 2009, Enzeneer wrote: Cool! This works, but I still have problems compiling some of the other applications that reference stdlib.h. Can you point me to some information about mig? How does it select the gcc version? Can you indicate the steps to reproduce this problem?

[Tinyos-help] Wifi chip on mica2

2009-11-13 Thread Zhao Stephen
Dear all I want to design a circuit board which is almost same to mica2. the only difference is that I plan to embed another wifi chip on the board in addtion to cc1000 so that this node can work at two RF channels simultaneously. I am not very clear how to reach it. for example, 1. is there any

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-13 Thread Razvan Musaloiu-E.
Hi! On Sat, 14 Nov 2009, Enzeneer wrote: Hi, It occurs whenever I try to build a Java program and target=null is specified in the Makefile. For example in the Oscilloscope app. Can you give another try of the latest CVS? I just committed a fix for the null too. :D All the best! Razvan ME