Re: [Tinyos-help] Junk data with Adc on telosb

2007-07-31 Thread Nicolas Esteves
Thanks a lot :) Jan Hauer wrote: I'll take a look and see if I can reconstruct your problem, Jan [sorry for the late reply, I just returned from holidays] On 7/26/07, Nicolas Esteves <[EMAIL PROTECTED]> wrote: Hi, When i use the multi channel sampling component (like in the

Re: [Tinyos-help] Junk data with Adc on telosb

2007-08-06 Thread Nicolas Esteves
uration works fine (except I'm using input channel 10 and twice 11). What did you choose for the "jiffies" parameter, can you post your Msp430Adc12MultiChannel.configure call with all parameters ? Jan On 7/31/07, Nicolas Esteves <[EMAIL PROTECTED]> wrote: Thanks a lot :)

Re: [Tinyos-help] Manipulating string

2007-08-30 Thread Nicolas Esteves
Hi, I don't know why you want to use string but I don think that it is a good idea. If you want to use it for sending commands, I recommend you to use numeric constants, this is faster, easier and it saves resources. You declare them with enum and dont have to worry about their representation

Re: [Tinyos-help] Junk data with Adc on telosb

2007-09-04 Thread Nicolas Esteves
Hi Jan, Did you have the time to check my configuration in my last mail? I still haven't found a way to resolve the problem with my adc sampling.. Thanks again ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berke

Re: [Tinyos-help] Junk data with Adc on telosb

2007-09-05 Thread Nicolas Esteves
Hi Jan and John, Thank you for your responses, I finally find where the problem occured, it seemed to be a problem of buffer copy. I fixed this while rewriting a large part of my code so I'm not sure about this but apparently it wasn't exactly an adc problem but when I handle the results and co

[Tinyos-help] CounterMicro question

2007-05-31 Thread Nicolas Esteves
Hi, I'm working with telosb and I'm trying to find a solution to estimate the time taken by some operation accurately (micro second). I first tried the TimerMicro but as i found after in the mailing list (here http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-May/024953.html) I u

Re: [Tinyos-help] Progamming 4 Digital Outputs in Tmote

2007-06-01 Thread Nicolas Esteves
Hi, Look at the datasheet (http://www.moteiv.com/products/docs/tmote-sky-datasheet.pdf) to find which port you want to use, for exclusive digital I/O you can use port 62 (pin 7 on U2), port 63 (pin 10 on U2) or port 26 (pin 4 on U28). Then use the GeneralIOC component to use these port. Use the

[Tinyos-help] Question on redefining signals

2007-06-01 Thread Nicolas Esteves
Hi, I would like to know if there is a way to redefine a function with TOSH_SIGNAL. I want to redefine the void sig_TIMERA0_VECTOR defined in Msp430TimerCommon.nc by my function to make another timer than Msp430TimerC, but as far as i know I can't redefine a function in C, so if anyone can hel

Re: [Tinyos-help] CounterMicro question

2007-06-01 Thread Nicolas Esteves
Hi, I put my loop into an atomic block and as you thought there is no more jitter and now i can have 8.8us period. But i dont know which interrupt occurs since my overflow event is not called. I'll try to disable the Timer A interrupts to see if it changes something. Thanks again _

Re: [Tinyos-help] Progamming 4 Digital Outputs in Tmote

2007-06-04 Thread Nicolas Esteves
Hi here is a code i used, but not sure is the best way to do this. It will output on port 62 (exclusive digital /IO 1) the input read on port 63 (exclusive digital I/O 0). You can sample data with a timer too, this is just the minimum to use Gpio. Hope it will be useful. configuration Test

[Tinyos-help] Compiling contributed code

2007-06-08 Thread Nicolas Esteves
Hi, I want to compile code that i dont want to put in the original TOSDIR folder, i put it in tinyos-2.x/contrib/. I cant find where to modify Makerules to include this directory for the compilation. If someone could help me it would be great. Thanks __

Re: [Tinyos-help] Compiling contributed code

2007-06-11 Thread Nicolas Esteves
I've already found how to fix this last week but thanks for your response :) ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] GPIO on port16 not working

2007-06-12 Thread Nicolas Esteves
Hi, Im trying to use gpio to output a signal on port16 (GIO2) but I always got 0. When using the exact same code on port 26 or 62 everything works fine. I also tried to set the io function by the selectIOFunc() method but nothing changed. I tried on differents motes (telosb / tinyos 2.x). Why

Re: [Tinyos-help] GPIO on port16 not working

2007-06-13 Thread Nicolas Esteves
Was an error on port number, correct port in 23 (CA0/TA1) instead of 16 (TA1) ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Multichannel Adc sampling and DMA

2007-06-14 Thread Nicolas Esteves
Hi, Is there a particular reason for the multi channel sampling methods to be unavailable in the AdcReadClient/AdcReadNowClient/AdcReadStreamClient whereas these methods are implemented in Msp430Adc12Impl. Is is for portability? I also found that no constant is available to use Msp430Adc12Cli

Re: [Tinyos-help] Multichannel Adc sampling and DMA

2007-06-18 Thread Nicolas Esteves
Hi, Thanks for all your replies. I'll sample my channel with the multiple channel interface and see if i can have the frequence i need, around 1000 hz without dma. If i can't i'll try to add dma to improve speed. Jan Hauer wrote: My last question is why Msp430Adc12DMAP dont provide Msp430Adc

Re: [Tinyos-help] Multichannel Adc sampling and DMA

2007-06-18 Thread Nicolas Esteves
Hi, I tried to sample 6 channels together but i always have 0xfff, im not sure of the initialisation of the adc if someone can help me it would be nice... here is my component module CeaSensorP { uses { interface Msp430Adc12MultiChannel as Adc; interface Resource; }

Re: [Tinyos-help] Multichannel Adc sampling and DMA

2007-06-19 Thread Nicolas Esteves
Ok, I've enough other stuff to look at so i'll wait for the multi channel :) Thanks again for your reply regards Jan Hauer wrote: the buffer signaled by dataReady is always full of 0xfff The problem is the reference voltage. You are, I guess, wiring to Msp430Adc12ClientC, which does not

Re: [Tinyos-help] Multichannel Adc sampling and DMA

2007-06-27 Thread Nicolas Esteves
Thank you Jan I'll look at this when i have the time :) ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Multichannel Adc sampling and DMA

2007-07-16 Thread Nicolas Esteves
the jiffies to 100/1000 = 1000. Can someone help me with this? Thanks Jan Hauer wrote: Updated in CVS. I extended the test app in tinyos-2.x/apps/tests/msp430/Adc12. Jan On 6/19/07, Nicolas Esteves <[EMAIL PROTECTED]> wrote: Ok, I've enough other stuff to look at so i'

[Tinyos-help] Junk data with Adc on telosb

2007-07-26 Thread Nicolas Esteves
Hi, When i use the multi channel sampling component (like in the apps/tests/msp430/Adc12) I always have junk data at the beginning of the sampling. I'm sampling channels INPUT_CHANNEL_A0, INPUT_CHANNEL_A1 and INPUT_CHANNEL_A2 with REFERENCE_VREFplus_AVss for each channel and REFVOLT_LEVEL_2_

Re: [Tinyos-help] Multichannel Adc sampling and DMA

2007-07-26 Thread Nicolas Esteves
needs fix. André Miguel de Almeida Marrão Rodrigues wrote: Hello I'm trying to figure our how to use your code in a 3 axis accelorometer. Could you please send me your CeaSensor component and the test application that you used? Best regards, André - Original Message ----- From