Le Tuesday 09 December 2008 10:23:47 Igor L Marques, vous avez écrit : > For TinyOS 2.x look at the > /tinyos-2.x-contrib/mts4x0 >
The code over there does not (yet) include the logic for the accelerometer. However all the switches logic is implemented and powering up the accelerometer should be easy (I'll commit it soon), in order to get data you will need a driver for the exact device, according to the datasheet it's directly connected to the adc. You are lucky, the driver already exist in the tinyos tree, unfortunately it's not present as an individual "chip" in it's own directory but as part of the mts300 sensor board code. However, the work should not be big to get data from the accelerometer, as it would be limited to power it up using the switch logic of the mts400 and reusing some parts of the driver from the mts300 board (in tos/sensorboards/mts300/Accel* ) . IMHO, the ideal would be to take the accelerator chip's specific code from the mts300 directory and move it to a stand alone chip driver ( i.e. in tos/chips/ADXL202JE/ ) that would be used by the different "boards" ... BTW, if you have something working I will be happy to commit it in tinyos-2.x-contrib/mts4x0 Best, Aurélien _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help