search for: ser_get_buf

Displaying 2 results from an estimated 2 matches for "ser_get_buf".

2009 Jan 27
0
[PATCH] al175: updated driver, please restore it
...t to read all data in one large chunk. It's really beyond me why you don't just read the (fixed length) data header, determine how many data characters will follow based on information in this header, read exactly that number of characters and then read the closing characters: ser_get_buf(<header>) parse header data ('n' bytes) ser_get_buf(<read 'n' bytes>) calculate checksum ser_get_buf(<checksum and closing characters>) compare checksum The reason for being so picky on the above issues, is that we already have far too m...
2011 Sep 19
1
[windows port] blazer_ser issues, select_read() from serial semantics
Hi, I tried using 2.6.1 version for windows with a Megatec-compatible UPS and was surprised to find out it doesn't work at all. The reason for that is blazer_ser using ser_get_buf specifying a buffer large enough to accept any reasonably possible response, setting buflen accordingly. That calls select_read() and it's supposed to wait until something is available and then to read up all the data from port, returning the number of bytes read. But the windows version appare...