[Tinyos-help] Different code for Crossbow MDA300 and MDA 320?

Giri Baleri mbaleri at xbow.com
Thu Nov 30 08:58:43 PST 2006


Hello David,
 
The MDA300 and MDA320 use different ADC and hence the MDA300 code won't
work on MDA320. Your options are:
1. Download MoteView and use pre-compiled XMDA320 to program the Mote
and view the data.
    http://www.xbow.com/Support/downloads.htm#moteview
2. If you want to obtain source code for this XMesh app, you would need
to get MoteWorks license. Please contact sales at xbow.com for details.
 
I hope that helps,
Giri


________________________________

From: tinyos-help-bounces at Millennium.Berkeley.EDU
[mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of David
Tacconi
Sent: Thursday, November 30, 2006 8:00 AM
To: tinyos-help at Millennium.Berkeley.EDU
Subject: [Tinyos-help] Different code for Crossbow MDA300 and MDA 320?


Hello,

I am trying to read some information from channel 11 of MDA300 and
MDA320. I used the code provided by Crossbow for MDA300

record[0] = call
Sample.getSample(11,ANALOG,MDA_SAMPLING_FREQ,SAMPLER_DEFAULT|
EXCITATION_33); 

and then

switch (channelType) {
            case ANALOG:              
              switch (channel) {                        
                case 11:
                    dataMDA[0]=data & 0xff; 
                    dataMDA[1]=(data >> 8) & 0xff;
                    ....
                break;
...

and it is properly working, but if I use the same code for MDA320 it
does not work.
does somebody knows how to solve the problem? It looks like it does not
have channel 11: is this the problem? 

Thanks in advance
David


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061130/b25b17f1/attachment.htm


More information about the Tinyos-help mailing list