look at the BaseStation code. That is exactly what it does. There is some header rewriting because the packet formats on the radio vs. serial line are different.
On Sat, Aug 18, 2012 at 4:22 AM, WSNDeveloper WSN <[email protected]>wrote: > Hi guys, > > I am trying to get data from UART0 in Telosb and then send this data via > Radio to basestation. In order to do this, I have tested Uart0 > communication without Radio components in the code and worked fine. A > sucessful result was also gotten when I tried just with Radio components > (without using UartStream components). But when I try to call > UartStream.send() after a command via Radio is received by Telosb I can not > see any byte sent from the mote via Uart0. > > I have read a lot of threads in TinyOS e-mail list but I continue without > having very clear how I should use Resource component and when I should > call the Resource methods. > > I have been using in my program UartStream and Resource components as I > did with Uart previous program but it does not work now with Radio > communication. > > Any example in which makes use of Resource and UartStream interfaces with > Radio communication would be really appreciated. > > Thanks in advance. > WK > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
