Hi. After building the latest (0.8) release on Raspberry Pi, I'm trying to get a reading with Mastech thermometer, and getting the following: ~ $ LD_LIBRARY_PATH=/home/<>/sr/lib /home/<>/sr/bin/sigrok-cli --driver mastech-ms6514:conn=/dev/ttyUSB0 --samples 1 sr: serial: Small stream detect RX buffer, want 2x packet size. No devices found. The device itself is connected and working perfectly with another program.
This issue is unrelated to libserialport. It's an issue in the libsigrok driver for this device. The driver's scan() routine uses too small a buffer when it tries to synchronize to the serial data stream which communicates packets of a fixed size. The error message suggests that the buffer size should be at least two times the size of the expected receive data. The MS6514 may be a special case since multiple displays are involved, so I don't know of a simple and reliable fix that'd be appropriate. Can you raise the driver author's awareness of this issue?
Could you put him on CC List of this bug report? Dave Buechi <db@pflutsch.ch>