hi after shelving this for a while, i decided to go back and try to solve it. To recap, after updating my toolchain, TinyOS and contrib trees (on the Shimmer-supplied Ubuntu VMWare image) i can no longer achieve Magnetometer.writeDone events. E.g. I've taken the unadulterated BoilerPlate app, stuck an Leds.led0On() before the Magnetometer.runContinuousConversion() call, and an Leds.led0Off() in the Magnetometer.writeDone event. For some reason, the led off call is not reached. Looking at the Log message for SVN revision 5959, it seems the update to msp430-gcc-4.x caused anomaly with the bmp085 pressure sensor i2c writes in the writeReg function, which was solved by stuffing an extra byte into the write packet.I tried doing the same with the corresponding writeRegValue function for the hmc5843 magnetometer, and the Magnetometer.writeDone events are now achieved, but the output data looks dodgy (viewed in the ShimmerConnect v0.2 software the data looks noisy, and goes out-of-scope on the plots). this is where i've gotten stuck again. Any help would be appreciated. regards Chris
> Date: Fri, 27 Jul 2012 12:52:30 -0400 > From: [email protected] > To: [email protected] > Subject: Re: [Shimmer-users] yet another toolchain update > > hi chris, > > sorry, i have no idea. > > best baseline sanity check: i have a simple test app, which i will > release later on this afternoon (must run right now), that may help. > run justmag from the -contrib tree. if it works and your code doesn't, > then you have an app bug. > > i'll mail back when i get it out there. > > wish i had better news, > > steve > > On 07/27/2012 12:06 PM, Chris B wrote: > > steve, > > > > thanks for the updates. > > > > Possible breakage... > > > > I don't seem to get Magnetometer.writeDone events anymore, which i use > > in some of my own apps to figure out when it's safe to write to the > > register again e.g. when calling runContinuousConversion, setOutputRate > > or setGain in succession. Checked in contrib BoilerPlate by sticking an > > Led On call there. Any ideas? > > > > regards > > > > Chris > > > > > > > > > Date: Tue, 17 Jul 2012 10:31:57 -0400 > > > From: [email protected] > > > To: [email protected] > > > Subject: [Shimmer-users] yet another toolchain update > > > > > > hi folks, > > > > > > during testing i found that the new toolchain broke some i2c drivers > > > (even the msp430 i2c driver itself). while i did push out fixes > > > previously, i missed changes that i made to the magnetometer driver for > > > the hmc5843; this chipset is on the shimmer "9dof" board, so these > > > changes will interest those users. > > > > > > please pick up these updates whether or not you have upgraded your > > > compiler toolchain: > > > > > > cd ~/tinyos-main/tos/platforms > > > > > > svn update > > > > > > you'll see (if you have followed maintenance suggestions and all else is > > > current) new files pulled into > > > > > > shimmer2/chips/hmc5843 > > > > > > please note that this affects two apps in -contrib as well, since the > > > magnetometer event prototypes are now async. i made these changes in > > > the released versions, so you can update these as well: > > > > > > cd ~/tinyos-2.x-contrib/shimmer/apps > > > > > > cvs update > > > > > > you'll see updates to boilerplate and gyromag. > > > > > > thanks to mike healy for finding this oversight. please keep posting > > > when you find broken things! > > > > > > -steve > > > _______________________________________________ > > > Shimmer-users mailing list > > > [email protected] > > > https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
_______________________________________________ Shimmer-users mailing list [email protected] https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
