wiki:Old/TinyOS/Serial

Version 1 (modified by tripti, 15 years ago) ( diff )

Mote-PC Serial Communication

The basic abstraction for mote-PC communication is a packet source . A packet source is a communication medium over which an application can receive packets from and send packets to a mote. Examples of packet sources include serial ports, TCP sockets, and the SerialForwarder tool. Most TinyOS communication tools take an optional -comm parameter, which allows you to specify the packet source as a string. For example:

node1-2:~# java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:telosb

tells Listen tool to use the serial port /dev/ttyUSB0 at the correct speed for a telosb mote.

Note: See TracWiki for help on using the wiki.