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 [EMAIL PROTECTED] for details.
 
I hope that helps,
Giri


________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Tacconi
Sent: Thursday, November 30, 2006 8:00 AM
To: [email protected]
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


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to