Lets run this back to the help list, since I don't fully understand the
question....
If you want a physical connection between mote and PC you need one
MIB5x0 (or whatever) and one USB or serial 'port' per mote. Aside
from expense, I don't know that there is any limit to the number
of any of those you may use (well, maybe 256 ports or something...).
I'm not sure why you want so many base-stations. We may have
a terminology problem because your use of "server" and "client"
has me confused. But if what you really want is a bunch of motes
hardwired to a PC, then the approach metcalfc and I have outlined
should do you fine. Each PacketSource is directly mapped to a single
port, and thus a single mote, and keeping track of which is which is
just, as they say, a matter of software...
MS
[EMAIL PROTECTED] wrote:
I'm using tinyos-2.0,I think that that will work as
Michael proposed but it still limits the number of
base station that I can connect and also all theses BS's
should be physically connected to the pc.
The whole idea is that I have several base stations as clients
and one sever.Each client wants to connect to the sever in
order to send sensing messages to its table in a data base.
In the other words, the application is just a datalogger.
So if my server receives a sensing message it should know
to which table should send it.
For instance,I have a single client version of this application
(one BS communicates with one application)but I try to create
a multiclient version.
BB.
En réponse à [EMAIL PROTECTED]:
Granted I'm using T2 but I do this all the time w/ the Java sdk (not
much is different then the T1 ver).
You create a MoteIF per sf and keep track of which is which (map?).
I'm guessing you have a separate problem. Config or otherwise.
On 9/18/07, Michael Schippling <[EMAIL PROTECTED]> wrote:
Perhaps Urs's advice has helped the initial problem but I would
recommend that you just skip the SF processes and go directly to the
serial ports. You could start a java thread to wait on each port and
deliver the data for whatever processing you wish...
Anyway there is indication in the T1 tools that you can do something
like this:
PacketSource ps = BuildSource.makePacketSource(
"<motecom-value>" );
ps.open(PrintStreamMessenger.err);
while( (packet = ps.readPacket()) != null )
// do stuff
where "<motecom-value>" is what you would normally put in the
MOTECOM
environment variable, e.g.: [EMAIL PROTECTED]:mica2
MS
[EMAIL PROTECTED] wrote:
The problem is that I would like to connect several base stations to
a
juste one pc in the way that they can communicate to the java
application which is running on this pc.
My idea was to have a SerialForwarder for each base station in the
way
that they can communicate to my application on diffrent ports.
That's why I need to use SerialForwarder rather than any other
packet
source.
Does anybody have an idea about how can I handel the problem
below:
Cheers,
B.
"I create a SerialForwarder and I try to associate it to moteIF
object
as below:
PhoenixSource source =
BuildSource.makePhoenix(BuildSource.makeSF
(this.hostname,9002),PrintStreamMessenger.err);
MoteIF mote=new MoteIF(source);
When I run the programe I get this:
[EMAIL PROTECTED]:9002 died - exiting (java.net.ConnectException:
Connection
refused)
I've checked there is no other SerialForwarder or another
application
which
is running on this port .I've tried to unset MOTECOM but it's
useless"
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Chad @ Home
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help