Kevin, So, I think it may not be a tosthreads problem, after all. As long as I call configure for each call to getData() then everything works fine. From the documentation, I got the impression that you could call getData multiple times after configuring the channel. The behavior of returning SUCCESS and no dataReady event is, of course, still not desirable. But I can work around it for now.
Thanks, Jacob On Fri, Jun 12, 2009 at 12:08 PM, Jacob Sorber <[email protected]>wrote: > In case it helps, I also just noticed that if I make NUM_SAMPLES = 1 in > MovementP.nc then it seems to work fine. > > Jacob > > > On Fri, Jun 12, 2009 at 11:06 AM, Jacob Sorber <[email protected]>wrote: > >> attached. >> >> The application I'm having trouble with is in tests/testMove. Similar >> test apps not involving tosthreads are in testADXL and testMag. Most of the >> code is in the "shared" directory. >> >> Let me know if you have any other questions. >> >> Thanks, >> >> Jacob >> >> >> On Fri, Jun 12, 2009 at 10:53 AM, Kevin Klues <[email protected]> wrote: >> >>> Can you send me your source code, along with your wrapper. I will try >>> and track down the problem. >>> >>> Kevin >>> >>> On Fri, Jun 12, 2009 at 7:45 AM, Jacob Sorber<[email protected]> >>> wrote: >>> > I'm having a problem that only comes up when I'm using tosthreads. I >>> have a >>> > NesC component that I have used for along time that uses the >>> > Msp430Adc12MultiChannel interface from Msp430Adc12ClientC to >>> periodically >>> > sample 3 ADC pins. As long as I am not using tosthreads, it works >>> great. >>> > >>> > In order to use it with tosthreads, I wrote a blocking wrapper around >>> it >>> > just like the example shown in the tosthreads tutorial and now, I can >>> only >>> > sample once successfully. The second time, I call >>> > Msp430Adc12MultiChannel.getData and I never get a >>> > Msp430Adc12MultiChannel.dataReady event. I have traced it down to >>> > Msp430Adc12ImplP which calls HplAdc12.startConversion successfully, but >>> no >>> > HplAdc12.conversionDone event is ever signalled. >>> > >>> > Also, I'm using the latest version from CVS, which I updated yesterday >>> in >>> > hopes of fixing this problem. >>> > >>> > Any help would be greatly appreciated. I really like the idea of using >>> > tosthreads, so I hope there's an easy solution to this problem. >>> > >>> > Thanks, >>> > >>> > Jacob Sorber >>> > >>> > >>> > _______________________________________________ >>> > Tinyos-help mailing list >>> > [email protected] >>> > >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> > >>> >>> >>> >>> -- >>> ~Kevin >>> >> >> >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
