|
Good morning,
we have tried to simulate the oscilloscopeRF
application, here is hour configuration:
1) Mica2dot #0 with installed OscilloscopeRF
application and having applied to it a 1kHz sinusoide on ADC6 coming from a
signal generator and
2) Mica2dot #1 with installed TOSBase application
connected to the PC
3) PC running java programs SerialForwarder
& Oscilloscope
with this configuration all is working fine but on
the oscilloscope program we see :
a) changing frequency from 1kHz to 2kHz on the
oscilloscope we have a bigger period showed instead of a lower
one
b) changing frequency we don't see a clean
sinusoide but something that seams modulated
to solve these problems we have done the
following:
1) Change the BUFFER_SIZE in the
tinyos\cygwin\opt\tinyos-1.x\apps\Oscilloscope\OscopeMsg.h from 10 to 1,
the result is the following error :
"Receive error for
net.tinyos.oscope.oscopemsg (AM type 10): invalid length message received (too
short)
2)
Change call Timer.start(TIMER_REPEAT,
125); to call
Timer.start(TIMER_REPEAT, 16);
in
tinyos\cygwin\opt\tinyos-1.x\apps\OscilloscopeRF\OscilloscopeM.nc
the result is valid only for a sinusoide of 1,575Hz
applied to mica2dot #0
so here are our question :
1) Why is not possible to change the BUFFER_SIZE to a value different from
10 or whe have also to change it elsewhere ??
2) How can we set the TIMER_REPEAT to show correctly a frequency of 1
kHz ??
many thanks ....
Antonello Iacuele
|
_______________________________________________ Tinyos-users mailing list [EMAIL PROTECTED] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
