There is a ListenRaw.java program that prints everything it gets.
It still looks for sync bytes but only uses them for formatting.
It only connects to a serial port though.
You can use that as an example to make an even simpler listener.

I'm not sure what you mean by "when characters sent to the UART
are resend to the tcp port". What is resending? All programs in
the standard TOS expect a TOSMsg-like structure and reject
anything that doesn't look right. If your mote is writing to a raw
UART port you can't use any of the TOS programs to read it.

MS

rodolfo de paz wrote:
> Hi,
> 
> Is there any Listen application in which all bytes sent to the tcp port 
> are printed out?
> 
> I have the problem that the default listen application checks for a 
> specific packet format. So, when characters sent to the UART are resend 
> to the tcp port the application  goes to Packetizer where it stops in 
> the readProtocolPacket(int packetType, long deadline) function waiting 
> for a new packet.
> 
> I think that this new packet never arrives because i am just sending a 
> default message like printfUART("Hello") instead of a Tinyos message.
> 
> Could anybody help me, please?
> 
> ----
> Rodo
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to