I have written a tinyviz plugin that supplies a series of values to a simulated mote through ADC channels 150, 151 and 152. The mote uses ADCC.ADC[150], ADCC.ADC[151] and ADCC.ADC[152] components to read these values. The value on ADC channel 150 indicates how many read requests must be issued to the other two channels (151 and 152). The tinyviz plugin waits for ADCDataReady event from channel 152 and after receiving this event updates the new values on the ADC channels. Everything works fine except that the last read to channel 152 keeps on generating additional data ready events. I am attaching the ADC debug output.

Has anyone experienced this before or can someone tell me where to look for the source of the problem.

[EMAIL PROTECTED]:~/tinyos/my-apps/FakeDistance$ build/pc/main.exe -gui -a=generic -b=0 1
SIM: Random seed is 628048
0: ADC: request for port 150
0: adc_tick: port 150 with value 2
0: ADC: request for port 151
0: adc_tick: port 151 with value 1
0: ADC: request for port 152
0: adc_tick: port 152 with value 468
0: ADC: request for port 151
0: adc_tick: port 151 with value 5
0: ADC: request for port 152
0: adc_tick: port 152 with value 313
0: adc_tick: port 152 with value 313
0: adc_tick: port 152 with value 313
0: adc_tick: port 152 with value 313
Exiting on SIGINT at 0:0:0.00000000.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to