@ncd-io/node-red-enterprise-sensors 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/WirelessGateway.js +23 -3
- package/package.json +1 -1
- package/wireless.html +183 -179
- package/wireless.js +9 -10
package/lib/WirelessGateway.js
CHANGED
|
@@ -62,7 +62,7 @@ module.exports = class WirelessSensor{
|
|
|
62
62
|
var new_mode = is_new;
|
|
63
63
|
var mode = (type == 'power_up') ? data.mode : ((type == 'sensor_data') ? 'RUN' : ((type == 'config_ack') ? 'ACK' : 'PGM'));
|
|
64
64
|
// #OTF
|
|
65
|
-
var otf_devices = [80,81,82,84,101,102,519,520];
|
|
65
|
+
var otf_devices = [80,81,82,84,89,101,102,519,520];
|
|
66
66
|
var device_type = msbLsb(frame.data[6], frame.data[7]);
|
|
67
67
|
// var device_type = frame.data[7];
|
|
68
68
|
|
|
@@ -201,7 +201,7 @@ module.exports = class WirelessSensor{
|
|
|
201
201
|
};
|
|
202
202
|
|
|
203
203
|
// #OTF
|
|
204
|
-
var otf_devices = [80,81,82,84,101,102,519,520];
|
|
204
|
+
var otf_devices = [80,81,82,84,89,101,102,519,520];
|
|
205
205
|
if(otf_devices.includes(parsed.sensor_type)){
|
|
206
206
|
// If the message says FLY and there is not FLY timer in progress.
|
|
207
207
|
if(payload[8] == 70 && payload[9] == 76 && payload[10] == 89) {
|
|
@@ -4613,7 +4613,27 @@ function sensor_types(parent){
|
|
|
4613
4613
|
}
|
|
4614
4614
|
}
|
|
4615
4615
|
},
|
|
4616
|
-
|
|
4616
|
+
'89': {
|
|
4617
|
+
name: '2 Channel Ultrasound Vibration Sensor',
|
|
4618
|
+
parse: (d) => {
|
|
4619
|
+
return {
|
|
4620
|
+
c1_raw_adc: d.slice(0, 2).reduce(msbLsb),
|
|
4621
|
+
c1_ma: d.slice(2, 4).reduce(msbLsb) / 100,
|
|
4622
|
+
c1_db: d.slice(4, 6).reduce(msbLsb) / 100,
|
|
4623
|
+
c2_raw_adc: d.slice(6, 8).reduce(msbLsb),
|
|
4624
|
+
c2_ma: d.slice(8, 10).reduce(msbLsb) / 100,
|
|
4625
|
+
c2_db: d.slice(10, 12).reduce(msbLsb) / 100
|
|
4626
|
+
};
|
|
4627
|
+
}
|
|
4628
|
+
},
|
|
4629
|
+
'92': {
|
|
4630
|
+
name: 'Sound Sensor',
|
|
4631
|
+
parse: (d) => {
|
|
4632
|
+
return {
|
|
4633
|
+
sound: signInt(d[3], 8)/100
|
|
4634
|
+
};
|
|
4635
|
+
}
|
|
4636
|
+
},
|
|
4617
4637
|
'101':{
|
|
4618
4638
|
name: 'Pro Vibration',
|
|
4619
4639
|
parse: (d, full)=>{
|
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -331,95 +331,97 @@
|
|
|
331
331
|
if(this.addr) return this.addr.split(":").slice(4).join(':');
|
|
332
332
|
if(this.sensor_type){
|
|
333
333
|
var types = {
|
|
334
|
-
"1": "Temperature/Humidity",
|
|
335
|
-
"2": "2ch Push Notification/Voltage Detection",
|
|
336
|
-
"3": "ADC/4-20 mA/DC Voltage",
|
|
337
|
-
"4": "Thermocouple",
|
|
338
|
-
"5": "Gyro/Magneto/Temperature",
|
|
339
|
-
"6": "Temperature/Barometeric Pressure",
|
|
340
|
-
"7": "Impact Detection",
|
|
341
|
-
"8": "Vibration",
|
|
342
|
-
"9": "Proximity and Light",
|
|
343
|
-
"10": "Light",
|
|
344
|
-
"12": "3 Channel Thermocouple",
|
|
345
|
-
"13": "Current Monitor",
|
|
346
|
-
"14": "1 Channel 4-20mA Receiver",
|
|
347
|
-
"15": "1 Channel 0-10V Receiver",
|
|
348
|
-
"16": "1 Channel Soil Moisture Sensor",
|
|
349
|
-
"17": "1 Channel AC Voltage Sensor",
|
|
350
|
-
"18": "Pulse Frequency",
|
|
351
|
-
"19": "2 Channel Current Sensor",
|
|
352
|
-
"20": "High Precision Pressure Sensor",
|
|
353
|
-
"21": "Differential Bi directional Pressure Sensor",
|
|
354
|
-
"22": "0-24V AC/DC Optically Isolated Inputs",
|
|
355
|
-
"23": "2 Channel Thermocouple Sensor",
|
|
356
|
-
"24": "Activity Detection",
|
|
357
|
-
"25": "Asset Monitor",
|
|
358
|
-
"26": "Pressure Sensor",
|
|
359
|
-
"27": "Environmental Sensor",
|
|
360
|
-
"28": "3 Channel Current Sensor",
|
|
361
|
-
"29": "Linear Displacement Sensor",
|
|
362
|
-
"30": "Structural Monitoring Sensor",
|
|
363
|
-
"31": "Air Quality TVOC eCO2 Temperature and Humidity Sensor",
|
|
364
|
-
"32": "Particulate Matter Sensor",
|
|
365
|
-
"33": "AC Current Detect Sensor",
|
|
366
|
-
"34": "Tank Level Sensor",
|
|
367
|
-
"35": "1 Channel Counter",
|
|
368
|
-
"36": "2 Channel Counter",
|
|
369
|
-
"37": "7 Channel Push Notification",
|
|
370
|
-
"39": "3 Wire RTD Temperature Sensor",
|
|
371
|
-
"40": "Enterprise Vibration Sensor",
|
|
372
|
-
"41": "RPM Proximity Sensor",
|
|
373
|
-
"42": "0-24VDC Voltage Monitor",
|
|
374
|
-
"43": "Dual Temperature Humidity Current Detection Sensor",
|
|
375
|
-
"44": "CO2 Gas Sensor",
|
|
376
|
-
"45": "4-20mA 16-Bit Input Transmitter",
|
|
377
|
-
"46": "Motion Detection Sensor",
|
|
378
|
-
"47": "Wireless Tilt Sensor",
|
|
379
|
-
"48": "4-20mA 16-Bit Input Transmitter",
|
|
380
|
-
"49": "6 Channel Thermocouple Sensor",
|
|
381
|
-
"50": "Predictive Maintenance Sensor",
|
|
382
|
-
"51": "6 Channel Current Sensor",
|
|
383
|
-
"52": "2 Channel 4-20mA Receiver",
|
|
384
|
-
"53": "Air Quality CO2 and PM Sensor",
|
|
385
|
-
"54": "3 Channel RTD",
|
|
386
|
-
"56": "2 Channel 0-10VDC Receiver",
|
|
387
|
-
"60": "Air Velocity, Pressure, & Temperature Sensor",
|
|
388
|
-
"61": "pH Temperature Sensor",
|
|
389
|
-
"62": "ORP Temperature Sensor",
|
|
390
|
-
"63": "pH and ORPTemperature Sensor",
|
|
391
|
-
"64": "EC Salinity TDS and Temperature Sensor",
|
|
392
|
-
"65": "DO and Temperature Sensor",
|
|
393
|
-
"66": "DO EC Salinity TDS and Temperature Sensor",
|
|
394
|
-
"67": "PAR Sensor",
|
|
395
|
-
"69": "Soil Moisture Temperature and EC Sensor",
|
|
396
|
-
// "70": "2 Channel Soil Moisture Temperature and EC Sensor",
|
|
397
|
-
"71": "3 Channel Soil Moisture Temperature and EC Sensor",
|
|
398
|
-
"72": "SDI Soil Moisture Temperature Moisture Probe",
|
|
399
|
-
"75": "Siemens Air Velocity Probe",
|
|
400
|
-
"76": "Wireless CO Gas Sensor",
|
|
401
|
-
"77": "3 Channel SDI Soil Moisture Temperature Moisture Probe",
|
|
402
|
-
"79": "Oil Analysis Sensor",
|
|
403
|
-
"80": "One Channel Vibration Plus",
|
|
404
|
-
"81": "Two Channel Vibration Plus",
|
|
405
|
-
"82": "Condition Based/Predictive Maintenance Sensor",
|
|
406
|
-
"84": "
|
|
407
|
-
"
|
|
408
|
-
"
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
334
|
+
"1": "1 - Temperature/Humidity",
|
|
335
|
+
"2": "2 - 2ch Push Notification/Voltage Detection",
|
|
336
|
+
"3": "3 - ADC/4-20 mA/DC Voltage",
|
|
337
|
+
"4": "4 - Thermocouple",
|
|
338
|
+
"5": "5 - Gyro/Magneto/Temperature",
|
|
339
|
+
"6": "6 - Temperature/Barometeric Pressure",
|
|
340
|
+
"7": "7 - Impact Detection",
|
|
341
|
+
"8": "8 - Vibration",
|
|
342
|
+
"9": "9 - Proximity and Light",
|
|
343
|
+
"10": "10 - Light",
|
|
344
|
+
"12": "12 - 3 Channel Thermocouple",
|
|
345
|
+
"13": "13 - Current Monitor",
|
|
346
|
+
"14": "14 - 1 Channel 4-20mA Receiver",
|
|
347
|
+
"15": "15 - 1 Channel 0-10V Receiver",
|
|
348
|
+
"16": "16 - 1 Channel Soil Moisture Sensor",
|
|
349
|
+
"17": "17 - 1 Channel AC Voltage Sensor",
|
|
350
|
+
"18": "18 - Pulse Frequency",
|
|
351
|
+
"19": "19 - 2 Channel Current Sensor",
|
|
352
|
+
"20": "20 - High Precision Pressure Sensor",
|
|
353
|
+
"21": "21 - Differential Bi directional Pressure Sensor",
|
|
354
|
+
"22": "22 - 0-24V AC/DC Optically Isolated Inputs",
|
|
355
|
+
"23": "23 - 2 Channel Thermocouple Sensor",
|
|
356
|
+
"24": "24 - Activity Detection",
|
|
357
|
+
"25": "25 - Asset Monitor",
|
|
358
|
+
"26": "26 - Pressure Sensor",
|
|
359
|
+
"27": "27 - Environmental Sensor",
|
|
360
|
+
"28": "28 - 3 Channel Current Sensor",
|
|
361
|
+
"29": "29 - Linear Displacement Sensor",
|
|
362
|
+
"30": "30 - Structural Monitoring Sensor",
|
|
363
|
+
"31": "31 - Air Quality TVOC eCO2 Temperature and Humidity Sensor",
|
|
364
|
+
"32": "32 - Particulate Matter Sensor",
|
|
365
|
+
"33": "33 - AC Current Detect Sensor",
|
|
366
|
+
"34": "34 - Tank Level Sensor",
|
|
367
|
+
"35": "35 - 1 Channel Counter",
|
|
368
|
+
"36": "36 - 2 Channel Counter",
|
|
369
|
+
"37": "37 - 7 Channel Push Notification",
|
|
370
|
+
"39": "39 - 3 Wire RTD Temperature Sensor",
|
|
371
|
+
"40": "40 - Enterprise Vibration Sensor",
|
|
372
|
+
"41": "41 - RPM Proximity Sensor",
|
|
373
|
+
"42": "42 - 0-24VDC Voltage Monitor",
|
|
374
|
+
"43": "43 - Dual Temperature Humidity Current Detection Sensor",
|
|
375
|
+
"44": "44 - CO2 Gas Sensor",
|
|
376
|
+
"45": "45 - 4-20mA 16-Bit Input Transmitter",
|
|
377
|
+
"46": "46 - Motion Detection Sensor",
|
|
378
|
+
"47": "47 - Wireless Tilt Sensor",
|
|
379
|
+
"48": "48 - 4-20mA 16-Bit Input Transmitter",
|
|
380
|
+
"49": "49 - 6 Channel Thermocouple Sensor",
|
|
381
|
+
"50": "50 - Predictive Maintenance Sensor",
|
|
382
|
+
"51": "51 - 6 Channel Current Sensor",
|
|
383
|
+
"52": "52 - 2 Channel 4-20mA Receiver",
|
|
384
|
+
"53": "53 - Air Quality CO2 and PM Sensor",
|
|
385
|
+
"54": "54 - 3 Channel RTD",
|
|
386
|
+
"56": "56 - 2 Channel 0-10VDC Receiver",
|
|
387
|
+
"60": "60 - Air Velocity, Pressure, & Temperature Sensor",
|
|
388
|
+
"61": "61 - pH Temperature Sensor",
|
|
389
|
+
"62": "62 - ORP Temperature Sensor",
|
|
390
|
+
"63": "63 - pH and ORPTemperature Sensor",
|
|
391
|
+
"64": "64 - EC Salinity TDS and Temperature Sensor",
|
|
392
|
+
"65": "65 - DO and Temperature Sensor",
|
|
393
|
+
"66": "66 - DO EC Salinity TDS and Temperature Sensor",
|
|
394
|
+
"67": "67 - PAR Sensor",
|
|
395
|
+
"69": "69 - Soil Moisture Temperature and EC Sensor",
|
|
396
|
+
// "70": "70 - 2 Channel Soil Moisture Temperature and EC Sensor",
|
|
397
|
+
"71": "71 - 3 Channel Soil Moisture Temperature and EC Sensor",
|
|
398
|
+
"72": "72 - SDI Soil Moisture Temperature Moisture Probe",
|
|
399
|
+
"75": "75 - Siemens Air Velocity Probe",
|
|
400
|
+
"76": "76 - Wireless CO Gas Sensor",
|
|
401
|
+
"77": "77 - 3 Channel SDI Soil Moisture Temperature Moisture Probe",
|
|
402
|
+
"79": "79 - Oil Analysis Sensor",
|
|
403
|
+
"80": "80 - One Channel Vibration Plus",
|
|
404
|
+
"81": "81 - Two Channel Vibration Plus",
|
|
405
|
+
"82": "82 - Condition Based/Predictive Maintenance Sensor",
|
|
406
|
+
"84": "84 - Standalone Smart Vibration Sensor",
|
|
407
|
+
"89": "89 - 2 Channel Ustrasound Vibration Sensor",
|
|
408
|
+
"92": "92 - Sound Sensor",
|
|
409
|
+
"101": "101 - Pro Vibration",
|
|
410
|
+
"102": "102 - Strain Gauge",
|
|
411
|
+
"200": "200 - 4-20mA Pass Through",
|
|
412
|
+
"202": "202 - Weather Station",
|
|
413
|
+
"502": "502 - C_50-27",
|
|
414
|
+
"505": "505 - Custom_SAP_Current_1C",
|
|
415
|
+
"506": "506 - Custom_SAP_Current_3C",
|
|
416
|
+
"507": "507 - Custom_SAP_Current_7C",
|
|
417
|
+
"510": "510 - GreenLight",
|
|
418
|
+
"515": "515 - Custom_SAP_Current_48C",
|
|
419
|
+
"519": "519: Custom Vibration 1",
|
|
420
|
+
"520": "520: Custom 6 Channel Current Temperature & Humidity",
|
|
421
|
+
"10000": "10000 - 4-Channel Relay",
|
|
422
|
+
"10006": "10006 - 4-Channel 4-20 mA Input",
|
|
423
|
+
"10007": "10007 - 4-Channel Current Monitor",
|
|
424
|
+
"10012": "10012 - 2-Relay + 2-Input",
|
|
423
425
|
}
|
|
424
426
|
return types[this.sensor_type];
|
|
425
427
|
}
|
|
@@ -568,97 +570,99 @@
|
|
|
568
570
|
<div class="form-row">
|
|
569
571
|
<label for="node-input-sensor_type"><i class="icon-tag"></i> Sensor Type</label>
|
|
570
572
|
<select id="node-input-sensor_type">
|
|
571
|
-
<option value="1">Temperature and Humidity</option>
|
|
572
|
-
<option value="2">2ch Push Notification/Voltage Detection</option>
|
|
573
|
-
<option value="3">ADC/4-20 mA/DC Voltage</option>
|
|
574
|
-
<option value="4">Thermocouple</option>
|
|
575
|
-
<option value="5">Accel, Gyro, Magneto and Temperature</option>
|
|
576
|
-
<option value="6">Temperature and Barometeric Pressure</option>
|
|
577
|
-
<option value="7">Impact Detection</option>
|
|
578
|
-
<option value="8">Vibration</option>
|
|
579
|
-
<option value="9">Proximity</option>
|
|
580
|
-
<option value="10">Light</option>
|
|
581
|
-
<option value="12">3-channel Thermocouple</option>
|
|
582
|
-
<option value="13">Current Monitor</option>
|
|
583
|
-
<option value="14">10-Bit 1-Channel 4-20mA</option>
|
|
584
|
-
<option value="15">10-Bit 1-Channel ADC</option>
|
|
585
|
-
<option value="16">Soil Moisture Sensor</option>
|
|
586
|
-
<option value="17">24-Bit AC Voltage Monitor</option>
|
|
587
|
-
<option value="18">Pulse/Frequency</option>
|
|
588
|
-
<option value="19">2-channel 24-bit Current Monitor</option>
|
|
589
|
-
<option value="20">Precision Pressure & Temperature (pA)</option>
|
|
590
|
-
<option value="21">AMS Pressure & Temperature</option>
|
|
591
|
-
<option value="22">0-24V AC/DC Optically Isolated Inputs</option>
|
|
592
|
-
<option value="23">2-channel Thermocouple</option>
|
|
593
|
-
<option value="24">Activity Detection</option>
|
|
594
|
-
<option value="25">Asset Monitor</option>
|
|
595
|
-
<option value="26">Pressure & Temperature (PSI)</option>
|
|
596
|
-
<option value="27">Environmental</option>
|
|
597
|
-
<option value="28">3-Channel Current Monitor</option>
|
|
598
|
-
<option value="29">Linear Displacement Sensor</option>
|
|
599
|
-
<option value="30">Structural Monitoring Sensor</option>
|
|
600
|
-
<option value="31">Air Quality TVOC eCO2 Temperature and Humidity Sensor</option>
|
|
601
|
-
<option value="32">Particulate Matter Sensor</option>
|
|
602
|
-
<option value="33">AC Current Detect Sensor</option>
|
|
603
|
-
<option value="34">Wireless Tank Level</option>
|
|
604
|
-
<option value="35">One Channel Counter</option>
|
|
605
|
-
<option value="36">Two Channel Counter</option>
|
|
606
|
-
<option value="37">7 Channel Push Notification</option>
|
|
607
|
-
<option value="39">RTD Temperature Sensor</option>
|
|
608
|
-
<option value="40">Vibration w/Time Domain (partial support)</option>
|
|
609
|
-
<option value="41">RPM Proximity Sensor</option>
|
|
610
|
-
<option value="42">0-24VDC Voltage Monitor</option>
|
|
611
|
-
<option value="43">Dual Temperature Humidity Current Detection Sensor</option>
|
|
612
|
-
<option value="44">Wireless CO2 Gas Sensor</option>
|
|
613
|
-
<option value="45">4-20mA 16-Bit Input Transmitter</option>
|
|
614
|
-
<option value="46">Motion Detection Sensor</option>
|
|
615
|
-
<option value="47">Type 47: Tilt Sensor</option>
|
|
616
|
-
<option value="48">4-20mA 16-Bit Input Transmitter</option>
|
|
617
|
-
<option value="49">6 Channel Thermocouple Sensor</option>
|
|
618
|
-
<option value="50">Predictive Maintenance Sensor</option>
|
|
619
|
-
<option value="51">6 Channel Current Sensor</option>
|
|
620
|
-
<option value="52">2 Channel 4-20mA Receiver</option>
|
|
621
|
-
<option value="53">Air Quality CO2 and PM Sensor</option>
|
|
622
|
-
<option value="54">3 Channel RTD</option>
|
|
623
|
-
<option value="56">2 Channel 0-10VDC Receiver</option>
|
|
624
|
-
<option value="60">Air Velocity and Precision Pressure & Temperature Sensor</option>
|
|
625
|
-
<option value="61">pH Temperature Sensor</option>
|
|
626
|
-
<option value="62">ORP Temperature Sensor</option>
|
|
627
|
-
<option value="63">pH and ORPTemperature Sensor</option>
|
|
628
|
-
<option value="64">EC Salinity TDS and Temperature Sensor</option>
|
|
629
|
-
<option value="65">DO and Temperature Sensor</option>
|
|
630
|
-
<option value="66">DO EC Salinity TDS and Temperature Sensor</option>
|
|
631
|
-
<option value="67">PAR Sensor</option>
|
|
632
|
-
<option value="69">Soil Moisture Temperature and EC Sensor</option>
|
|
573
|
+
<option value="1">1 - Temperature and Humidity</option>
|
|
574
|
+
<option value="2">2 - 2ch Push Notification/Voltage Detection</option>
|
|
575
|
+
<option value="3">3 - ADC/4-20 mA/DC Voltage</option>
|
|
576
|
+
<option value="4">4 - Thermocouple</option>
|
|
577
|
+
<option value="5">5 - Accel, Gyro, Magneto and Temperature</option>
|
|
578
|
+
<option value="6">6 - Temperature and Barometeric Pressure</option>
|
|
579
|
+
<option value="7">7 - Impact Detection</option>
|
|
580
|
+
<option value="8">8 - Vibration</option>
|
|
581
|
+
<option value="9">9 - Proximity</option>
|
|
582
|
+
<option value="10">10 - Light</option>
|
|
583
|
+
<option value="12">12 - 3-channel Thermocouple</option>
|
|
584
|
+
<option value="13">13 - Current Monitor</option>
|
|
585
|
+
<option value="14">14 - 10-Bit 1-Channel 4-20mA</option>
|
|
586
|
+
<option value="15">15 - 10-Bit 1-Channel ADC</option>
|
|
587
|
+
<option value="16">16 - Soil Moisture Sensor</option>
|
|
588
|
+
<option value="17">17 - 24-Bit AC Voltage Monitor</option>
|
|
589
|
+
<option value="18">18 - Pulse/Frequency</option>
|
|
590
|
+
<option value="19">19 - 2-channel 24-bit Current Monitor</option>
|
|
591
|
+
<option value="20">20 - Precision Pressure & Temperature (pA)</option>
|
|
592
|
+
<option value="21">21 - AMS Pressure & Temperature</option>
|
|
593
|
+
<option value="22">22 - 0-24V AC/DC Optically Isolated Inputs</option>
|
|
594
|
+
<option value="23">23 - 2-channel Thermocouple</option>
|
|
595
|
+
<option value="24">24 - Activity Detection</option>
|
|
596
|
+
<option value="25">25 - Asset Monitor</option>
|
|
597
|
+
<option value="26">26 - Pressure & Temperature (PSI)</option>
|
|
598
|
+
<option value="27">27 - Environmental</option>
|
|
599
|
+
<option value="28">28 - 3-Channel Current Monitor</option>
|
|
600
|
+
<option value="29">29 - Linear Displacement Sensor</option>
|
|
601
|
+
<option value="30">30 - Structural Monitoring Sensor</option>
|
|
602
|
+
<option value="31">31 - Air Quality TVOC eCO2 Temperature and Humidity Sensor</option>
|
|
603
|
+
<option value="32">32 - Particulate Matter Sensor</option>
|
|
604
|
+
<option value="33">33 - AC Current Detect Sensor</option>
|
|
605
|
+
<option value="34">34 - Wireless Tank Level</option>
|
|
606
|
+
<option value="35">35 - One Channel Counter</option>
|
|
607
|
+
<option value="36">36 - Two Channel Counter</option>
|
|
608
|
+
<option value="37">37 - 7 Channel Push Notification</option>
|
|
609
|
+
<option value="39">39 - RTD Temperature Sensor</option>
|
|
610
|
+
<option value="40">40 - Vibration w/Time Domain (partial support)</option>
|
|
611
|
+
<option value="41">41 - RPM Proximity Sensor</option>
|
|
612
|
+
<option value="42">42 - 0-24VDC Voltage Monitor</option>
|
|
613
|
+
<option value="43">43 - Dual Temperature Humidity Current Detection Sensor</option>
|
|
614
|
+
<option value="44">44 - Wireless CO2 Gas Sensor</option>
|
|
615
|
+
<option value="45">45 - 4-20mA 16-Bit Input Transmitter</option>
|
|
616
|
+
<option value="46">46 - Motion Detection Sensor</option>
|
|
617
|
+
<option value="47">47 - Type 47: Tilt Sensor</option>
|
|
618
|
+
<option value="48">48 - 4-20mA 16-Bit Input Transmitter</option>
|
|
619
|
+
<option value="49">49 - 6 Channel Thermocouple Sensor</option>
|
|
620
|
+
<option value="50">50 - Predictive Maintenance Sensor</option>
|
|
621
|
+
<option value="51">51 - 6 Channel Current Sensor</option>
|
|
622
|
+
<option value="52">52 - 2 Channel 4-20mA Receiver</option>
|
|
623
|
+
<option value="53">53 - Air Quality CO2 and PM Sensor</option>
|
|
624
|
+
<option value="54">54 - 3 Channel RTD</option>
|
|
625
|
+
<option value="56">56 - 2 Channel 0-10VDC Receiver</option>
|
|
626
|
+
<option value="60">60 - Air Velocity and Precision Pressure & Temperature Sensor</option>
|
|
627
|
+
<option value="61">61 - pH Temperature Sensor</option>
|
|
628
|
+
<option value="62">62 - ORP Temperature Sensor</option>
|
|
629
|
+
<option value="63">63 - pH and ORPTemperature Sensor</option>
|
|
630
|
+
<option value="64">64 - EC Salinity TDS and Temperature Sensor</option>
|
|
631
|
+
<option value="65">65 - DO and Temperature Sensor</option>
|
|
632
|
+
<option value="66">66 - DO EC Salinity TDS and Temperature Sensor</option>
|
|
633
|
+
<option value="67">67 - PAR Sensor</option>
|
|
634
|
+
<option value="69">69 - Soil Moisture Temperature and EC Sensor</option>
|
|
633
635
|
<!--
|
|
634
|
-
<option value="70">2 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
636
|
+
<option value="70">70 - 2 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
635
637
|
-->
|
|
636
|
-
<option value="71">3 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
637
|
-
<option value="72">SDI-12 Wireless</option>
|
|
638
|
-
<option value="75">Siemens Air Velocity Probe</option>
|
|
639
|
-
<option value="76">Wireless CO Gas Sensor</option>
|
|
640
|
-
<option value="77">3 Channel SDI Soil Moisture Temperature Moisture Probe</option>
|
|
641
|
-
<option value="79">Oil Analysis Sensor</option>
|
|
642
|
-
<option value="80">One Channel Vibration Plus</option>
|
|
643
|
-
<option value="81">Two Channel Vibration Plus</option>
|
|
644
|
-
<option value="82">Condition Based/Predictive Maintenance Sensor</option>
|
|
645
|
-
<option value="84">
|
|
646
|
-
<option value="
|
|
647
|
-
<option value="
|
|
648
|
-
<option value="
|
|
649
|
-
<option value="
|
|
650
|
-
<option value="
|
|
651
|
-
<option value="
|
|
652
|
-
<option value="
|
|
653
|
-
<option value="
|
|
654
|
-
<option value="
|
|
655
|
-
<option value="
|
|
656
|
-
<option value="
|
|
657
|
-
<option value="
|
|
658
|
-
<option value="
|
|
659
|
-
<option value="
|
|
660
|
-
<option value="
|
|
661
|
-
<option value="
|
|
638
|
+
<option value="71">71 - 3 Channel Soil Moisture Temperature and EC Sensor</option>
|
|
639
|
+
<option value="72">72 - SDI-12 Wireless</option>
|
|
640
|
+
<option value="75">75 - Siemens Air Velocity Probe</option>
|
|
641
|
+
<option value="76">76 - Wireless CO Gas Sensor</option>
|
|
642
|
+
<option value="77">77 - 3 Channel SDI Soil Moisture Temperature Moisture Probe</option>
|
|
643
|
+
<option value="79">79 - Oil Analysis Sensor</option>
|
|
644
|
+
<option value="80">80 - One Channel Vibration Plus</option>
|
|
645
|
+
<option value="81">81 - Two Channel Vibration Plus</option>
|
|
646
|
+
<option value="82">82 - Condition Based/Predictive Maintenance Sensor</option>
|
|
647
|
+
<option value="84">84 - Standalone Smart Vibration Sensor</option>
|
|
648
|
+
<option value="89">89 - 2 Channel Ultrasound Vibration Sensor</option>
|
|
649
|
+
<option value="92">92 - Sound Sensor</option>
|
|
650
|
+
<option value="101">101 - Pro Vibration</option>
|
|
651
|
+
<option value="102">102 - Strain Gauge</option>
|
|
652
|
+
<option value="200">200 - 4-20mA Pass Through</option>
|
|
653
|
+
<option value="202">202 - Weather Station</option>
|
|
654
|
+
<option value="502">502 - C_50-27</option>
|
|
655
|
+
<option value="505">505 - Custom_SAP_Current_1C</option>
|
|
656
|
+
<option value="506">506 - Custom_SAP_Current_3C</option>
|
|
657
|
+
<option value="507">507 - Custom_SAP_Current_7C</option>
|
|
658
|
+
<option value="510">510 - GreenLight</option>
|
|
659
|
+
<option value="515">515 - Custom_SAP_Current_48C</option>
|
|
660
|
+
<option value="519">519 - Type 519: Custom Vibration 1</option>
|
|
661
|
+
<option value="520">520 - Type 520: Custom 6 Channel Current Temperature & Humidity</option>
|
|
662
|
+
<option value="10000">10000 - 4-Channel Relay</option>
|
|
663
|
+
<option value="10006">10006 - 4-Channel 4-20 mA Input</option>
|
|
664
|
+
<option value="10007">10007 - 4-Channel Current Monitor</option>
|
|
665
|
+
<option value="10012">10012 - 2-Relay + 2-Input</option>
|
|
662
666
|
</select>
|
|
663
667
|
</div>
|
|
664
668
|
<div class="section">
|
|
@@ -668,7 +672,7 @@
|
|
|
668
672
|
<label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
|
|
669
673
|
<input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
|
|
670
674
|
</div>
|
|
671
|
-
<div class="form-row ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-101 data-sensor-102 data-sensor-519 data-sensor-520>
|
|
675
|
+
<div class="form-row ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-89 data-sensor-101 data-sensor-102 data-sensor-519 data-sensor-520>
|
|
672
676
|
<hr>
|
|
673
677
|
<label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
|
|
674
678
|
<input type="checkbox" id="node-input-on_the_fly_enable" value="1">
|
package/wireless.js
CHANGED
|
@@ -51,12 +51,17 @@ module.exports = function(RED) {
|
|
|
51
51
|
this.gateway.digi.report_rssi = config.rssi;
|
|
52
52
|
|
|
53
53
|
if(config.comm_type == 'serial'){
|
|
54
|
-
node.gateway.digi.serial.setupSerial();
|
|
54
|
+
setTimeout(()=>{node.gateway.digi.serial.setupSerial()}, 5000);
|
|
55
55
|
}else{
|
|
56
|
-
node.gateway.digi.serial.setupClient();
|
|
56
|
+
setTimeout(()=>{node.gateway.digi.serial.setupClient()}, 5000);
|
|
57
57
|
}
|
|
58
58
|
node.gateway.digi.serial.on('ready', () => {
|
|
59
|
-
node.
|
|
59
|
+
node.gateway.digi.send.at_command('SL').then((res) => {
|
|
60
|
+
node.gateway.modem_mac = '00:13:A2:00:'+toMac(res.data);
|
|
61
|
+
}).catch((err) => {
|
|
62
|
+
console.log(err);
|
|
63
|
+
node.gateway.digi.serial.reconnect();
|
|
64
|
+
}).then(node.check_mode((mode) => {
|
|
60
65
|
var pan_id = parseInt(config.pan_id, 16);
|
|
61
66
|
// if(!mode && node.gateway.pan_id != pan_id){
|
|
62
67
|
if(node.gateway.pan_id != pan_id){
|
|
@@ -67,13 +72,7 @@ module.exports = function(RED) {
|
|
|
67
72
|
node.gateway.digi.serial.reconnect();
|
|
68
73
|
});
|
|
69
74
|
}
|
|
70
|
-
});
|
|
71
|
-
node.gateway.digi.send.at_command('SL').then((res) => {
|
|
72
|
-
node.gateway.modem_mac = '00:13:A2:00:'+toMac(res.data);
|
|
73
|
-
}).catch((err) => {
|
|
74
|
-
console.log(err);
|
|
75
|
-
node.gateway.digi.serial.reconnect();
|
|
76
|
-
});
|
|
75
|
+
}));
|
|
77
76
|
});
|
|
78
77
|
node.gateway.digi.serial.on('closed_comms', () => {
|
|
79
78
|
node.is_config = 3;
|