-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-info.html
More file actions
173 lines (141 loc) · 6.03 KB
/
get-info.html
File metadata and controls
173 lines (141 loc) · 6.03 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<script type="text/javascript">
RED.nodes.registerType('get-info',{
category: 'TC Router',
color: '#a6bbcf',
defaults: {
router: {required: true, type: "tc-router"},
name: {value:"get info"}
},
inputs:1,
outputs:1,
icon: "font-awesome/fa-info",
label: function() {
return this.name||"get-info";
}
});
</script>
<script type="text/x-red" data-template-name="get-info">
<div class="form-row">
<label for="node-input-router"><i class="icon-globe"></i> TC Router</label>
<input type="text" id="node-input-router"></input>
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="get-info">
<p>Retrieves status information from a TC Router</p>
<h3>Input</h3>
<p>This node requires a simple input trigger such as a timestamp inject in order to poll the TC Router for the information listed in the output section</p>
<h3>Output</h3>
<p>A succesful response from the TC Router returns a JSON object with the following properties. Each property below has a "value" property which must be accessed to return the actual value.</p>
<h2><b>device</b></h2>
<dl class="message-properties">
<dt>serialno
<span class="property-type">string</span>
</dt>
<dd>Serial number of the device</dd>
<dt class="optional">hardware
<span class="property-type">string</span>
</dt>
<dd>Hardware revision of the device</dd>
<dt class="optional">firmware
<span class="property-type">string</span>
<dd>Firmware revision of the device</dd>
<dt class="optional">wbm
<span class="property-type">string</span>
</dt>
<dd>Revision of the web based management GUI</dd>
</dl>
<h2><b>radio</b></h2>
<dl class="message-properties">
<dt>provider
<span class="property-type">string</span>
</dt>
<dd>Cellular provider</dd>
<dt>rssi
<span class="property-type">number</span>
</dt>
<dd>RSSI in integer format</dd>
<dt>rssiDBM
<span class="property-type">string</span>
</dt>
<dd>RSSI in string format with units of DBM</dd>
<dt>creg
<span class="property-type">number</span>
</dt>
<dd>Status of registration in the cellular network in its raw form from the device</dd>
<dt>cregString
<span class="property-type">string</span>
</dt>
<dd>Status of registration in the cellular network in the decoded string format</dd>
<dt>lac
<span class="property-type">string</span>
</dt>
<dd>Location Area Code (LAC) of the device in a cellular network (hexadecimal number, maximum of 4 digits)</dd>
<dt>ci
<span class="property-type">string</span>
</dt>
<dd> Cell ID, unique identification of the radio cell within the LAC (hexadecimal number, maximum of 8 digits)</dd>
<dt>packet
<span class="property-type">number</span>
</dt>
<dd>Internet data status in raw integer format from the device (decimal number 0 ... 8)</dd>
<dt>packetString
<span class="property-type">string</span>
</dt>
<dd>Internet data status in its decoded string format</dd>
<dt>simstatus
<span class="property-type">number</span>
</dt>
<dd>Status of the SIM card (decimal number 0 ... 5)</dd>
<dt>simstatusString
<span class="property-type">string</span>
</dt>
<dd>Status of the SIM card in its decoded string format</dd>
<dt>simselect
<span class="property-type">number</span>
</dt>
<dd>Undocumented</dd>
</dl>
<h2><b>inet</b></h2>
<dl class="message-properties">
<dt>ip
<span class="property-type">string</span>
</dt>
<dd>IP address of the packet data connection on the Internet</dd>
<dt>rx_bytes
<span class="property-type">number</span>
</dt>
<dd>Number of data bytes received so far (decimal number 0 ... 4294967295)</dd>
<dt>tx_bytes
<span class="property-type">number</span>
</dt>
<dd>Number of data bytes transmitted so far (decimal number 0 ... 4294967295)</dd>
<dt>mtu
<span class="property-type">number</span>
</dt>
<dd>Maximum Transmission Unit (MTU), the maximum packet size, in bytes, in the packet data network (decimal number 128 ... 1500)</dd>
</dl>
<h2><b>io</b></h2>
<dl class="message-properties">
<dt>gsm
<span class="property-type">array[String]</span>
</dt>
<dd>Status of the GSM/UMTS connection</dd>
<dt>inet
<span class="property-type">array[String]</span>
</dt>
<dd>Status of the internet connection</dd>
<dt>vpn
<span class="property-type">array[String]</span>
</dt>
<dd>Status of the vpn tunnel</dd>
</dl>
<h3>References</h3>
<ul>
<li><a href="https://zmink.gitbook.io/node-tcrouter/">Setup Guide</a> - setup guide</li>
<li><a href="https://github.com/PhoenixContactUSA/node-red-contrib-tcrouter">GitHub</a>Github repo</li>
</ul>
</script>