[Tinyos-help] TelosB UART bug

2008-05-12 Thread olly yuen
Greetings all,

I am currently using TinyOS 2.x and TelosB motes, I tried to write data to the 
UART pins on the expansion header which gets converted to RS232 through a 
conversion kit I have so that I can see the data output on hyperterminal. 
However, I am not seeing anything on hyperterminal. I used UartStream.send to 
send data to my UART pins, when it is idle (not sending) UART TX pin showed 
constant 0V. When signal sent, 0V to 3V square waves are shown. Correct me if I 
am wrong, when UART is at idle stage, shouldn't it be constant 3V? 

Another question...I measured voltage at the UART pins using the scope, I see 
square wave signals, then I probe pin 2 of the female DB9 conenctor on my 
conversion kit, I am seeing 8V to 0V square waves, so I conclude that I am 
getting signals through hardware but for some reason I am not seeing anything 
not even garbage  on  hyperterminal, any  hints??  This is urgent and any help 
will be appreciated...

Thanks!

-Oliver 

_
With Windows Live for mobile, your contacts travel with you.
http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Uart Radio TelosB

2008-05-05 Thread olly yuen
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?

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?

Thanks a lot!



_
Windows Live SkyDrive lets you share files with faraway friends.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_052008___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Serial Communication in C

2008-04-22 Thread olly yuen
Greetings,

I am a newbie currently working on a project which
uses TelosB motes to send packets back and forth. Now I am connecting
one of the motes to an another microcontroller through UART - RS232
connection. Now the question is, I want the microcontroller to be able
to call command moteIF.send() similar to the java version one to send
packets back to the other mote. I used the java version and I manually
turn on the serial forwarder with the right ports to run the
application (on a PC). However, I will not be able to do the same for
this microcontroller since the microcontroller is not connected to a PC
at all. My question is how will I be able to achieve that? Upon
receiving packets from the other side, I want the microcontroller to
call the send function to the connected mote and send packets back. Any
help will be appreciated,

Thank you in advance...
_
Make i'm yours.  Create a custom banner to support your cause.
http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] UART

2008-04-13 Thread olly yuen
Hi,

I am a college student and I am new to TinyOS. I am current using version 2.x 
of TinyOS. I wrote a program which sends radio packets from one telosb mote to 
another. However, the second part of my project is to forward the received 
packet to another microcontroller through UART.
I read something about GenericCom and send data to destination: TOS_UART_ADDR 
but I am still confused about it. Is there a tutorial available which teaches 
me how to write data on the UART pins on the telosb and flush them to the other 
side? or anything that can give me a hint on how it can be done. Thanks!!

Oliver

_
Get in touch in an instant. Get Windows Live Messenger now.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TinyOS Keyboard Input

2008-03-23 Thread olly yuen
Hi Everybody,

I am a student and I am new to TinyOS. I went through the tutorials and I 
notice that TinyOS provides a printf function just like C. I am trying to 
implement a program which takes keyboard input from the user. Is there a scanf 
function which I can use to do that? If not, any other alternatives which I can 
do to provide the same operations?

Thanks,

-Oliver

_
How well do you know your celebrity gossip?
http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help