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ó <bband...@gmail.com> > Hi, > > On Sun, Feb 12, 2012 at 12:17 PM, Sergio Valcarcel <serteck...@gmail.com> > 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, <aca...@correo.ugr.es> 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 > >> Tinyos-help@millennium.berkeley.edu > >> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > > > _______________________________________________ > > Tinyos-help mailing list > > Tinyos-help@millennium.berkeley.edu > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help