>I want a program that can easily implement a protocol; for example, >PC sends "/p", device responds with a sequence of bytes, which are >translated by the program into pairs of tab-separated words, with a >carriage return behind each pair. What kind of words ? Under any Unix you have a lot of tools that can do such things. One of them is od, another would be awk. It is also trivial to write C (using lex or flex) or Perl or other script code to do that. Peter -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.