Imported Upstream version 2.6.0
This commit is contained in:
parent
26fb71b504
commit
459aaf9392
510 changed files with 40508 additions and 18859 deletions
|
|
@ -32,22 +32,29 @@
|
|||
#define STAT_OUTPUT "STO"
|
||||
#define STAT_BATTERY "STB"
|
||||
#define STAT_STATUS "STA"
|
||||
#define TEST_RESULT "TSR"
|
||||
#define POWER_ON "RON"
|
||||
#define POWER_OFF "ROF"
|
||||
#define POWER_SDTYPE "SDT" /* shutdown type? */
|
||||
#define POWER_CYCLE "SDA" /* shutdown, then restore */
|
||||
#define BUZZER "BUZ"
|
||||
#define BUZZER_ON "1"
|
||||
#define BUZZER_OFF0 "0" /* Switching the buzzer off can be either 0 or 2 */
|
||||
#define BUZZER_OFF2 "2" /* Seems to be used for F6c1400 */
|
||||
#define TEST "TST"
|
||||
#define TEST_10SEC "3"
|
||||
#define TEST_DEEP "4"
|
||||
#define TEST_CANCEL "0"
|
||||
|
||||
/* The UPS Status "low battery" comes up 10s before the UPS actually stops.
|
||||
Therefore a shutdown is done at this battery % */
|
||||
|
||||
#define LOW_BAT 20
|
||||
|
||||
/* the maximum allowed number of missed replies */
|
||||
#define MAXTRIES 3
|
||||
|
||||
/* dangerous instant commands must be reconfirmed within a 12 second window */
|
||||
#define CONFIRM_DANGEROUS_COMMANDS 1
|
||||
#define MINCMDTIME 3
|
||||
#define MAXCMDTIME 15
|
||||
|
||||
static int init_communication (void);
|
||||
static int init_ups_data (void);
|
||||
static int get_belkin_reply (char*);
|
||||
static void set_serialDTR0RTS1(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue