[Tinyos-help] help needed with UartByte

Kosti Lepojärvi kosti.lepojarvi at gmail.com
Wed Nov 24 04:46:41 PST 2010


Hello.


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
able to
configure serial connection speed etc. and because of that I can't get
connection working
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...

best regards
Kosti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20101124/c1f62bf1/attachment.htm 


More information about the Tinyos-help mailing list