[Tinyos-help] Every second (!!!) packet "lost" in serial communication mote -> PC
Oliver Frietsch
da-mailing-listen at friets.ch
Wed Jun 18 00:41:53 PDT 2008
Note: This is my second answer to this mail, but I think the first one
has got lost...
---------------
Hello Paul,
that are great news. I tested TOSSIM Live and found the serial port
working. However, the large disadvantage I see is that all serial ports
of the simulated nodes are mapped to a single TCP/IP connection. This
way, it is hard to connect to individual nodes with different java clients.
I was able to filter incoming packets on the java side by sending the
serial packets on the node to the node itself. This way, the "to"
parameter in the java application will contain the sending node's id.
The other way round is still a problem for me. Even though I send a
packet to a single node from java, the constructed AM packet does not
contain this destination on the node - the destination field is always
zero :-(
Any ideas? Have I misunderstood something?
Thanks,
Oliver
Paul Stickney schrieb:
> 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