I've just followed T2 tutorial 4, substituting using the new c++ serial
forwarder and get good results according to it's info command:
info 2
>> info for sf-server with id = 2 ( port = 9002 , device =
/dev/ttyUSB0 , baudrate = 115200 )
>> SF-Server ( TCPComm on port 9002 ) : clients = 1 , packets
read = 329 , packets written = 355
>> SF-Server ( SerialComm on device /dev/ttyUSB0 ) :
baudrate = 115200 , packets read = 355 ( dropped = 0, bad = 0 ) ,
packets written = 329 ( dropped = 0, total retries: 0 )
I compiled with g++ (GCC) 4.0.4 on xubuntos, and compiled my telosb code
with gcc (GCC) 4.0.4. Is that a good version of gcc g++ to be using, or
is 4.1 or 3.4 a better match?
I had started the serial forwarder with port 9001, but the java
TestSerial program defaulted to port 9002. That could be mentioned in
the tutorial to let it cover this sf also... I used the stop command,
then
start 9002 /dev/ttyUSB0 115200
tutorial 4 now:
------------------
The first step is to run a SerialForwarder; since it takes one packet
source and exports it as an sf source, it takes a packet source
parameter just like the other tools we've used so far: you can pass a
-comm parameter, use MOTECOM, or just rely on the default.
---------------
should be
-------------
The first step is to run a SerialForwarder such as java
net.tinyos.sf.SerialForwarder, or the c++ serial forwarder of
tinyos-2.x/support/sdk/cpp/sf. Since the java serial forwarder takes
one packet source and exports it as an sf source, it takes a packet
source parameter just like the other tools we've used so far: you can
pass a -comm parameter, use MOTECOM, or just rely on the default.
Start the c++ serial forwarder with no arguments, ( ./sf ), then type
help for syntax to add control-port and serial device and baud rate
specifications.
----------------
I suppose the new sf is compatible with java net.tinyos.tools.MsgReader
and others, but I've just tried java TestSerial and java
net.tinyos.tools.Listen so far.
What's the state of the Harvard python tools now?
thanks,
John Griessen
Ecosensory
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help