On Fri, Sep 27, 2013 at 1:04 AM, Andres Mabini <[email protected]>wrote:
> Hi Eric, > > Thanks for the swift reply, and apologies for not being more specific - I > am using TelosB. I've read inquiries about roughly similar problems before, > mostly in MSP430 forums and in the context of UART streams, not ADC > streams. Circular queues were mentioned, as well as swapping buffers. Are > circular queues/buffers supported in TinyOS, or the ADC-related interfaces > of TinyOS? Or are they something that I have to code myself in NesC? A > cursory search of the code base returned references to circular logs(as > when writing to NVRAM) - but how about circular buffers as passed to the > ADC? Thank you so much. > > I don't know off the top of my head. but there is lots of stuff in there but finding it can be tricky. I'd suggest "grep -nHiR <thing you are looking for> ." from the top level. In other words you might want to take a few days to see what you can find. look in tos/lib and tos/system. Then see who uses the different interesting bits. Another useful tool is "find . -iname "*<file>*" good luck grasshopper. eric > > On Fri, Sep 27, 2013 at 7:08 AM, Eric Decker <[email protected]> wrote: > >> >> >> >> On Thu, Sep 26, 2013 at 10:46 PM, Andres Mabini <[email protected] >> > wrote: >> >>> Dear everyone, >>> >>> Is it possible to have the ADC sample and process its output at the same >>> time? >>> >>> What I mean is, say I have my ADC sample a sensor at 10KHz. What I've >>> been doing is fire up the ADC(with DMA), the array would return, I'd >>> process the array and then fire up the ADC again. Obviously I end up >>> missing samples, as the ADC is not running while I'm processing the >>> previous set of samples. Is it possible to have the ADC sample continuously >>> while I'm processing the output at the same time? Using a circular queue >>> perhaps? >>> >> >> Probably but it depends on the h/w you have available to work with. >> >> You should research what hardware is available on the motes you are using >> and then research how that hardware work. >> >> you've got homework to do :-) >> >> >>> As always, thanks! >>> >>> Andy >>> >>> _______________________________________________ >>> Tinyos-help mailing list >>> [email protected] >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> >> >> >> >> -- >> Eric B. Decker >> Senior (over 50 :-) Researcher >> >> > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
