... or I don't know how to catch it. How to reproduce : plug an arduino in at /dev/ttyACM1 , begin reading data, disconnect the arduino. I get : Error: ENODEV, No such device at var bytes_read = serialport_native.read(file_id,buffer);