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
$ gcc -o seriallisten serialsource.c seriallisten.c
$./seriallisten /dev/ttyUSB0 57600
- xbow -