Hi,guys
I use Oscilloscope in tinyos2.0 to send data of temperature sensor.
After setting up the device with the motes,I use matlab to access the serial
port as:
port = '/dev/ttyUSB0';
listener = serial(port,'baudrate',115200,'DataBits',8);
fopen(listener);
while(true)
clear msg;
msg = fread(listener,1);
msg = double(msg);
display(msg);
end
And what I get from variable msg is like:
msg = 0
msg = 25
msg = 0
msg =238
msg = 214
...
My question is how to get temperature data from this msg?
Thanks
Xiao
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help