[Tinyos-help] external antenna

2007-09-13 Thread subhash nemani
we have tmotes without internal antenna and provision for external i.e SMA connector .i have connected linksys 7dBi antennas but it is not covering even a distance of 20 mts what might be the problem??? please help me in this regard i have tired the power settings using commands at the cygwin

[Tinyos-help] how to get 3 ADC Port value from Tmote s ky‏

2007-09-13 Thread Chen Bleed
I want to get three value from tmote sky.I use 3-axis accelerator sensor, and I need the X, Y, Z Output.I'm unable to get three values at one time, so i try to get one value at one time, then get three times to be a cycle.(If anyone get some solutione like get three values at one time,

[Tinyos-help] radio stack cc22420

2007-09-13 Thread Leonardo
Hy guy. I have some problems with stack radio. in my project I send a message on UART and a message on Radio. when i transmit a message on UART, i receive once signal of sendDone and in my project i write in this way: call DataMsg.send(TOS_UART_ADDR,sizeof(beaconMsg), msg); but when i

Re: [Tinyos-help] external antenna

2007-09-13 Thread André Miguel de Almeida Marrão Rodrigues
Hello I have tried these kind of antennas and it also did not work in an indoor scenario with 2 walls. For 200mts in your scenario perhaps you should use TMoteMiniPro or other nodes with a power amplifier. André - Original Message - From: subhash nemani [EMAIL PROTECTED] To:

[Tinyos-help] TinyViz replacement in TinyOS 2.x

2007-09-13 Thread Rui Zhang
Hi all, I'm after the Location plugin offered by TinyViz. Apparently, TinyViz is no longer supported by TinyOS 2.x. I was wondering if there's sth equivalent in TinyOS 2.x that would provide me with the same functionality? Thanks much, Rui ___

Re: [Tinyos-help] how to get 3 ADC Port v alue from Tmote sky‏

2007-09-13 Thread Michael Schippling
I think what you need to do is have separate names for each ADC 'channel' and call their getData()'s in sequence, something like this: in the Config file: ProjectOtherM.ADCx - ADCC.ADC[TOS_ADC_SENSORX_PORT]; ProjectOtherM.ADCy - ADCC.ADC[TOS_ADC_SENSORY_PORT]; ProjectOtherM.ADCz -

Re: [Tinyos-help] radio stack cc22420

2007-09-13 Thread Michael Schippling
hmm, you _should_ only get one done per message send, meaning one from the UART and one from the radio. Using GenericComm, you need to sequence the sends such that only one is active at a time. What I have done is fire off the serial send from the done of the radio send. If that doesn't work for

Re: [Tinyos-help] external antenna

2007-09-13 Thread Michael Schippling
Are we sure that the antennas are for the right wavelength? By linksys I guess you mean a dongle from an 802.11b,g router? Do they have the same connector as your Tmote? And are the connectors seated well? Also, you're sure you disabled the internal antenna? I think there's a capacitor that

RE: [Tinyos-help] external antenna

2007-09-13 Thread David Moss
You guys are moving the C73 capacitor over to connect the external antenna, right? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schippling Sent: Thursday, September 13, 2007 10:25 AM To: André Miguel de Almeida Marrão Rodrigues Cc:

[Tinyos-help] initializing pointers

2007-09-13 Thread Islam Hegazy
Hi all I want to use a dynamic array in my sensor application. Is there a way to iniailize the array before using it like the keyword new in C++? I defined the array as : uint16_t *dataArr when I access it as : dataArr[numData++] = value it gives a runtime error. I am working with mica2 and

[Tinyos-help] One problem about mica2 frequency

2007-09-13 Thread Bo Xu
Dear all: I uploaded a nesC program to a mica2(433Mhz) and the program TOSBase(433Mhz) to the other mica2 pluged on the MIB510. At first, everything works well. But I changed both of the mica2 motes to another type mica2(900Mhz) and it seems that one mica2 can still send the data, but the

Re: [Tinyos-help] initializing pointers

2007-09-13 Thread Michael Schippling
You have made a pointer, but it doesn't point to anything... or more preciesely it is probably initialized to 0, so it points to the bottom of memory. Since there isn't any mem management (to speak of) the easiest thing is to create your array directly: uint16_t dataArr[SOMEsmallSIZE];

Re: [Tinyos-help] One problem about mica2 frequency

2007-09-13 Thread Michael Schippling
Make sure you have selected the same frequency defines for both devices in the relevant makefiles. E.g., I have: PFLAGS += -DCC1K_DEF_FREQ=91670 CFLAGS += -DRADIO_XMIT_POWER=0xFF Note that the 'regular' apps/Makelocal doesn't set any power level for mica2's, so that might be a

Re: [Tinyos-help] initializing pointers

2007-09-13 Thread Islam Hegazy
The problem that I am facing is that I don't what is the value of SomeSmallSize... I can go the other way around by specifying a large value but I am afraid that I may overflow the memory so is there a way to compute the available memory? Islam Hegazy - Original Message - From:

Re: [Tinyos-help] initializing pointers

2007-09-13 Thread Kevin Klues
You can't allocate an array dynamically. All arrays must be statically allocated using constant sizes defined at compile time. Kevin On 9/13/07, Islam Hegazy [EMAIL PROTECTED] wrote: Hi all I want to use a dynamic array in my sensor application. Is there a way to iniailize the array

Re: [Tinyos-help] initializing pointers

2007-09-13 Thread John Griessen
Kevin Klues wrote: You can't allocate an array dynamically. All arrays must be statically allocated using constant sizes defined at compile time. I think this is what I was hitting against in one module I made for using MSP430Adc12Multichannel. I thought it would be convenient to have one

Re: [Tinyos-help] initializing pointers

2007-09-13 Thread Kevin Klues
What were you trying to do exactly? #define ARRAY_SIZE 50 uint8_t ar0[ARRAY_SIZE]; uint8_t ar1[ARRAY_SIZE*2]; Should work just fine. Kevin On 9/13/07, John Griessen [EMAIL PROTECTED] wrote: Kevin Klues wrote: You can't allocate an array dynamically. All arrays must be statically

Re: [Tinyos-help] initializing pointers

2007-09-13 Thread David Gay
On 9/13/07, Kevin Klues [EMAIL PROTECTED] wrote: You can't allocate an array dynamically. All arrays must be statically allocated using constant sizes defined at compile time. Well actually we don't do anything to *prevent* you from calling malloc, assuming the libc for your platform includes

Re: [Tinyos-help] initializing pointers

2007-09-13 Thread Kevin Klues
Ok... append my previous response to say You SHOULDN'T allocate an array dynamically. All arrays SHOULD be statically allocated using constant. Kevin On 9/13/07, David Gay [EMAIL PROTECTED] wrote: On 9/13/07, Kevin Klues [EMAIL PROTECTED] wrote: You can't allocate an array dynamically.