![]() ![]() For Windows/Cygwin platforms, it is COM N, where N is the port number. The syntax for a serial port source is as depends on your platform and where you have plugged the mote in. So let's specify the serial port as the source, using the -comm parameter as described above. Since you don't have a SerialForwarder running, TestSerial will exit, complaining that it can't connect to one. (the current directory) in your Java CLASSPATH.īecause you haven't specified a packet source, TestSerial will fall back to a default, which is a SerialForwarder. It means that you either haven't compiled the Java code (try running make platform again) or you don't have. This is built when you build the TinyOS application. Once you have installed TestSerial, you need to run the corresponding Java application that communicates with it over the serial port. This application sends a packet to the serial port every second, and when it receives a packet over the serial port it displays the packet's sequence number on the LEDs. ![]() The first step to testing your serial port is to install the apps/tests/TestSerial application on a mote. $ java -comm Listen to use the serial port /dev/ttyS0 (on a UNIX machine) at the correct speed for a micaz mote. $ java -comm the Listen tool to use the COM1 serial port (on a Windows machine) at the correct speed for a telos mote, while Most TinyOS communication tools take an optional -comm parameter, which allows you to specify the packet source as a string. Examples of packet sources include serial ports, TCP sockets, and the SerialForwarder tool. A packet source is exactly that: a communication medium over which an application can receive packets from and send packets to a mote. The basic abstraction for mote-PC communication is a packet source. ![]() Telos motes also have a serial interface, but it talks to their USB hardware, which is similar in functionality but very different in terms of cables and connectors. For example, the mica family can directly control a serial port: programming boards basically connect the mote's serial port pins to the actual serial port on the board. Most motes have a serial port or similar interface. The first step is to check that you are able to get your PC to communicate with a mote.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |