[Tinyos-help] help needed with UartByte
kosti.lepojarvi at gmail.com
Wed Nov 24 04:46:41 PST 2010
I'm using Zolertia Z1 mote and my goal is to use UART0-port to read values
from external frequency converter with modbus. (there's MAX232 -circuit
connected to UART-port and after that RS-232/485 converter, which connects
to external frequency converter.
However, I'm confused with how to configure Uart speed parity and so on..
with my *C.nc -file I declare (only relevant parts mentioned)
uses interface UartStream as Uart;
uses interface UartByte as Byte;
and with *AppC.nc -file there is
components new Msp430Uart0C() as Uart;
components new Msp430Uart0C() as Byte;
components PlatformSerial() as Plat;
App.Uart -> Uart;
App.Byte -> Byte;
I've implemented all the events UartByte and stream require, but I'm not
configure serial connection speed etc. and because of that I can't get
I tried to use Msp430UartConfigure -interface as well, but it always ended
up with compiling mistakes.
Also I wonder, what's the purpose of UartControl -interface, since it's not
mentioned often at the forum...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tinyos-help