-
Notifications
You must be signed in to change notification settings - Fork 0
/
deviceid.go
122 lines (119 loc) · 2.23 KB
/
deviceid.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package mxio
type deviceid uint16
var names = map[uint16]string{
// ioLogik 400/4200
0x4010: "NA-4010",
0x4020: "NA-4020",
0x4021: "NA-4021",
0x4200: "E4200",
0x1400: "M-1400",
0x1401: "M-1401",
0x1800: "M-1800",
0x1801: "M-1801",
0x1600: "M-1600",
0x1601: "M-1601",
0x1450: "M-1450",
0x1451: "M-1451",
0x2400: "M-2400",
0x2401: "M-2401",
0x2800: "M-2800",
0x2801: "M-2801",
0x2600: "M-2600",
0x2601: "M-2601",
0x2402: "M-2402",
0x2403: "M-2403",
0x2404: "M-2404",
0x2405: "M-2405",
0x2250: "M-2250",
0x2254: "M-2254",
0x3400: "M-3400",
0x3401: "M-3401",
0x3402: "M-3402",
0x3403: "M-3403",
0x3410: "M-3410",
0x3411: "M-3411",
0x3412: "M-3412",
0x3413: "M-3413",
0x3414: "M-3414",
0x3415: "M-3415",
0x6200: "M-6200",
0x6201: "M-6201",
0x4201: "M-4201",
0x4202: "M-4202",
0x4210: "M-4210",
0x4211: "M-4211",
0x4212: "M-4212",
0x2450: "M-2450",
0x3802: "M-3802",
0x3810: "M-3810",
0x4402: "M-4402",
0x4410: "M-4410",
// ioLogik 2000
0x2210: "E-2210",
0x2211: "E-2210V2",
0x2240: "E-2240",
0x2241: "E-2240V2",
0x2110: "R-2110",
0x2140: "R-2140",
0x2212: "E-2212",
0x2260: "E-2260",
0x2214: "E-2214",
0x2242: "E-2242",
0x0154: "E2242-T",
0x2262: "E-2262",
// ioLogik 5000
0x5340: "W-5340",
0x5312: "W-5312",
0x100: "W5340T",
0x101: "W5312T",
0x102: "W5340Expasion",
0x103: "W5312Expasion",
0x106: "W5340-HSDPA",
0x107: "W5312-HSDPA",
0x109: "W5340-HSDPA-T",
0x10A: "W5312-HSDPA-T",
// ioLogik 1200
0xE210: "E-1210",
0x50: "E-1210-T",
0xE211: "E-1211",
0x51: "E-1211-T",
0xE212: "E-1212",
0x52: "E-1212-T",
0xE214: "E-1214",
0x53: "E-1214-T",
0xE240: "E-1240",
0x54: "E-1240-T",
0xE241: "E-1241",
0x55: "E-1241-T",
0xE242: "E-1242",
0x56: "E-1242-T",
0xE260: "E-1260",
0x57: "E-1260-T",
0x0059: "E-1261-WP-T",
0xE262: "E-1262",
0x58: "E-1262-T",
0x340: "E1261H",
0x341: "E1261H-T",
0x342: "E1263H",
0x343: "E1263H-T",
0x5B: "E-1213",
0x5C: "E-1213-T",
// ioLogik 1500
0x220: "E-1510",
0x221: "E-1510-T",
0x222: "E-1512",
0x223: "E-1512-T",
// ioLogik R1000
0x230: "R1210",
0x232: "R1212",
0x234: "R1214",
0x235: "R1240",
0x236: "R1241",
}
func (d deviceid) String() string {
n, ok := names[uint16(d)]
if !ok {
return "Unknown"
}
return n
}