シリアルポート(RS-232C)の直接読み書きに使えそうなもの.
  • Linux: ioctl(), termios.h, upsd のソース
  • Windows: GetCommModemStatus(), EscapeCommFunction(), 参考サイト
    1 2