[Tinyos-help] Problem with Microphone on mts300

2008-07-24 Thread 付巍
Hi all: Now i'am using mts300 with micaz motes.I want to use Microphone on mts300.But i found the sample rate was too slow. Even if i set sample interval to 500ms,error occured when call read() provided by MicC component. In MicP component i saw code below: command error_t SplitControl.start()

[Tinyos-help] Help installing tinyos on Mac OS X

2008-07-24 Thread João Paulo Amaro da Costa Luz Carneiro
Hi, Following Kevin Klues' TinyOs 2.x installation on Mac OS X (Leopard) tutorial, I get the following: MacBookPro:java jc$ cd $TOSROOT/support/sdk/java MacBookPro:java jc$ make ... /tinyos/tinyos-2.x/support/sdk/java ... /tinyos/tinyos-2.x/support/sdk/java/net ...

[Tinyos-help] Converting temperature ADC readings to celsius degree

2008-07-24 Thread Flavio Pompermaier
Hi to all, I'm trying to guess how to get temperature in Celsius degrees from Telosb Mote (using SensirionSht11C). Looking around I found three different methods to calculate this value and I don't know which one is the best: 1) temp= -40 + 0.01 * data; // from TinyOS (said by

[Tinyos-help] array initialization

2008-07-24 Thread milos rovcanin
Ok,i would like to ask you one question: how to initialize an array??? I am using the GCC linux compiler. if i do it like this: a[1,1,1,1,1,1,1,1] compiler says parse error before ',' i used to compile the same program in Cygwin and there were no errors like this. Where is the problem?

[Tinyos-help] Weird behaviour of Timer.

2008-07-24 Thread jordanow
Hi * I have a little problem with Timers. In my application I use two timers JobTimer and StopTimer. I send from base station a start signal and start the JobTimer with some intervall( let say 1000 ). After that I start StopTimer.startOneShot(1). So that looks like : // ... get start

Re: [Tinyos-help] help please : turn off mote packet loss rate ?

2008-07-24 Thread Min Guo
then why not connect all nodes to your computer On Wed, Jul 23, 2008 at 8:45 PM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/23 Omprakash Gnawali [EMAIL PROTECTED]: If you put sequence numbers in the packet, you can find out which packets were not received. For example, you sent sequence

Re: [Tinyos-help] How To Send Two Consecutive Messages?

2008-07-24 Thread Michael Schippling
Like I said. Call the second sendReport (or better post a task) from the sendDone of the first. What might be happening is your busy-waiting while(flag) loop will hog the processor and block other tasks which may be needed to do the sending. MS Miky Mike wrote: I have created two functions that

Re: [Tinyos-help] array initialization

2008-07-24 Thread Michael Schippling
I think it's usually like this when declaring a global: int a[] = { 1,2,3,4,5,6,7 } If the variable already exists or is a local you need a for loop or other explicit assignment for each element. MS milos rovcanin wrote: Ok,i would like to ask you one question: how to initialize an

Re: [Tinyos-help] array initialization

2008-07-24 Thread Shikhar Sachan
or ... int a[5] = {0}; initializing during declaration ensures all elements are set to 0 Shikhar On Thu, Jul 24, 2008 at 5:05 PM, Michael Schippling [EMAIL PROTECTED] wrote: I think it's usually like this when declaring a global: int a[] = { 1,2,3,4,5,6,7 } If the variable already

Re: [Tinyos-help] How To Send Two Consecutive Messages?

2008-07-24 Thread Paul Stickney
I would just use some sort of Queue and shove things into it. It just seems like a more general case. Otherwise, double-the-buffers and double-the-individual-logic (definitely use tasks!). (IIRC, isn't there already such a component? At least in one of the support) HTH, Paul On Thu, Jul 24,

Re: [Tinyos-help] need help with mig.....

2008-07-24 Thread Paul Stickney
I would generate 3 different data-structures. 1) Overall packet (contains CtpData and TestNetwork fields, or at least a dummy buffer to accommodate such data) 2) CtpData 3) TestNetwork When you receive an Overall packet, take it (and, in Java), create the new CtpData and TestNetwork message

Re: [Tinyos-help] array initialization

2008-07-24 Thread Paul Stickney
During definition: int a[] = {1,2,3,4}; Creates an array, referenced by a, of 4 integers. In this case, the size will be automatically discovered. (There are other tricks that can be done, especially when a size is specified, please see a good C reference.) For later processing (such as when

Re: [Tinyos-help] Converting temperature ADC readings to celsius degree

2008-07-24 Thread migueltsilva
Hi Flavio, If you can see the datasheet of Sensirion chip http://www.sensirion.com/en/02_sensors/01_humidity_sensors/02_humidity_sensor_sht11.htm http://www.sensirion.com/en/pdf/product_information/Datasheet-humidity-sensor-SHT1x.pdf And you can find the method to convert in Celsius degrees.

[Tinyos-help] What's LQI?

2008-07-24 Thread Daniel Pereira
Hi All, I'm studying about multihop fashion in TinyO 2.x. In tinyos 2.x tree, we have two samples: MultihopOscilloscope and MultihopOscilloscopeLqi. What's the main difference between two applications? What is LDQ? Thanks all Daniel Patrick ___

Re: [Tinyos-help] Weird behaviour of Timer.

2008-07-24 Thread Paul Stickney
1) Verify all assumptions, since the timers fire so fast (JobTimer is fired only 10ms after StopTimer?), could it really be working as desired? 2) Make sure that different components (or instances thereof) are being wired up. Wiring the same one to two different HTH, Paul On Thu, Jul 24,

Re: [Tinyos-help] What's LQI?

2008-07-24 Thread Paul Stickney
Check out the different Collection components that they use. This will be revealed in the corresponding Makefiles by what paths are included. (The CTP and MultiHopLQI components support the same Collection interface but implement the routing protocol differently). I believe LQI is tied to symbol

[Tinyos-help] broken links in documentation.

2008-07-24 Thread James
Hi All, I'm new to TinyOS, and soaking up as much as I can from the documentation. I've found a few broken links in here; tinyos-2.x/doc/index.html 3B. TinyOS Source Code Documentation In addition to TEPs, which document the organization and design behind important parts of TinyOS, there is

[Tinyos-help] UART with RADIO stack

2008-07-24 Thread Kirak, Hong
Hi, guys, Does anyone have used uart0 and radio concurrently on telosb mote? It seems even if I handle resource arbitration, if a radio packet arrives during uart transmission, overrun error happens on uart. I think it's because MSP 430 is too slow to handle radio interrupt within 69