[Tinyos-help] Every second (!!!) packet "lost" in serial communication mote -> PC

Oliver Frietsch da-mailing-listen at friets.ch
Sun Jun 15 10:41:52 PDT 2008


Ah, that are great news! Thank you!

I haven't fully tested this approach yet, but I already see one problem:
As TOSSIM Live bundles the serial comm. of all nodes to one virtual
connection, all connected serial forwarders will both send and receive all
serial traffic from/to all nodes. This is unwanted in my case.

Node --> PC:
Problem solved. Send the serial messages to the sending node itself and
evaluate the "to" parameter in the java application's messageReceived
method.

PC --> Node:
Problem still open :-( I tried to use the AMPacket interface to determine
the destination of each packet in my Receive.receive handler, but the
field is always zero... Besides, the java message class seems to have no
setter for the destination.

> sim-sf (part of TOSSIM in TinyOS 2.0.2 CVS) supports a
> SerialActiveMessageC -> serial-forwarded connection.
> It works well.
>
> HTH,
> Paul
>
> On Fri, Jun 13, 2008 at 10:30 AM, Oliver Frietsch
> <da-mailing-listen at friets.ch> wrote:
>> Hello list,
>>
>> I'm currently trying to send packets over a serial connection
>> (SerialActiveMessageC and so on) to my PC. As I don't have a real mote,
>> and TOSSIM doesn't seem to simulate a serial port at all, I'm using the
>> latest version of Avrora (1.7.105), in both mica2 and micaz mode, plus
>> TOS 2.0.2 stable.
>>
>> Now here is the problem: I'm able to send packets to the PC, and all of
>> them are received there as expected, however, the simulated mote thinks
>> that every second packet is lost! More precisely, the error parameter of
>> the sendDone event toggles between TRUE and FALSE every call.
>>
>> Is this a known bug? Perhaps limited to Avrora? I couldn't find any
>> information about that. I could just ignore the error parameter, but I
>> feel unhappy with this "solution".
>>
>> Thanks,
>> Oliver
>>
>> P.S.: If it helps, I could also send a short test app that demonstrates
>> the problem.
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help at millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>




More information about the Tinyos-help mailing list