$this->_device = "/dev/ttyS0"; $this->_dHandle = fopen($this->_device, "wb"); $this->_buffer = stream_get_contents($this->d_Handle);