I read from some posting in this forum, in Unix/Linux all devices are "files". So to read from COM ports you just open and treat it like a "file". The location of most devices are in /dev folder. Take a look inside and you will set lotsa "devices". COM port, PARELLEL port, USB port etc etc.