olly yuen wrote:
> Hi all,
>
> I am a college student working on a design project, I am currently
> trying to modify the Blink program such that upon receiving radio
> packets, I will write data to the UART0 pins. I have a few questions
> because my code doesn't seem to be working right:
>
> I am using TelosSerialP.nc, PlatformSerialC.nc, Msp430Uart0C.nc,
> Msp430Uart0P, and BlinkToRadio.
>
> Question 1: I read something about shared resources for UART and Radio
> for TelosB, is it true that I have to turn off the resource for UART
> while waiting for radio packets and turn off the radio control for UART
> writing? If so, Resource.request() and Resource.release() will do?
the radio stack is already requesting/releasing the resource. therefore
all you have to do is to request the resource for writing data to the
uart and release it after that.
>
> Question 2: I am using UARTStream to write data to the UART0 port, I
> might have some wrong settings on hyperterminal but I am not seeing
> anything. However, I do see signals on the oscilloscope although I don't
> know how to interpret them. For example, I do UartStream.send("1010", 4)
> That should send raw data "1010" string to the Uart0 is that correct?
yes
there is some code that uses UartStream in the contrib dir, where you
can have a look at:
berkeley/tos/lib/print/PrintP.nc
diku/sensinode/tos/platforms/micro4/PlatformStdOutP.nc
ethz/snpk/tos/lib/dsn/DSNP.nc
Roman
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help