to read and to manage data coming from serial/usb port