~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to drivers/sms.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2004-05-28 13:10:01 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040528131001-yj2m9qcez4ya2w14
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* sms.h - model capability table
 
2
 
 
3
   This code is derived from Russell Kroll <rkroll@exploits.org>,
 
4
   Fenton UPS Driver
 
5
 
 
6
   Copyright (C) 2001  Marcio Gomes  <tecnica@microlink.com.br>
 
7
   Copyright (C) 1999  Russell Kroll <rkroll@exploits.org>
 
8
 
 
9
   This program is free software; you can redistribute it and/or modify
 
10
   it under the terms of the GNU General Public License as published by
 
11
   the Free Software Foundation; either version 2 of the License, or
 
12
   (at your option) any later version.
 
13
 
 
14
   This program is distributed in the hope that it will be useful,
 
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
   GNU General Public License for more details.
 
18
 
 
19
   You should have received a copy of the GNU General Public License
 
20
   along with this program; if not, write to the Free Software
 
21
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
22
 
 
23
   Not possibile only add SMS models to fentonups, the id strings are
 
24
   recived from ups in different orders.. 
 
25
 
 
26
   2001/05/17 - Version 0.10 - Initial release
 
27
   2001/06/01 - Version 0.20 - Add Battery Informations in driver
 
28
   2001/06/04 - Version 0.30 - Updated Battery Volts range, to reflect a correct                               percent ( % )
 
29
   2002/12/02 - Version 0.40 - Update driver to new-model, based on Fentonups
 
30
                               driver version 0.90
 
31
   2002/12/18 - Version 0.50 - Add Sinus Single 2 KVA in database, test with
 
32
                               new Manager III sinusoidal versions.
 
33
                               Change Detect Name, SMS do not pass real Models
 
34
                               in Megatec Info command, only the VA/KVA version
 
35
   2002/12/18 - Version 0.51 - Updated Battery Volts range, to reflect a correct                               percent ( % )
 
36
   2002/12/27 - Version 0.60 - Add new UPS Commands SDRET, SIMPWF change BTEST1
 
37
   2002/12/28 - Version 0.70 - Add new UPS Commands SHUTDOWN,STOPSHUTD,WATCHDOG
 
38
 
 
39
   Microlink ISP/Pop-Rio contributed with MANAGER III 1300, MANAGER III 650 UPS
 
40
   and Sinus Single 2 KVA for my tests.
 
41
 
 
42
   http://www.microlink.com.br and http://www.pop-rio.com.br  
 
43
 
 
44
 
 
45
*/
 
46
 
 
47
struct {
 
48
        char    *mtext;
 
49
        char    *desc;
 
50
        float   lowvolt;
 
51
        float   voltrange;
 
52
        int     lowxfer;
 
53
        int     lownorm;
 
54
        int     highnorm;
 
55
        int     highxfer;
 
56
        int     has_temp;
 
57
}       
 
58
 
 
59
/*
 
60
 
 
61
#mtext lowvolt voltrange lowxfer lownorm highxfer highnorm 
 
62
 
 
63
 
 
64
        0         1         2        3
 
65
        012345678901234567890123567890123456789
 
66
        #SMS LTDA         1300 VA   VER 1.0
 
67
        #SMS LTDA        1300VA SEN VER 5.0
 
68
        #SMS LTDA             2 KVA   VER 1.0
 
69
 
 
70
Manager III 650 Senoidal are detected like Manager III 1300 VA Senoidal
 
71
UPS.  I think are problems in Ver 5.0 SMS Firmware 
 
72
 
 
73
*/
 
74
 
 
75
 
 
76
 
 
77
       modeltab[] = 
 
78
{
 
79
{" 650",      "Manager III 650 VA" ,             9.6, 3.8, 86, 105, 133, 140,1},
 
80
{" 1300 VA",  "Manager III 1300 VA",             9.6, 3.8, 86, 105, 133, 140,1},
 
81
{"1300VA SEN","Manager III 650/1300VA Senoidal", 9.6, 3.7, 86, 105, 133, 140,1},
 
82
{"     2 KVA","Sinus Single Senoidal 2 KVA",     9.6, 3.7, 86, 105, 133, 140,1},
 
83
{ NULL,    NULL,                  0, 0,   0,   0,   0,   0, 0 }
 
84
};