[Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-05-05 Thread antonio rosa
Hi everyone, I have an application that performs several readings consecuitves with different ports of the ADC. Specifically, first read the internal voltage of the microcontroller IRIS, and then performed a reading of a temperature sensor that I have connected. To make both readings the results a

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-08-29 Thread antonio rosa
Hello all, I have a problem with the IRIS platform. When I do readings of different channels of ADC reading the microcontroller's internal voltage (channel ATM128_ADC_SNGL_1_23) the event (dataReady) is SUCCESS but the reading (data) is erroneous. I have cheked that if I make two consecutive readin

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-08-30 Thread Janos Sallai
Antonio, I have a guess what can be wrong. I assume you're using either the Atm128AdcSingle or Atm128AdcMultiple interface. While the dataReady event is slightly different in these two interfaces, in each cases it has a bool parameter, not an error_t. Notice that the value of the SUCCESS constant

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-08-30 Thread Janos Sallai
Antonio, I have been able to replicate this. Interestingly, only the first sample should be bad after a channel/vref change according to the data sheet, unless we're switching to a differential channel, where it may take up to 125us for the stage to stabilize. I did observe, however, that the seco

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-08-30 Thread antonio rosa
Hi Janos, I have updated the Adc Atmega1281 with the TinyOS Trunk and the problem is result, Thanks for all, Antonio Rosa. Maybe I will send you some questions about others topics, that I think there is problems o bugs. 2011/8/30 Janos Sallai > Antonio, > > I have been able to replicate this.

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-08-31 Thread antonio rosa
Hi Janos, I have been that the component ActiveMessageLayerP of rflink/layers library provides interface Receive[am_id_t id]. The event SubReceive.receive that signal Receive.receive event not filter the group, and this produces that any node with the same id but different group can receive the

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-01 Thread Miklos Maroti
Hi Antonio, That is a good catch. I think the isForMe should be fixed. It is also a good question whether messages with DIFFERENT group id should be snooped. I think those messages should be dropped (that way you can separate different apps completely, even if they use the same services). What do

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-01 Thread Eric Decker
In practice, how often are parallel nets using group id to differentiate implemented. How useful is this really. Note that any node that is listening burns the energy to receive these packets that they then throw away. It is much better to put parallel nets on dfifferent frequencies. So how u

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-02 Thread Eric Decker
On Fri, Sep 2, 2011 at 12:06 AM, antonio rosa < antoniorosarodrig...@gmail.com> wrote: > Hi to all, > > I think that put parallel networks on different radio channels is better > because it avoids collisions , but if you only use the radio channel, it is > not scalable (15 different networks) sol

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-02 Thread Miklos Maroti
Hi Eric, On Fri, Sep 2, 2011 at 9:34 AM, Eric Decker wrote: > > > On Fri, Sep 2, 2011 at 12:06 AM, antonio rosa > wrote: >> >> Hi to all, >> >> I think that put parallel networks on different radio channels is better >> because it avoids collisions , but if you only use the  radio channel, it is

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-02 Thread Michiel Konstapel
inyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Eric Decker Sent: vrijdag 2 september 2011 7:18 To: Miklos Maroti Cc: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote I

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-02 Thread antonio rosa
I think that in a classroom or a building with several apartments per florr( like a WPAN or BAN), if every apartments has a WSN maybe two o more networks can share the same radio channel and this could be a problems for the applications of the nodes. 2011/9/2 Miklos Maroti > Hi Eric, > > On Fri

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-02 Thread Miklos Maroti
Ok, I have checked in a fix: isForMe now checks the group id, and now it is compatible with 1.x. Miklos On Fri, Sep 2, 2011 at 9:52 AM, antonio rosa wrote: > I think that in a classroom or a building with several apartments per > florr(  like a WPAN or BAN), if every apartments has a WSN maybe tw

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-02 Thread antonio rosa
Miklos, I think that also, you should include it in the command command bool AMPacket.isForMe(message_t* msg) provides by ActiveMessageLayerP on library /tos/chips/rf2xx/layers. 2011/9/2 Miklos Maroti > Ok, I have checked in a fix: isForMe now checks the group id, and now > it is compatible with

Re: [Tinyos-help] Problems with ADC to perform two consecutive readings on IRIS Mote

2011-09-02 Thread Miklos Maroti
That is done automatically, since there we call Ieee154PacketLayerP. Miklos On Fri, Sep 2, 2011 at 11:32 AM, antonio rosa wrote: > Miklos, > I think that also, you should include it in the command command bool > AMPacket.isForMe(message_t* msg) provides by ActiveMessageLayerP on library > /tos/ch