[Tinyos-help] Using SerialActiveMessageC with a different UART (on TinyOS 2.x)
Simgi Dacav
simgidacav at gmail.com
Thu Sep 4 05:21:03 PDT 2008
Hi Cian
Tue, 5 Aug 2008 00:29:44 +0100; Cian Hughes <Ci at nHugh.es> wrote:
> I have successfully set up a Shimmer and am running the TestSerialApp
> on it, communicating with my PC on Uart0, the default platform serial
> port.
> However I would like the application to simultaneously communicate on
> Uart1 also using SerialActiveMessageC. I cannot seem to figure out how
> to reconfigure the Uart used by an instance of SerialActiveMessageC.
>
We engaged the same problem some days ago! We are working on a Msp430
architecture, but I suppose that your problem is quite similar, even if you
haven't specified your architecture...
However, as you can see here[1], the SerialActiveMessageC is based on the
SerialDispatcherC component[2], that's based on PlatformSerialC[3].
The latter is based on Msp430Uart1C, that provides access to the Uart1
through UartByte and UartStream interfaces. By replacing it witm Msp430Uart0C
you can choose the Uart component.
Be careful: I've found out that the reference manual isn't complete! You
may need to check your installation directory tree!
Regards
Giovanni
[1]
http://www.tinyos.net/dist-2.0.0/tinyos-2.0.2/doc/nesdoc/telosb/chtml/tos.lib.serial.SerialActiveMessageC.html
[2]
http://www.tinyos.net/dist-2.0.0/tinyos-2.0.2/doc/nesdoc/telosb/chtml/tos.lib.serial.SerialDispatcherC.html
[3]
http://www.tinyos.net/dist-2.0.0/tinyos-2.0.2/doc/nesdoc/telosb/chtml/tos.platforms.telosa.PlatformSerialC.html
More information about the Tinyos-help
mailing list