Hi, I get an error trying to read /dev/iio:device0 in a custom application (C/C++), however in a terminal the command "cat /dev/iio_device0" return data. Below the procedure: - enable channels - setup trigger - setup buffer lenght - enable buffer (the SPI interrupt is setup properly and all the trigger handler are done) - read /dev/iio_device0 It's a SPI device acquiring 27 bytes @ 1KHz. Results: 1. Custom application (based on generic_buffer.c): function 'read' return -1 and strerror(errno) return "Invalid argument" 2. iio_readdev (libiio): show the message "Unable to refill buffer: Input/output error" 3. In terminal, the command "cat /dev/iio_device0" show values (no readable) while the buffer is enable. Any suggestion? Thanks for your help! -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html