Modified function serialReader for Linux system. Data received are stored in an int buffer and sent to JS through an int vector.