2009년 6월 28일 일요일

Beginning on the stargate

I think there is a 2nd alternative to using java for sending andreceiving packets from the mote.
If you look at tinyos-1.x/tools/src/sf there are some C files that followthe serial framing protocol used by the motes to send TOS packets over theserial port.
I think this directory contains the implementation of theSerialForwarder is C.
I have only used the serialsource.c and seriallisten.c and compiled themtogether to produce a TinyOS packet dump of the serial port.
So do the following on your PC:

$ cd /tools/src/sf
$ gcc -o seriallisten serialsource.c seriallisten.c
$./seriallisten /dev/ttyUSB0 57600

is where you have installed tinyos (e.g /opt/tinyos-1.x).

- xbow -

댓글 없음:

댓글 쓰기