Hi,

If SerialForwarder is not receiving anything it is a bit weirder.

As András pointed out you may have to check how you are using the
SerailActveMessageC, SerialAMSenderC and SerialAMReceiverC components. For
instance, try debugging with one led when the SerialAMSenderC.senDone is
triggered (e.g. green if success,  red if not) and check whether the
SerialForwarder is coherent with the leds.

Good luck!
Sergio


2012/2/12 Sergio Valcarcel <[email protected]>

> Hi,
>
> About the original problem: Listen waits for very specific message
>> format (framed, escaped, checksumed, and it has a header). You should
>> use SerailActveMessageC/SerialAMSenderC/SerialAMReceiverC, which
>> generates this format.
>
>
> This is exactly what I meant :-)
>
>
>
> 2012/2/12 András Bíró <[email protected]>
>
>> Hi,
>>
>> On Sun, Feb 12, 2012 at 12:17 PM, Sergio Valcarcel <[email protected]>
>> wrote:
>> > Hi,
>> >
>> > I have not used Tiny OS for many months now, but I do not quite
>> remember to
>> > use the command directly.
>> > I think that when using that class you are launching a thread for
>> listening.
>> > But you also need another class to set what you want to do with the
>> incoming
>> > packets.
>>
>> That's not true. You can bridge the serial communication to a TCP
>> server with SerialForwarder, but Listen can also connect directly to
>> the serial port. Connecting an app directly to a serial port has one
>> problem: You can only use one program  per serial, while you can use
>> many clients with one TCP server.
>>
>> About the original problem: Listen waits for very specific message
>> format (framed, escaped, checksumed, and it has a header). You should
>> use SerailActveMessageC/SerialAMSenderC/SerialAMReceiverC, which
>> generates this format.
>>
>> Andris
>>
>> >
>> > But I insist that I am not quite sure now...
>> >
>> > Cheers!
>> > Sergio
>> >
>> >
>> > On Sat, Feb 11, 2012 at 10:06 PM, <[email protected]> wrote:
>> >>
>> >> Hello.
>> >>
>> >> I am reading from the terminal some values using UARTstream (with
>> telosb)
>> >>
>> >> I can read ok using the cu program:
>> >>
>> >>
>> >> cu -l /dev/ttyUSB0 -s 115200
>> >>
>> >> Because uart is configured with 115200 baudrate
>> >>
>> >> But when I try to read using this command:
>> >>
>> >> java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:115200
>> >>
>> >> Don't appear nothing, only is in idle state.
>> >>
>> >>
>> >> Please someone could give an advice about this issue?
>> >>
>> >> Thanks in advance.
>> >>
>> >> Alejandro.
>> >>
>> >>
>> >> _______________________________________________
>> >> 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
>>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to