[Tinyos-help] How to know if mote is connected to serial port
Guillem Corominas
gcorominas at gmail.com
Thu May 3 03:58:19 PDT 2007
Well, I meant the mote to know if it was connected,
not the computer, so in the nesC program loaded into the mote,
it would be nice if I could use a statment similar to:
if (is_connected_to_serial())
act as a collector;
else
act as a sender;
instead of what I saw in the tutorial:
if (MOTEID == 1)
act as a collector;
else
act as a sender;
if I could do something like that, any mote could be the collector.
thanks,
guillem
2007/5/3, Oussama Chougna <o.chougna at phi-i.com>:
>
> I don't think this functionality is implemented in the Java or C tools.
>
> -----Original Message-----
> From: tinyos-help-bounces at Millennium.Berkeley.EDU
> [mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of Guillem
> Corominas
> Sent: donderdag 3 mei 2007 12:35
> To: tinyos-help at Millennium.Berkeley.EDU
> Subject: [Tinyos-help] How to know if mote is connected to serial port
>
> Hi,
> I am using tmote skys with tinyos 2.0.1, and I would like to know if it is
> possible
> to know whether a mote is connected to the serial port or not. I want this
> to avoid
> having to specify which mote will be connected, so I can have any mote to
> act
> as a collector of the whole network.
>
> thanks in advance,
>
> guillem
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070503/fc7e8bf6/attachment.html
More information about the Tinyos-help
mailing list