]> sigrok.org Git - libsigrok.git/commit
serial-lcr: also request packets before initial state retrieval
authorGerhard Sittig <redacted>
Sun, 23 Jun 2019 06:19:39 +0000 (08:19 +0200)
committerUwe Hermann <redacted>
Wed, 31 Jul 2019 13:23:03 +0000 (15:23 +0200)
commit66c300c4a698ee1aeeefbf11710ae1d1de3d040a
tree78cf2dbe51521f23feaefbd2396e549c36ffb05b
parentc4d2e6fa5ee4f238afc6a91df9c0362281b213ce
serial-lcr: also request packets before initial state retrieval

Commit cb5cd1538f5d introduced packet request support in the serial-lcr
device driver. Calls were added to the detection of the device's
presence, and the periodic acquisition of measurement data. Add another
call to the device configuration retrieval that follows the presence
detection, without it communication timed out with no data received.

Also slightly raise the timeout for this device configuration gathering
phase. With one second sharp, the VC4080 was detected, but getting its
current configuration kept failing. This device's serial communication
is extra slow (1200 bps) and the packets are rather large (39 bytes).
Which made the stream detect's receive routine stop checking for the
availability of more data while a packet was being received.
src/hardware/serial-lcr/api.c