On Sun, 05 Mar 2006 01:36:49 -0600, Aditya Bhave <[EMAIL PROTECTED]>
wrote:
I have one more doubt related to TinyDB.
We are implementing a localization algorithm using the motes. In my
project,
one of the motes (the base station) is connected to the UART. I want this
mote to send a query to all the motes in the network to retrieve a packet
called
struct PosXY
{
int X, Y, timestamp
}
Each of the motes in the network will have one instance of this structure
built and assigned values before the base station injects the query in
the
network. Next the base station on recieving these packets from all the
nodes should display the network topology on the PC screen (the topology
may
change dynamically).
I am not too clear on how TinyDB works. I have 2 questions specifically.
1. In the tutorial, it says you can add attributes of my own. Does this
mean
that I can tell TinyDB on the base station to send the above structure
to
all the motes in my network (which may be several hops away) and that my
code on the other motes can use this structure to assign values!!! If so,
can you provide me guidelines on how to access this structure in my code
on
the motes?
2. Are there in-built modules in TinyDB to do what i want. Or do I have
to
write my own Java program to read the PosXY packets from TinyDB and
display
on screen?
Thanx in advance
regards,
Aditya Bhave
--
Force is all-conquering, but its victories are short-lived - Abraham
Lincoln
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help