Changes between Version 3 and Version 4 of Old/TinyOS/Serial
- Timestamp:
- Dec 24, 2008, 1:19:24 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/TinyOS/Serial
v3 v4 1 1 == Mote-PC Serial Communication == 2 2 3 The receivers receive packets from senders and pass them on to the serial port. Tinyos provides two java tools ( Listen and MsgReader) to print the messages on the PC console.3 The receivers receive packets from senders and pass them on to the serial port. Tinyos provides two java tools ( "Listen" and "MsgReader" ) to print the messages on the PC console. 4 4 {{{ 5 5 … … 31 31 32 32 33 MsgReader is a better alternative to Listen. The MsgReader class takes a java message class (provided by the user) as an argument. It prints receives the packets from the serial port and prints the packet structure defined by the java message class.33 MsgReader is a better alternative to Listen. The MsgReader class takes a java message class (provided by the user) as an argument. It prints the packet structure defined by the java message class on the console. 34 34 35 35 {{{ … … 39 39 }}} 40 40 41 MsgReader reads the packet send to the serial port, looks at its AM type, and if it matches the AM type of one of the Java message classes passed at the command line, it prints out the packet.We see the output like this:41 We see the output like this: 42 42 43 43 {{{