search for: ser_get_line_alert

Displaying 6 results from an estimated 6 matches for "ser_get_line_alert".

2008 Oct 30
1
Adding debugging information in serial.c
...s. For the ser_get_char() and ser_get_buf_len() we might do this by changing the return value. For the first, return value -1 would be an error, 0 a timeout and 1 success. The latter could return -1 on error, between 0 and (buflen-1) for a timeout and buflen for success. Unfortunately, the ser_get_line_alert() and ser_get_line() functions don't have a fixed number of bytes (this is determined by the endchar). So we can no longer check if an endchar was received. Bad idea. I'd prefer to add a couple of upsdebug statements in the serial.c library instead. This would leave the interface i...
2007 Dec 02
1
Driver bestfcom - Timing problem with Fortress LI1420
Hi, my UPS is a Best Fortress LI1420 with the monitoring master running fedora 7. I have to replace the manufacturer's software "Checkups II" because it's not working with releases after fc4. My choice is the nut package. But it isn't just installing rpm's and configure the parameter files. ? The first hurdle to take was realising the UPS doesn't send a prompt.
2008 Feb 08
0
[nut-commits] svn commit r1285 - in trunk: . common include
...uires casting to an unsigned char. > > Modified: > trunk/ChangeLog > trunk/common/common.c > trunk/include/common.h > > Modified: trunk/ChangeLog I would like to do something similar to the following ser_* functions: ser_send_buf ser_send_buf_pace ser_get_buf_len ser_get_line_alert ser_get_line Many drivers currently 'suffer' from compiler signedness warnings. We could do away with these by typecasting everything to the 'correct' type, but I think this is unwanted (and sometimes even counter productive). There is not much point in making explicit that *buf a...
2016 Jan 28
0
Patching CyberPower UPS drivers
...lence. > Anyway -- in rewriting this, the only part I have left to do to where I'm happy is setting the timeout. > > Instead of asking for N number of chars and then timing out after a long time, I'd like to ask it for a string (up to the 0x0D). There are also ser_get_line() and ser_get_line_alert(): https://github.com/networkupstools/nut/blob/master/drivers/serial.c#L369 Not sure if there was a specific reason why those weren't used originally, or if this driver predates them. > I haven't written that in yet, but will if someone says there's another way -- or I have to do...
2011 Mar 12
2
[RFC/PREVIEW] Move apcsmart driver to canonical processing + minor stuff
Inital tests with two apc units (2005 and pre-2000) seem to go well. See commit message for details. I'll add more detailed rationale after getting some sleep :) Michal Soltys (1): apcsmart: switch processing to ICANON + minor fixes drivers/apcsmart.c | 270 +++++++++++++++++++++++++++++++++++----------------- drivers/apcsmart.h | 127 ++++++++++++++++--------- 2 files changed, 267
2016 Jan 19
5
Patching CyberPower UPS drivers
Hey there, I got a new UPS (CyberPower PR1500LCDRTXL2Ua) and found the serial drivers don't quite work... So I decided to jump in and make changes to the driver that would hopefully make it happier. I have it working (I really only changed powerp-txt.c) but still have a couple questions... Charles said I should mention them here to talk to anyone interest but specifically Arjen (one of