It seems that queries are being sent.... or at least TinyDBNetwork
issues the send with no errors. But no replies/results are received.
I'm wondering if there is a problem with the network. Would that
prevent these events, ADCDataReadyEvents, from being sent?
Marguerite
Marguerite A Doman wrote:
>Hello,
>
>I'm simulating a sensor grid. I am trying to add attributes to the
>motes; set the values or change them; then query the attributes via the
>TinyDB (TinyDBMain engine). When I set the ADC port values for the
>associate attribute, I am having problems
>telling the mote to read in that value for the attribute.
>
>Here's my scenario:
>
>I add an attribute (SensorAttribute) to each mote
> (simcore.motes[].addAttribute('attrName', SensorAttribute).
>
>Using either the:
> (simcore.comm.setADCValue(moteID, time, port, value)
>or providing a non-mote SimObject to propagate readings to the motes
> (sensor.addModel(name, model)
> sensor.addField('attrName', port, model)
>Calls are made to: SetADCPortValueCommand for one or each mote.
>
>However... How do I tell the mote to read the ADC values currently at
>that port??
>
> I added an event handler to intercept the ADCDataReadyEvent. but it
>never was issued. Infact, no event was issued.
>
>In Tython, I want to send a moving non-mote SimObject around the grid
>and have the motes read the settings it provides for the sensor field.
>I want to be able to use TinyDB to get this information.
>
>Thank you for your time,
>Marguerite Doman
>
>
>
>
>
>I tried registering an event handler for the ADCDataReadyEvent, so that
>I could add the attribute to each mote when the event occured. The
>event did not seem to be triggered.
>_______________________________________________
>Tinyos-help mailing list
>[email protected]
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help