Hi,

I have cleaned up the serial layer for SCPI, to make it work with SCPI 
definite length block requests.

The first patch is just generic cleanup.

The second patch removes the newline stripping from the serial layer, as it 
corrupts data for the binary block requests, and is not necessary, as newline 
stripping is done in sr_scpi_get_string in a central place.

The third patch factors out the actual data fetching and timeout handling from 
sr_scpi_get_data, and calls it from the appropriate places in sr_scpi_get_data 
and sr_scpi_get_block. As the latter requires partial and nonblocking fetches, 
it can not call sr_scpi_get_data.

Please review and pull the changes from:

https://github.com/StefanBruens/libsigrok/tree/fix_scpi_get_block_for_serial

The changes have been tested with hameg_hmo/HMO1002 over serial and network.

Kind regards,

Stefan
-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019
work: +49 2405 49936-424

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to