Instantiating two MoteIF object appears to work in principle.
However, this will require two calls to send:
moteIF0.send(0, payload);
moteIF1.send(1, payload);
     I am not sure if this will introduce substantial time
lag/drift/jitter. Is there any obvious way around this limit? For
example, is it safe to modify the function
synchronized public void send(int moteId, Message m)
     on line 145 of MoteIF.java to include two send commands, such as
sender0.send(modeId, m);
sender1.send(modeId, m);
     which may introduce less time lag?

     Also, is there a way to broadcast a serial packet using this function
(for example, by adding a loop)?

     I'm just not if such modifications will disrupt the thread
synchronization in the java programs and/or if it may introduce race
conditions in these programs.

Thanks,
Tal

> On Jan 9, 2008, at 9:35 AM, Tal Rusak wrote:
>
>> Hi,
>>      I need to use one packet source (i.e., a program sending
>> packets to
>> motes over the serial port) to communicate with two SerialForwarders on
two different machines, forwarding the packets generated to both. Is this
possible, and if so, how?
>>      If this is not possible directly, does anyone have a good
>> workaround?
>
> Just instantiate two MoteIF objects?
>
> Phil
>








_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to