@ncd-io/node-red-enterprise-sensors 1.0.8 → 1.0.10

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.
@@ -1211,9 +1211,9 @@ module.exports = class WirelessSensor{
1211
1211
  console.log(packet);
1212
1212
  return this.config_send(sensor_mac, packet);
1213
1213
  }
1214
- config_clear_timers_108(sensor_mac){
1214
+ config_set_clear_timers_108(sensor_mac, value){
1215
1215
  console.log('config_clear_timers_108');
1216
- var packet = [244, 36, 0, 0, 0, 7];
1216
+ var packet = [244, 36, 0, 0, 0, value];
1217
1217
  console.log(packet);
1218
1218
  return this.config_send(sensor_mac, packet);
1219
1219
  }
@@ -1255,6 +1255,69 @@ module.exports = class WirelessSensor{
1255
1255
  console.log(packet);
1256
1256
  return this.config_send(sensor_mac, packet);
1257
1257
  }
1258
+ config_set_qos_108(sensor_mac, value){
1259
+ console.log('config_set_qos_108');
1260
+ var packet = [247, 52, 0, 0, 0, value];
1261
+ console.log(packet);
1262
+ return this.config_send(sensor_mac, packet);
1263
+ }
1264
+ config_set_deactivate_activate_accelero_108(sensor_mac, value){
1265
+ console.log('config_set_deactivate_activate_accelero_108');
1266
+ var packet = [244, 37, 0, 0, 0, value];
1267
+ console.log(packet);
1268
+ return this.config_send(sensor_mac, packet);
1269
+ }
1270
+ config_set_reset_timeout_108(sensor_mac, value){
1271
+ console.log('config_set_deactivate_activate_accelero_108');
1272
+ var packet = [244, 49, 0, 0, 0];
1273
+ let timeout = int2Bytes((value), 2);
1274
+ packet.push(...timeout);
1275
+ console.log(packet);
1276
+ return this.config_send(sensor_mac, packet);
1277
+ }
1278
+ config_set_reset_mode_to_disabled_108(sensor_mac, value){
1279
+ console.log('config_set_reset_mode_to_disabled_108');
1280
+ var packet = [244, 51, 0, 0, 0, value];
1281
+ console.log(packet);
1282
+ return this.config_send(sensor_mac, packet);
1283
+ }
1284
+ config_set_rtc_108(sensor_mac){
1285
+ console.log('config_set_rtc_108');
1286
+ var date = new Date();
1287
+ var packet = [244, 53, 0, 0, 0, date.getHours(), date.getMinutes(), date.getSeconds()];
1288
+ console.log(packet);
1289
+ return this.config_send(sensor_mac, packet);
1290
+ }
1291
+ config_set_rtc_interval_108(sensor_mac, value){
1292
+ console.log('config_set_rtc_interval_108');
1293
+ var packet = [244, 55, 0, 0, 0, value];
1294
+ console.log(packet);
1295
+ return this.config_send(sensor_mac, packet);
1296
+ }
1297
+ config_set_shift_one_108(sensor_mac, hours, minutes){
1298
+ console.log('config_set_shift_one_108');
1299
+ var packet = [244, 47, 0, 0, 0, 0, hours, minutes]
1300
+ console.log(packet);
1301
+ return this.config_send(sensor_mac, packet);
1302
+ }
1303
+ config_set_shift_two_108(sensor_mac, hours, minutes){
1304
+ console.log('config_set_shift_two_108');
1305
+ var packet = [244, 47, 0, 0, 0, 1, hours, minutes]
1306
+ console.log(packet);
1307
+ return this.config_send(sensor_mac, packet);
1308
+ }
1309
+ config_set_shift_three_108(sensor_mac, hours, minutes){
1310
+ console.log('config_set_shift_three_108');
1311
+ var packet = [244, 47, 0, 0, 0, 2, hours, minutes]
1312
+ console.log(packet);
1313
+ return this.config_send(sensor_mac, packet);
1314
+ }
1315
+ config_set_shift_four_108(sensor_mac, hours, minutes){
1316
+ console.log('config_set_shift_four_108');
1317
+ var packet = [244, 47, 0, 0, 0, 3, hours, minutes]
1318
+ console.log(packet);
1319
+ return this.config_send(sensor_mac, packet);
1320
+ }
1258
1321
  config_set_sensor_boot_time_420ma(sensor_mac, value){
1259
1322
  console.log('sensor_boot_time_420ma');
1260
1323
  var packet = [244, 68, 0, 0, 45, value];
@@ -1425,11 +1488,11 @@ module.exports = class WirelessSensor{
1425
1488
  console.log(packet);
1426
1489
  return this.config_send(sensor_mac, packet);
1427
1490
  }
1428
- config_set_auto_raw_destination_110(sensor_mac, value){
1491
+ config_set_auto_raw_destination_110(sensor_mac, modem_mac){
1429
1492
  console.log('config_set_auto_raw_destination_110');
1430
1493
  var packet = [244, 79, 0, 0, 80, 72];
1431
- let value_dest = int2Bytes((value), 4);
1432
- packet.push(...value_dest);
1494
+ let bytes = int2Bytes((modem_mac), 4);
1495
+ packet.push(...bytes);
1433
1496
  console.log(packet);
1434
1497
  return this.config_send(sensor_mac, packet);
1435
1498
  }
@@ -1578,6 +1641,38 @@ module.exports = class WirelessSensor{
1578
1641
  console.log(packet);
1579
1642
  return this.config_send(sensor_mac, packet);
1580
1643
  }
1644
+ config_set_stop_sampling(sensor_mac){
1645
+ console.log('config_set_stop_sampling');
1646
+ var packet = [244, 37, 0, 2, 5];
1647
+ console.log(packet);
1648
+ return this.config_send(sensor_mac, packet);
1649
+ }
1650
+ config_set_extend_otf_timeout(sensor_mac){
1651
+ console.log('config_set_extend_otf_timeout');
1652
+ var packet = [244, 38, 0, 2, 5];
1653
+ console.log(packet);
1654
+ return this.config_send(sensor_mac, packet);
1655
+ }
1656
+ config_set_end_cfg(sensor_mac){
1657
+ console.log('config_set_end_cfg');
1658
+ var packet = [244, 39, 0, 2, 5];
1659
+ console.log(packet);
1660
+ return this.config_send(sensor_mac, packet);
1661
+ }
1662
+ config_set_change_otf_interval(sensor_mac, value){
1663
+ console.log('config_set_change_otf_interval');
1664
+ var packet = [244, 40, 0, 2, 5];
1665
+ var max = int2Bytes(value, 2);
1666
+ packet.push(...max);
1667
+ console.log(packet);
1668
+ return this.config_send(sensor_mac, packet);
1669
+ }
1670
+ config_set_sampling_rate_duration(sensor_mac, value){
1671
+ console.log('config_set_sampling_rate_duration');
1672
+ var packet = [244, 36, 0, 2, 5, 0, value, 255, 255];
1673
+ console.log(packet);
1674
+ return this.config_send(sensor_mac, packet);
1675
+ }
1581
1676
  config_set_fly_interval_110(sensor_mac, value){
1582
1677
  console.log('config_set_fly_interval');
1583
1678
  var packet = [244, 79, 0, 0, 101, 81];
@@ -2328,11 +2423,11 @@ function sensor_types(parent){
2328
2423
  }
2329
2424
  },
2330
2425
  '19': {
2331
- name: '2-channel 24-bit Current Monitor',
2426
+ name: '2-Channel Current Monitor',
2332
2427
  parse: (d) => {
2333
2428
  return {
2334
2429
  channel_1: d.slice(0, 3).reduce(msbLsb),
2335
- channel_2: d.slice(4, 7).reduce(msbLsb),
2430
+ channel_2: d.slice(4, 7).reduce(msbLsb)
2336
2431
  };
2337
2432
  }
2338
2433
  },
@@ -2416,7 +2511,7 @@ function sensor_types(parent){
2416
2511
  }
2417
2512
  },
2418
2513
  '28': {
2419
- 'name': '24-Bit 3-Channel Current Monitor',
2514
+ 'name': '3-Phase Current Sensor',
2420
2515
  parse: (d) => {
2421
2516
  return {
2422
2517
  channel_1: d.slice(0, 3).reduce(msbLsb),
@@ -3639,7 +3734,6 @@ function sensor_types(parent){
3639
3734
  'mode': frame_data.mode,
3640
3735
  'odr_1': frame_data.odr_1+'Hz',
3641
3736
  'sampling_duration_1': frame_data.sampling_duration_1,
3642
- 'sampling_duration_2': frame_data.sampling_duration_2,
3643
3737
  'filter_status': frame_data.filter_status,
3644
3738
  'lpf_coeff_1': frame_data.lpf_coeff_1,
3645
3739
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -3659,7 +3753,6 @@ function sensor_types(parent){
3659
3753
  'mode': frame[16],
3660
3754
  'odr_1': frame[17],
3661
3755
  'sampling_duration_1': frame[19],
3662
- 'sampling_duration_2': frame[20],
3663
3756
  'filter_status': frame[21],
3664
3757
  'lpf_coeff_1': frame[22],
3665
3758
  'hpf_coeff_1': frame[24],
@@ -4447,6 +4540,10 @@ function sensor_types(parent){
4447
4540
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
4448
4541
  'hpf_coeff_1': frame_data.hpf_coeff_1,
4449
4542
  'hpf_freq_1': frame_data.hpf_freq_1+'Hz',
4543
+ 'lpf_coeff_2': frame_data.lpf_coeff_2,
4544
+ 'lpf_freq_2': frame_data.lpf_freq_2+'Hz',
4545
+ 'hpf_coeff_2': frame_data.hpf_coeff_2,
4546
+ 'hpf_freq_2': frame_data.hpf_freq_2+'Hz',
4450
4547
  'sampling_interval': frame_data.sampling_interval,
4451
4548
  'on_request_timeout': frame_data.on_request_timeout,
4452
4549
  'deadband': frame_data.deadband,
@@ -4465,7 +4562,9 @@ function sensor_types(parent){
4465
4562
  'sampling_duration_2': frame[20],
4466
4563
  'filter_status': frame[21],
4467
4564
  'lpf_coeff_1': frame[22],
4565
+ 'lpf_coeff_2': frame[23],
4468
4566
  'hpf_coeff_1': frame[24],
4567
+ 'hpf_coeff_2': frame[25],
4469
4568
  'sampling_interval': frame[26],
4470
4569
  'on_request_timeout': frame[27],
4471
4570
  'deadband': frame[28],
@@ -5066,7 +5165,6 @@ function sensor_types(parent){
5066
5165
  'mode': frame_data.mode,
5067
5166
  'odr_1': frame_data.odr_1+'Hz',
5068
5167
  'sampling_duration_1': frame_data.sampling_duration_1,
5069
- 'sampling_duration_2': frame_data.sampling_duration_2,
5070
5168
  'filter_status': frame_data.filter_status,
5071
5169
  'lpf_coeff_1': frame_data.lpf_coeff_1,
5072
5170
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -5082,7 +5180,6 @@ function sensor_types(parent){
5082
5180
  'mode': frame[16],
5083
5181
  'odr_1': frame[17],
5084
5182
  'sampling_duration_1': frame[19],
5085
- 'sampling_duration_2': frame[20],
5086
5183
  'filter_status': frame[21],
5087
5184
  'lpf_coeff_1': frame[22],
5088
5185
  'hpf_coeff_1': frame[24],
@@ -5677,7 +5774,6 @@ function sensor_types(parent){
5677
5774
  'mode': frame_data.mode,
5678
5775
  'odr_1': frame_data.odr_1+'Hz',
5679
5776
  'sampling_duration_1': frame_data.sampling_duration_1,
5680
- 'sampling_duration_2': frame_data.sampling_duration_2,
5681
5777
  'filter_status': frame_data.filter_status,
5682
5778
  'lpf_coeff_1': frame_data.lpf_coeff_1,
5683
5779
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -5697,7 +5793,6 @@ function sensor_types(parent){
5697
5793
  'mode': frame[16],
5698
5794
  'odr_1': frame[17],
5699
5795
  'sampling_duration_1': frame[19],
5700
- 'sampling_duration_2': frame[20],
5701
5796
  'filter_status': frame[21],
5702
5797
  'lpf_coeff_1': frame[22],
5703
5798
  'hpf_coeff_1': frame[24],
@@ -5712,6 +5807,17 @@ function sensor_types(parent){
5712
5807
  return response;
5713
5808
  }
5714
5809
  },
5810
+ '87': {
5811
+ 'name': '24-Bit 1-Channel Current Monitor',
5812
+ parse: (d) => {
5813
+ return {
5814
+ ct1_rms: d.slice(0, 4).reduce(msbLsb),
5815
+ ct1_peak_1_freq: d.slice(4, 6).reduce(msbLsb),
5816
+ ct1_peak_2_freq: d.slice(6, 8).reduce(msbLsb),
5817
+ ct1_peak_3_freq: d.slice(8, 10).reduce(msbLsb),
5818
+ }
5819
+ }
5820
+ },
5715
5821
  '88': {
5716
5822
  name: '1 Channel Ultrasound Vibration Sensor',
5717
5823
  parse: (d) => {
@@ -5720,6 +5826,44 @@ function sensor_types(parent){
5720
5826
  ma: d.slice(2, 4).reduce(msbLsb) / 100,
5721
5827
  db: d.slice(4, 6).reduce(msbLsb) / 100
5722
5828
  };
5829
+ },
5830
+ 'parse_fly': (frame) => {
5831
+ let frame_data = {};
5832
+ switch(frame[16]){
5833
+ case 0:
5834
+ frame_data.fsr = "+-0.256 V";
5835
+ break;
5836
+ case 1:
5837
+ frame_data.fsr = "+-0.512 V";
5838
+ break;
5839
+ case 2:
5840
+ frame_data.fsr = "+-1.024 V";
5841
+ break;
5842
+ case 3:
5843
+ frame_data.fsr = "+-2.048 V";
5844
+ break;
5845
+ case 4:
5846
+ frame_data.fsr = "+-4.096 V";
5847
+ break;
5848
+ case 5:
5849
+ frame_data.fsr = "+-6.144 V";
5850
+ break;
5851
+ }
5852
+ return {
5853
+ 'firmware': frame[2],
5854
+ 'report_rate': frame.slice(12, 16).reduce(msbLsb),
5855
+ 'fsr':frame_data.fsr,
5856
+ 'boot_up_time': frame[17],
5857
+ // 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
5858
+ 'machine_values': {
5859
+ 'firmware': frame[2],
5860
+ 'report_rate': frame.slice(12, 16),
5861
+ 'fsr':frame[16],
5862
+ 'boot_up_time': frame[17],
5863
+ // 'adc_pin_reading': frame.slice(18, 20),
5864
+ 'frame': frame
5865
+ }
5866
+ }
5723
5867
  }
5724
5868
  },
5725
5869
  '89': {
@@ -5733,6 +5877,44 @@ function sensor_types(parent){
5733
5877
  c2_ma: d.slice(8, 10).reduce(msbLsb) / 100,
5734
5878
  c2_db: d.slice(10, 12).reduce(msbLsb) / 100
5735
5879
  };
5880
+ },
5881
+ 'parse_fly': (frame) => {
5882
+ let frame_data = {};
5883
+ switch(frame[16]){
5884
+ case 0:
5885
+ frame_data.fsr = "+-0.256 V";
5886
+ break;
5887
+ case 1:
5888
+ frame_data.fsr = "+-0.512 V";
5889
+ break;
5890
+ case 2:
5891
+ frame_data.fsr = "+-1.024 V";
5892
+ break;
5893
+ case 3:
5894
+ frame_data.fsr = "+-2.048 V";
5895
+ break;
5896
+ case 4:
5897
+ frame_data.fsr = "+-4.096 V";
5898
+ break;
5899
+ case 5:
5900
+ frame_data.fsr = "+-6.144 V";
5901
+ break;
5902
+ }
5903
+ return {
5904
+ 'firmware': frame[2],
5905
+ 'report_rate': frame.slice(12, 16).reduce(msbLsb),
5906
+ 'fsr':frame_data.fsr,
5907
+ 'boot_up_time': frame[17],
5908
+ // 'adc_pin_reading': frame.slice(18, 20).reduce(msbLsb),
5909
+ 'machine_values': {
5910
+ 'firmware': frame[2],
5911
+ 'report_rate': frame.slice(12, 16),
5912
+ 'fsr':frame[16],
5913
+ 'boot_up_time': frame[17],
5914
+ // 'adc_pin_reading': frame.slice(18, 20),
5915
+ 'frame': frame
5916
+ }
5917
+ }
5736
5918
  }
5737
5919
  },
5738
5920
  '90': {
@@ -5835,25 +6017,79 @@ function sensor_types(parent){
5835
6017
  '108': {
5836
6018
  name: 'Machine Uptime Monitoring Sensor',
5837
6019
  parse: (d, payload) => {
6020
+ let firmware = payload[1];
5838
6021
  if(payload[7] & 2 != 0){
5839
6022
  console.log('Error found');
5840
6023
  // parsed.data = {error: 'Error found, Acclerometer Probe may be unattached'};
5841
6024
  let error = {error: 'Error found, Acclerometer Probe may be unattached'};
5842
6025
  return error;
5843
6026
  }
6027
+ if(firmware > 4){
6028
+ let report_type = d[41]? "Shift": "Regular";
6029
+ return {
6030
+ digital_input_counter: d.slice(0, 4).reduce(msbLsb),
6031
+ digital_input_uptime: d.slice(4, 8).reduce(msbLsb),
6032
+ ct_input_counter: d.slice(8, 12).reduce(msbLsb),
6033
+ ct_input_uptime: d.slice(12, 16).reduce(msbLsb),
6034
+ opto_input_counter: d.slice(16, 20).reduce(msbLsb),
6035
+ opto_input_uptime: d.slice(20, 24).reduce(msbLsb),
6036
+ accelerometer_counter: d.slice(24, 28).reduce(msbLsb),
6037
+ accelerometer_uptime: d.slice(28, 32).reduce(msbLsb),
6038
+ magnetometer_counter: d.slice(32, 36).reduce(msbLsb),
6039
+ magnetometer_uptime: d.slice(36, 40).reduce(msbLsb),
6040
+ input_di: d[40] & 1 ? 1 : 0,
6041
+ input_ct: d[40] & 2 ? 1 : 0,
6042
+ input_opto: d[40] & 4 ? 1 : 0,
6043
+ input_acc: d[40] & 8 ? 1 : 0,
6044
+ input_mag: d[40] & 16 ? 1 : 0,
6045
+ report_type: report_type,
6046
+ rtc: [
6047
+ String(d[42]).padStart(2, '0'),
6048
+ String(d[43]).padStart(2, '0'),
6049
+ String(d[44]).padStart(2, '0')
6050
+ ].join(':')
6051
+ };
6052
+ }else{
6053
+ return {
6054
+ digital_input_counter: d.slice(0, 4).reduce(msbLsb),
6055
+ digital_input_uptime: d.slice(4, 8).reduce(msbLsb),
6056
+ ct_input_counter: d.slice(8, 12).reduce(msbLsb),
6057
+ ct_input_uptime: d.slice(12, 16).reduce(msbLsb),
6058
+ opto_input_counter: d.slice(16, 20).reduce(msbLsb),
6059
+ opto_input_uptime: d.slice(20, 24).reduce(msbLsb),
6060
+ accelerometer_counter: d.slice(24, 28).reduce(msbLsb),
6061
+ accelerometer_uptime: d.slice(28, 32).reduce(msbLsb),
6062
+ magnetometer_counter: d.slice(32, 36).reduce(msbLsb),
6063
+ magnetometer_uptime: d.slice(36, 40).reduce(msbLsb),
6064
+ input_di: d[40] & 1 ? 1 : 0,
6065
+ input_ct: d[40] & 2 ? 1 : 0,
6066
+ input_opto: d[40] & 4 ? 1 : 0,
6067
+ input_acc: d[40] & 8 ? 1 : 0,
6068
+ input_mag: d[40] & 16 ? 1 : 0
6069
+ };
6070
+ }
6071
+ },
6072
+ 'parse_fly': (frame) => {
5844
6073
  return {
5845
- digital_input_counter: d.slice(0, 4).reduce(msbLsb),
5846
- digital_input_uptime: d.slice(4, 8).reduce(msbLsb),
5847
- ct_input_counter: d.slice(8, 12).reduce(msbLsb),
5848
- ct_input_uptime: d.slice(12, 16).reduce(msbLsb),
5849
- opto_input_counter: d.slice(16, 20).reduce(msbLsb),
5850
- opto_input_uptime: d.slice(20, 24).reduce(msbLsb),
5851
- accelerometer_counter: d.slice(24, 28).reduce(msbLsb),
5852
- accelerometer_uptime: d.slice(28, 32).reduce(msbLsb),
5853
- magnetometer_counter: d.slice(32, 36).reduce(msbLsb),
5854
- magnetometer_uptime: d.slice(36, 40).reduce(msbLsb),
5855
- io_states: d[40]
5856
- };
6074
+ 'firmware': frame[2],
6075
+ 'report_rate': frame.slice(12, 16).reduce(msbLsb).toString() + "sec.",
6076
+ 'accelerometer_threshold': (frame[16]* 32).toString() + "mg.",
6077
+ 'debouncing_timeout': frame[17].toString() + "sec.",
6078
+ 'accelero_active_state': frame[18],
6079
+ 'digital_inputs_active_edge': frame.slice(19, 22).reduce(msbLsb),
6080
+ 'counter_threshold': frame.slice(22, 26).reduce(msbLsb).toString() + "sec.",
6081
+ 'trasnmit_on_change_status': frame[26],
6082
+ 'machine_values': {
6083
+ 'firmware': frame[2],
6084
+ 'report_rate': frame.slice(12, 16),
6085
+ 'accelerometer_threshold': frame[16],
6086
+ 'debouncing_timeout': frame[17],
6087
+ 'accelero_active_state': frame[18],
6088
+ 'digital_inputs_active_edge': frame.slice(19, 22),
6089
+ 'counter_threshold': frame.slice(22, 26),
6090
+ 'trasnmit_on_change_status': frame[26]
6091
+ }
6092
+ }
5857
6093
  }
5858
6094
  },
5859
6095
  '110': {
@@ -6194,7 +6430,7 @@ function sensor_types(parent){
6194
6430
  return;
6195
6431
  }
6196
6432
  }
6197
- else if(payload[8] === 0 || payload[8] === 2){
6433
+ else if(payload[8] === 0 || payload[8] === 2 || payload[8] === 3){
6198
6434
  // mode byte most significant bit will indicate fft data.
6199
6435
  // console.log(d);
6200
6436
  var odr;
@@ -6439,7 +6675,6 @@ function sensor_types(parent){
6439
6675
  'mode': frame_data.mode,
6440
6676
  'odr_1': frame_data.odr_1+'Hz',
6441
6677
  'sampling_duration_1': frame_data.sampling_duration_1,
6442
- 'sampling_duration_2': frame_data.sampling_duration_2,
6443
6678
  'filter_status': frame_data.filter_status,
6444
6679
  'lpf_coeff_1': frame_data.lpf_coeff_1,
6445
6680
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -6455,7 +6690,6 @@ function sensor_types(parent){
6455
6690
  'mode': frame[16],
6456
6691
  'odr_1': frame[17],
6457
6692
  'sampling_duration_1': frame[19],
6458
- 'sampling_duration_2': frame[20],
6459
6693
  'filter_status': frame[21],
6460
6694
  'lpf_coeff_1': frame[22],
6461
6695
  'hpf_coeff_1': frame[24],
@@ -6819,7 +7053,7 @@ function sensor_types(parent){
6819
7053
  return;
6820
7054
  }
6821
7055
  }
6822
- else if(payload[8] === 0 || payload[8] === 2){
7056
+ else if(payload[8] === 0 || payload[8] === 2 || payload[8] === 3){
6823
7057
  // mode byte most significant bit will indicate fft data.
6824
7058
  // console.log(d);
6825
7059
  var odr1;
@@ -7611,7 +7845,7 @@ function sensor_types(parent){
7611
7845
  return;
7612
7846
  }
7613
7847
  }
7614
- else if(payload[8] === 0 || payload[8] === 2){
7848
+ else if(payload[8] === 0 || payload[8] === 2 || payload[8] === 3){
7615
7849
  // mode byte most significant bit will indicate fft data.
7616
7850
  // console.log(d);
7617
7851
  var odr;
@@ -7857,7 +8091,6 @@ function sensor_types(parent){
7857
8091
  'mode': frame_data.mode,
7858
8092
  'odr_1': frame_data.odr_1+'Hz',
7859
8093
  'sampling_duration_1': frame_data.sampling_duration_1,
7860
- 'sampling_duration_2': frame_data.sampling_duration_2,
7861
8094
  'filter_status': frame_data.filter_status,
7862
8095
  'lpf_coeff_1': frame_data.lpf_coeff_1,
7863
8096
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -7873,7 +8106,6 @@ function sensor_types(parent){
7873
8106
  'mode': frame[16],
7874
8107
  'odr_1': frame[17],
7875
8108
  'sampling_duration_1': frame[19],
7876
- 'sampling_duration_2': frame[20],
7877
8109
  'filter_status': frame[21],
7878
8110
  'lpf_coeff_1': frame[22],
7879
8111
  'hpf_coeff_1': frame[24],
@@ -8222,7 +8454,7 @@ function sensor_types(parent){
8222
8454
  return;
8223
8455
  }
8224
8456
  }
8225
- else if(payload[8] === 0 || payload[8] === 2){
8457
+ else if(payload[8] === 0 || payload[8] === 2 || payload[8] === 3){
8226
8458
  // mode byte most significant bit will indicate fft data.
8227
8459
  // console.log(d);
8228
8460
  var odr;
@@ -8467,7 +8699,6 @@ function sensor_types(parent){
8467
8699
  'mode': frame_data.mode,
8468
8700
  'odr_1': frame_data.odr_1+'Hz',
8469
8701
  'sampling_duration_1': frame_data.sampling_duration_1,
8470
- 'sampling_duration_2': frame_data.sampling_duration_2,
8471
8702
  'filter_status': frame_data.filter_status,
8472
8703
  'lpf_coeff_1': frame_data.lpf_coeff_1,
8473
8704
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -8483,7 +8714,6 @@ function sensor_types(parent){
8483
8714
  'mode': frame[16],
8484
8715
  'odr_1': frame[17],
8485
8716
  'sampling_duration_1': frame[19],
8486
- 'sampling_duration_2': frame[20],
8487
8717
  'filter_status': frame[21],
8488
8718
  'lpf_coeff_1': frame[22],
8489
8719
  'hpf_coeff_1': frame[24],
@@ -8500,25 +8730,19 @@ function sensor_types(parent){
8500
8730
  name: 'C1D2 One Channel Vibration Plus',
8501
8731
  parse: (payload, parsed, mac) => {
8502
8732
  return parent.sensor_types[80].parse(payload, parsed, mac);
8503
- }
8504
- },
8505
- '181': {
8506
- name: 'C1D2 Two Channel Vibration Plus',
8507
- parse: (payload, parsed, mac) => {
8508
- return parent.sensor_types[81].parse(payload, parsed, mac);
8509
- }
8510
- },
8511
- '180': {
8512
- name: 'C1D2 One Channel Vibration Plus',
8513
- parse: (payload, parsed, mac) => {
8514
- return parent.sensor_types[80].parse(payload, parsed, mac);
8515
- }
8733
+ },
8734
+ parse_fly: (payload, parsed, mac) => {
8735
+ return parent.sensor_types[80].parse_fly(payload, parsed, mac);
8736
+ },
8516
8737
  },
8517
8738
  '181': {
8518
8739
  name: 'C1D2 Two Channel Vibration Plus',
8519
8740
  parse: (payload, parsed, mac) => {
8520
8741
  return parent.sensor_types[81].parse(payload, parsed, mac);
8521
- }
8742
+ },
8743
+ parse_fly: (payload, parsed, mac) => {
8744
+ return parent.sensor_types[81].parse_fly(payload, parsed, mac);
8745
+ },
8522
8746
  },
8523
8747
  '200': {
8524
8748
  name: '4-20mA Pass Through',
@@ -8536,7 +8760,6 @@ function sensor_types(parent){
8536
8760
  };
8537
8761
  }
8538
8762
  },
8539
-
8540
8763
  '202': {
8541
8764
  name: 'Wireless Weather Station',
8542
8765
  parse: (d) => {
@@ -8550,6 +8773,17 @@ function sensor_types(parent){
8550
8773
  };
8551
8774
  }
8552
8775
  },
8776
+ '217': {
8777
+ name: 'Wireless Weight Scale',
8778
+ parse: (d) => {
8779
+ let units;
8780
+ d[0] ? units = "Kg" : units = "Lbs"
8781
+ return {
8782
+ unit: units,
8783
+ weight: signInt(d.slice(1, 4).reduce(msbLsb)) * 100
8784
+ };
8785
+ }
8786
+ },
8553
8787
  '502': {
8554
8788
  name: 'Custom Environmental Sensor',
8555
8789
  parse: (d, full) => {
@@ -9360,7 +9594,6 @@ function sensor_types(parent){
9360
9594
  'mode': frame_data.mode,
9361
9595
  'odr_1': frame_data.odr_1+'Hz',
9362
9596
  'sampling_duration_1': frame_data.sampling_duration_1,
9363
- 'sampling_duration_2': frame_data.sampling_duration_2,
9364
9597
  'filter_status': frame_data.filter_status,
9365
9598
  'lpf_coeff_1': frame_data.lpf_coeff_1,
9366
9599
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -9376,7 +9609,6 @@ function sensor_types(parent){
9376
9609
  'mode': frame[16],
9377
9610
  'odr_1': frame[17],
9378
9611
  'sampling_duration_1': frame[19],
9379
- 'sampling_duration_2': frame[20],
9380
9612
  'filter_status': frame[21],
9381
9613
  'lpf_coeff_1': frame[22],
9382
9614
  'hpf_coeff_1': frame[24],
@@ -10244,7 +10476,6 @@ function sensor_types(parent){
10244
10476
  'mode': frame_data.mode,
10245
10477
  'odr_1': frame_data.odr_1+'Hz',
10246
10478
  'sampling_duration_1': frame_data.sampling_duration_1,
10247
- 'sampling_duration_2': frame_data.sampling_duration_2,
10248
10479
  'filter_status': frame_data.filter_status,
10249
10480
  'lpf_coeff_1': frame_data.lpf_coeff_1,
10250
10481
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -10260,7 +10491,6 @@ function sensor_types(parent){
10260
10491
  'mode': frame[16],
10261
10492
  'odr_1': frame[17],
10262
10493
  'sampling_duration_1': frame[19],
10263
- 'sampling_duration_2': frame[20],
10264
10494
  'filter_status': frame[21],
10265
10495
  'lpf_coeff_1': frame[22],
10266
10496
  'hpf_coeff_1': frame[24],
@@ -10855,7 +11085,6 @@ function sensor_types(parent){
10855
11085
  'mode': frame_data.mode,
10856
11086
  'odr_1': frame_data.odr_1+'Hz',
10857
11087
  'sampling_duration_1': frame_data.sampling_duration_1,
10858
- 'sampling_duration_2': frame_data.sampling_duration_2,
10859
11088
  'filter_status': frame_data.filter_status,
10860
11089
  'lpf_coeff_1': frame_data.lpf_coeff_1,
10861
11090
  'lpf_freq_1': frame_data.lpf_freq_1+'Hz',
@@ -10871,7 +11100,6 @@ function sensor_types(parent){
10871
11100
  'mode': frame[16],
10872
11101
  'odr_1': frame[17],
10873
11102
  'sampling_duration_1': frame[19],
10874
- 'sampling_duration_2': frame[20],
10875
11103
  'filter_status': frame[21],
10876
11104
  'lpf_coeff_1': frame[22],
10877
11105
  'hpf_coeff_1': frame[24],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncd-io/node-red-enterprise-sensors",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wireless.html CHANGED
@@ -133,12 +133,12 @@
133
133
  NCD_validators = {
134
134
  number_range: function(l, h, base, property_name = false){
135
135
  if(!base) base = 10;
136
- if(property_name === 'on_request_timeout_80'){
136
+ if(property_name === 'smart_threshold_110'){
137
137
  return function(v){
138
138
  var int = parseInt(v, base);
139
- if(this.on_request_timeout_80 == 0){
140
- console.log('ERROR: Invalid property detect. Setting on_request_timeout_80 to default value');
141
- $("#node-input-on_request_timeout_80").val(1);
139
+ if(this.smart_threshold_110 == 0){
140
+ console.log('ERROR: Invalid property detect. Setting smart_threshold_110 to default value');
141
+ $("#node-input-smart_threshold_110").val(1);
142
142
  return true;
143
143
  } else if(v == undefined){
144
144
  return true;
@@ -376,7 +376,9 @@
376
376
  accelerometer_state_108:{value:0},
377
377
  accelerometer_state_108_active:{value:""},
378
378
 
379
- clear_all_counters_108:{value:0},
379
+ clear_timers_108_active:{value:""},
380
+ clear_timers_108:{value:7},
381
+
380
382
  accelerometer_threshold_108:{value:10, validate: NCD_validators.number_range(0, 255)},
381
383
  accelerometer_threshold_108_active:{value:""},
382
384
  debounce_time_108:{value:10, validate: NCD_validators.number_range(0, 255)},
@@ -390,6 +392,18 @@
390
392
  input_three_108_active:{value:""},
391
393
  counter_threshold_108:{value:1000, validate: NCD_validators.number_range(0, 65534)},
392
394
  counter_threshold_108_active:{value:""},
395
+ shift_one_108_active:{value:""},
396
+ shift_one_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
397
+ shift_one_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
398
+ shift_two_108_active:{value:""},
399
+ shift_two_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
400
+ shift_two_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
401
+ shift_three_108_active:{value:""},
402
+ shift_three_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
403
+ shift_three_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
404
+ shift_four_108_active:{value:""},
405
+ shift_four_minutes_108:{value:0, validate: NCD_validators.number_range(0, 59)},
406
+ shift_four_hours_108:{value:0, validate: NCD_validators.number_range(0, 23)},
393
407
 
394
408
  counter_threshold_35:{value:50, validate: NCD_validators.number_range(0, 65534)},
395
409
  counter_threshold_35_active:{value:""},
@@ -492,7 +506,7 @@
492
506
  smart_interval_110: {value: 0, validate: NCD_validators.number_range(0, 255)},
493
507
 
494
508
  smart_threshold_110_active:{value:""},
495
- smart_threshold_110: {value: 1, validate: NCD_validators.number_range(1, 65534)},
509
+ smart_threshold_110: {value: 1, validate: NCD_validators.number_range(1, 65534, 10, "smart_threshold_110")},
496
510
 
497
511
  rx485_timeout_1011_active:{value:""},
498
512
  rx485_timeout_1011:{value: 0, validate: NCD_validators.number_range(0, 255)},
@@ -516,6 +530,8 @@
516
530
  push_notification_33_active:{value: ""},
517
531
  push_notification_33:{value: 0},
518
532
  clear_counter_33:{value:0},
533
+ input_two_33:{value:1},
534
+ input_two_33_active:{value:""},
519
535
 
520
536
  stop_bit_1011_active:{value: ""},
521
537
  stop_bit_1011:{value:0},
@@ -535,7 +551,29 @@
535
551
  sps_skip_samples_32:{value: 1, validate: NCD_validators.number_range(1, 10)},
536
552
 
537
553
  sampling_interval_110_active:{value: ""},
538
- sampling_interval_110: {value: 1, validate: NCD_validators.number_range(0, 8)}
554
+ sampling_interval_110: {value: 1, validate: NCD_validators.number_range(0, 8)},
555
+
556
+ qos_108_active:{value: ""},
557
+ qos_108: {value: 0},
558
+ deactivate_activate_accelero_108_active: {value: ""},
559
+ deactivate_activate_accelero_108: {value: 0},
560
+ reset_timeout_108_active:{value: ""},
561
+ reset_timeout_108: {value: 60, validate: NCD_validators.number_range(60, 65535)},
562
+ reset_mode_to_disabled_108_active: {value: ""},
563
+ reset_mode_to_disabled_108: {value: 0},
564
+ rtc_interval_108_active: {value: ""},
565
+ rtc_interval_108: {value: 0},
566
+ rtc_108:{value:0},
567
+
568
+ change_otf_interval_active:{value: ""},
569
+ change_otf_interval:{value: 60},
570
+
571
+ sampling_rate_duration_active:{value: ""},
572
+ sampling_rate_duration:{value: 30, validate: NCD_validators.number_range(30, 20000)},
573
+
574
+ stop_sampling:{value:0},
575
+ extend_otf_timeout:{value:0},
576
+ end_cfg:{value:0}
539
577
  },
540
578
  inputs: 0,
541
579
  outputs: 1,
@@ -570,7 +608,7 @@
570
608
  "25": "25 - Asset Monitor",
571
609
  "26": "26 - Pressure Sensor",
572
610
  "27": "27 - Environmental Sensor",
573
- "28": "28 - 3 Channel Current Sensor",
611
+ "28": "28 - 3-Phase Current Sensor",
574
612
  "29": "29 - Linear Displacement Sensor",
575
613
  "30": "30 - Structural Monitoring Sensor",
576
614
  "31": "31 - Air Quality TVOC eCO2 Temperature and Humidity Sensor",
@@ -620,6 +658,7 @@
620
658
  "81": "81 - Two Channel Vibration Plus",
621
659
  "82": "82 - Condition Based/Predictive Maintenance Sensor",
622
660
  "84": "84 - Standalone Smart Vibration Sensor",
661
+ "87": "87 - One Channel Current v4",
623
662
  "88": "88 - 1 Channel Ultrasound Vibration Sensor",
624
663
  "89": "89 - 2 Channel Ultrasound Vibration Sensor",
625
664
  "90": "90 - DC Current Sensor",
@@ -641,6 +680,7 @@
641
680
  "181": "181 - C1D2 Two Channel Vibration Plus",
642
681
  "200": "200 - 4-20mA Pass Through",
643
682
  "202": "202 - Weather Station",
683
+ "217": "217 - Wireless Weight Scale",
644
684
  "502": "502 - C_50-27",
645
685
  "505": "505 - Custom_SAP_Current_1C",
646
686
  "506": "506 - Custom_SAP_Current_3C",
@@ -860,7 +900,7 @@
860
900
  <option value="25">25 - Asset Monitor</option>
861
901
  <option value="26">26 - Pressure & Temperature (PSI)</option>
862
902
  <option value="27">27 - Environmental</option>
863
- <option value="28">28 - 3-Channel Current Monitor</option>
903
+ <option value="28">28 - 3-Phase Current Monitor</option>
864
904
  <option value="29">29 - Linear Displacement Sensor</option>
865
905
  <option value="30">30 - Structural Monitoring Sensor</option>
866
906
  <option value="31">31 - Air Quality TVOC eCO2 Temperature and Humidity Sensor</option>
@@ -912,6 +952,7 @@
912
952
  <option value="81">81 - Two Channel Vibration Plus</option>
913
953
  <option value="82">82 - Condition Based/Predictive Maintenance Sensor</option>
914
954
  <option value="84">84 - Standalone Smart Vibration Sensor</option>
955
+ <option value="87">87 - One Channel Current v4</option>
915
956
  <option value="88">88 - 1 Channel Ultrasound Vibration Sensor</option>
916
957
  <option value="89">89 - 2 Channel Ultrasound Vibration Sensor</option>
917
958
  <option value="90">90 - DC Current Sensor</option>
@@ -933,6 +974,7 @@
933
974
  <option value="181">181 - C1D2 Two Channel Vibration Plus</option>
934
975
  <option value="200">200 - 4-20mA Pass Through</option>
935
976
  <option value="202">202 - Weather Station</option>
977
+ <option value="217">217 - Wireless Weight Scale</option>
936
978
  <option value="502">502 - C_50-27</option>
937
979
  <option value="505">505 - Custom_SAP_Current_1C</option>
938
980
  <option value="506">506 - Custom_SAP_Current_3C</option>
@@ -964,7 +1006,7 @@
964
1006
  <label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
965
1007
  <input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
966
1008
  </div>
967
- <div class="form-row ncd-dependent" data-sensor-23 data-sensor-26 data-sensor-32 data-sensor-33 data-sensor-39 data-sensor-44 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-53 data-sensor-58 data-sensor-74 data-sensor-76 data-sensor-78 data-sensor-79 data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-88 data-sensor-89 data-sensor-90 data-sensor-91 data-sensor-101 data-sensor-102 data-sensor-105 data-sensor-106 data-sensor-107 data-sensor-108 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-202 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-537 data-sensor-538 data-sensor-539 data-sensor-540 data-sensor-1010 data-sensor-1011>
1009
+ <div class="form-row ncd-dependent" data-sensor-23 data-sensor-26 data-sensor-32 data-sensor-33 data-sensor-39 data-sensor-44 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-53 data-sensor-58 data-sensor-74 data-sensor-76 data-sensor-78 data-sensor-79 data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-87 data-sensor-88 data-sensor-89 data-sensor-90 data-sensor-91 data-sensor-101 data-sensor-102 data-sensor-105 data-sensor-106 data-sensor-107 data-sensor-108 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-202 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-537 data-sensor-538 data-sensor-539 data-sensor-540 data-sensor-1010 data-sensor-1011>
968
1010
  <hr>
969
1011
  <label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
970
1012
  <input type="checkbox" id="node-input-on_the_fly_enable" value="1">
@@ -2253,8 +2295,19 @@
2253
2295
  </div>
2254
2296
  <div class="ncd-dependent" data-sensor-108>
2255
2297
  <div class="form-row ncd-active-check">
2256
- <label for="node-input-clear_all_counters_108"><i class="icon-tag"></i>Clear All Counters</label>
2257
- <input type="checkbox" id="node-input-clear_all_counters_108" value="1">
2298
+ <strong>Clear Counters</strong>
2299
+ <div>
2300
+ <label for="node-input-clear_timers_108_active">Active:</label>
2301
+ <input type="checkbox" id="node-input-clear_timers_108_active" class="ncd-config-toggle" data-target-id="node-input-clear_timers_108" value="1">
2302
+ </div>
2303
+ <div>
2304
+ <label for="node-input-clear_timers_108"><i class="icon-tag"></i>Value:</label>
2305
+ <select id="node-input-clear_timers_108">
2306
+ <option value="7" selected>Digital in 1, 2 and 3</option>
2307
+ <option value="16">Magnetometer</option>
2308
+ <option value="8">Accelerometer</option>
2309
+ </select>
2310
+ </div>
2258
2311
  </div>
2259
2312
  <div class="form-row ncd-active-check">
2260
2313
  <strong>Set Accelerometer Threshold</strong>
@@ -2291,12 +2344,12 @@
2291
2344
  <div class="form-row ncd-active-check">
2292
2345
  <strong>Set Contact Closure Detection</strong>
2293
2346
  <div>
2294
- <label for="node-input-input_two_108_active">Active:</label>
2295
- <input type="checkbox" id="node-input-input_two_108_active" class="ncd-config-toggle" data-target-id="node-input-input_two_108" value="1">
2347
+ <label for="node-input-input_two_33_active">Active:</label>
2348
+ <input type="checkbox" id="node-input-input_two_33_active" class="ncd-config-toggle" data-target-id="node-input-input_two_33" value="1">
2296
2349
  </div>
2297
2350
  <div>
2298
- <label for="node-input-input_two_108"><i class="icon-tag"></i>Value:</label>
2299
- <select id="node-input-input_two_108">
2351
+ <label for="node-input-input_two_33"><i class="icon-tag"></i>Value:</label>
2352
+ <select id="node-input-input_two_33">
2300
2353
  <option value="0">Falling Edge Trigger</option>
2301
2354
  <option value="1" selected>Rising Edge Trigger</option>
2302
2355
  </select>
@@ -2382,6 +2435,13 @@
2382
2435
  <div class="ncd-dependent" data-sensor-108>
2383
2436
  <div class="form-row ncd-active-check">
2384
2437
  <strong>Enable Push Notification</strong>
2438
+ <p>
2439
+ IO1 - Digital input<br>
2440
+ IO2 - Current Sensor<br>
2441
+ IO3 - OPTO Input<br>
2442
+ IO4 - Accelerometer<br>
2443
+ IO5 - Magnetometer<br>
2444
+ </p>
2385
2445
  <div>
2386
2446
  <label for="node-input-push_notification_108_active">Active:</label>
2387
2447
  <input type="checkbox" id="node-input-push_notification_108_active" class="ncd-config-toggle" data-target-id="node-input-push_notification_108" value="1">
@@ -2393,37 +2453,199 @@
2393
2453
  <option value="31">Enable All</option>
2394
2454
  <option value="1">Enable on IO 1</option>
2395
2455
  <option value="2">Enable on IO 2</option>
2396
- <option value="3">Enable on IO 2 and 1</option>
2397
2456
  <option value="4">Enable on IO 3</option>
2398
- <option value="5">Enable on IO 3 and 1</option>
2399
- <option value="6">Enable on IO 3 and 2</option>
2400
- <option value="7">Enable on IO 3 to 1</option>
2401
2457
  <option value="8">Enable on IO 4</option>
2402
- <option value="9">Enable on IO 4 and 1</option>
2403
- <option value="10">Enable on IO 4 and 2</option>
2404
- <option value="11">Enable on IO 4, 1 and 2</option>
2405
- <option value="12">Enable on IO 4 and 3</option>
2406
- <option value="13">Enable on IO 4, 1 and 3</option>
2407
- <option value="14">Enable on IO 4, 2 and 3</option>
2408
- <option value="15">Enable on IO 4 to 1</option>
2409
2458
  <option value="16">Enable on IO 5</option>
2410
- <option value="17">Enable on IO 5 and 1</option>
2411
- <option value="18">Enable on IO 5 and 2</option>
2412
- <option value="19">Enable on IO 5, 2 and 1</option>
2413
- <option value="20">Enable on IO 5 and 3</option>
2414
- <option value="21">Enable on IO 5, 3 and 1</option>
2415
- <option value="22">Enable on IO 5, 3 and 2</option>
2416
- <option value="23">Enable on IO 5, 3, 2 and 1</option>
2417
- <option value="24">Enable on IO 5 and 4</option>
2418
- <option value="25">Enable on IO 5, 4 and 1</option>
2419
- <option value="26">Enable on IO 5, 4 and 2</option>
2420
- <option value="27">Enable on IO 5, 4, 2 and 1</option>
2421
- <option value="28">Enable on IO 5, 4 and 3</option>
2422
- <option value="29">Enable on IO 5, 4, 3 and 1</option>
2423
- <option value="30">Enable on IO 5, 4, 3, and 2</option>
2459
+ <option value="3">Enable on IO 1 and 2</option>
2460
+ <option value="5">Enable on IO 1 and 3</option>
2461
+ <option value="9">Enable on IO 1 and 4</option>
2462
+ <option value="17">Enable on IO 1 and 5</option>
2463
+ <option value="7">Enable on IO 1, 2 and 3</option>
2464
+ <option value="11">Enable on IO 1, 2 and 4</option>
2465
+ <option value="19">Enable on IO 1, 2 and 5</option>
2466
+ <option value="15">Enable on IO 1, 2, 3 and 4</option>
2467
+ <option value="27">Enable on IO 1, 2, 4 and 5</option>
2468
+ <option value="23">Enable on IO 1, 2, 3 and 5</option>
2469
+ <option value="13">Enable on IO 1, 3 and 4</option>
2470
+ <option value="29">Enable on IO 1, 3, 4 and 5</option>
2471
+ <option value="21">Enable on IO 1, 3 and 5</option>
2472
+ <option value="25">Enable on IO 1, 4 and 5</option>
2473
+ <option value="6">Enable on IO 2 and 3</option>
2474
+ <option value="10">Enable on IO 2 and 4</option>
2475
+ <option value="18">Enable on IO 2 and 5</option>
2476
+ <option value="14">Enable on IO 2, 3 and 4</option>
2477
+ <option value="22">Enable on IO 2, 3 and 5</option>
2478
+ <option value="26">Enable on IO 2, 4 and 5</option>
2479
+ <option value="30">Enable on IO 2, 3, 4, and 5</option>
2480
+ <option value="12">Enable on IO 3 and 4</option>
2481
+ <option value="20">Enable on IO 3 and 5</option>
2482
+ <option value="28">Enable on IO 3, 4 and 5</option>
2483
+ <option value="24">Enable on IO 4 and 5</option>
2484
+ </select>
2485
+ </div>
2486
+ </div>
2487
+ <div class="form-row ncd-active-check">
2488
+ <strong>Enable Quality Of Service (QoS)</strong>
2489
+ <div>
2490
+ <label for="node-input-qos_108_active">Active:</label>
2491
+ <input type="checkbox" id="node-input-qos_108_active" class="ncd-config-toggle" data-target-id="node-input-qos_108" value="1">
2492
+ </div>
2493
+ <div>
2494
+ <label for="node-input-qos_108"><i class="icon-tag"></i>Value:</label>
2495
+ <select id="node-input-qos_108">
2496
+ <option value="0" selected>Disabled</option>
2497
+ <option value="1">Enabled</option>
2498
+ </select>
2499
+ </div>
2500
+ </div>
2501
+ <div class="form-row ncd-active-check">
2502
+ <strong>Enable Accelerometer</strong>
2503
+ <div>
2504
+ <label for="node-input-deactivate_activate_accelero_108_active">Active:</label>
2505
+ <input type="checkbox" id="node-input-deactivate_activate_accelero_108_active" class="ncd-config-toggle" data-target-id="node-input-deactivate_activate_accelero_108" value="1">
2506
+ </div>
2507
+ <div>
2508
+ <label for="node-input-deactivate_activate_accelero_108"><i class="icon-tag"></i>Value:</label>
2509
+ <select id="node-input-deactivate_activate_accelero_108">
2510
+ <option value="0" selected>Disabled</option>
2511
+ <option value="1">Enabled</option>
2512
+ </select>
2513
+ </div>
2514
+ </div>
2515
+ <div class="form-row ncd-active-check">
2516
+ <strong> Sample Data Interval Rate </strong>
2517
+ <div>
2518
+ <label for="node-input-rtc_interval_108_active">Active:</label>
2519
+ <input type="checkbox" id="node-input-rtc_interval_108_active" class="ncd-config-toggle" data-target-id="node-input-rtc_interval_108" value="1">
2520
+ </div>
2521
+ <div>
2522
+ <label for="node-input-rtc_interval_108"><i class="icon-tag"></i>Value:</label>
2523
+ <select id="node-input-rtc_interval_108">
2524
+ <option value="0" selected>1 minute</option>
2525
+ <option value="1">5 minutes</option>
2526
+ <option value="2">10 minutes</option>
2527
+ <option value="3">15 minutes</option>
2528
+ <option value="4">30 minutes</option>
2529
+ <option value="5">45 minutes</option>
2530
+ <option value="6">1 hour</option>
2531
+ <option value="7">2 hours</option>
2532
+ <option value="8">3 hours</option>
2533
+ <option value="9">4 hours</option>
2534
+ <option value="10">6 hours</option>
2535
+ <option value="11">8 hours</option>
2536
+ <option value="12">12 hours</option>
2537
+ </select>
2538
+ </div>
2539
+ </div>
2540
+ <div class="form-row ncd-active-check">
2541
+ <strong>Reset Timeout</strong>
2542
+ <p class="caption">
2543
+ Sensor will reset after this time and before reset it will set it data value.<br>
2544
+ Valid range: 60 - 65535
2545
+ </p>
2546
+ <div>
2547
+ <label for="node-input-reset_timeout_108_active">Active:</label>
2548
+ <input type="checkbox" id="node-input-reset_timeout_108_active" class="ncd-config-toggle" data-target-id="node-input-reset_timeout_108" value="1">
2549
+ </div>
2550
+ <div>
2551
+ <label for="node-input-reset_timeout_108"><i class="icon-tag"></i>Value:</label>
2552
+ <input type="text" id="node-input-reset_timeout_108" placeholder="60" value="60">
2553
+ </div>
2554
+ </div>
2555
+ <div class="form-row ncd-active-check">
2556
+ <strong>Set Shift Time 1</strong>
2557
+ <p class="caption">
2558
+ 24-hour time format
2559
+ </p>
2560
+ <div>
2561
+ <label for="node-input-shift_one_108_active">Active:</label>
2562
+ <input type="checkbox" id="node-input-shift_one_108_active" class="ncd-config-toggle" data-target-class="shift_one_108" value="1">
2563
+ </div>
2564
+ <div>
2565
+ <label for="node-input-shift_one_hours_108"><i class="icon-tag"></i>Hours:</label>
2566
+ <input type="text" id="node-input-shift_one_hours_108" class="shift_one_108" placeholder="0" value="00">
2567
+ </div>
2568
+ <div>
2569
+ <label for="node-input-shift_one_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2570
+ <input type="text" id="node-input-shift_one_minutes_108" class="shift_one_108" placeholder="0" value="00">
2571
+ </div>
2572
+ </div>
2573
+ <div class="form-row ncd-active-check">
2574
+ <strong>Set Shift Time 2</strong>
2575
+ <p class="caption">
2576
+ 24-hour time format
2577
+ </p>
2578
+ <div>
2579
+ <label for="node-input-shift_two_108_active">Active:</label>
2580
+ <input type="checkbox" id="node-input-shift_two_108_active" class="ncd-config-toggle" data-target-class="shift_two_108" value="1">
2581
+ </div>
2582
+ <div>
2583
+ <label for="node-input-shift_two_hours_108"><i class="icon-tag"></i>Hours:</label>
2584
+ <input type="text" id="node-input-shift_two_hours_108" class="shift_two_108" placeholder="0" value="00">
2585
+ </div>
2586
+ <div>
2587
+ <label for="node-input-shift_two_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2588
+ <input type="text" id="node-input-shift_two_minutes_108" class="shift_two_108" placeholder="0" value="00">
2589
+ </div>
2590
+ </div>
2591
+ <div class="form-row ncd-active-check">
2592
+ <strong>Set Shift Time 3</strong>
2593
+ <p class="caption">
2594
+ 24-hour time format
2595
+ </p>
2596
+ <div>
2597
+ <label for="node-input-shift_three_108_active">Active:</label>
2598
+ <input type="checkbox" id="node-input-shift_three_108_active" class="ncd-config-toggle" data-target-class="shift_three_108" value="1">
2599
+ </div>
2600
+ <div>
2601
+ <label for="node-input-shift_three_hours_108"><i class="icon-tag"></i>Hours:</label>
2602
+ <input type="text" id="node-input-shift_three_hours_108" class="shift_three_108" placeholder="0" value="00">
2603
+ </div>
2604
+ <div>
2605
+ <label for="node-input-shift_three_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2606
+ <input type="text" id="node-input-shift_three_minutes_108" class="shift_three_108" placeholder="0" value="00">
2607
+ </div>
2608
+ </div>
2609
+ <div class="form-row ncd-active-check">
2610
+ <strong>Set Shift Time 4</strong>
2611
+ <p class="caption">
2612
+ 24-hour time format
2613
+ </p>
2614
+ <div>
2615
+ <label for="node-input-shift_four_108_active">Active:</label>
2616
+ <input type="checkbox" id="node-input-shift_four_108_active" class="ncd-config-toggle" data-target-class="shift_four_108" value="1">
2617
+ </div>
2618
+ <div>
2619
+ <label for="node-input-shift_four_hours_108"><i class="icon-tag"></i>Hours:</label>
2620
+ <input type="text" id="node-input-shift_four_hours_108" class="shift_four_108" placeholder="0" value="00">
2621
+ </div>
2622
+ <div>
2623
+ <label for="node-input-shift_four_minutes_108"><i class="icon-tag"></i>Minutes:</label>
2624
+ <input type="text" id="node-input-shift_four_minutes_108" class="shift_four_108" placeholder="0" value="00">
2625
+ </div>
2626
+ </div>
2627
+ <div class="form-row ncd-active-check">
2628
+ <strong> Set Reset Mode</strong>
2629
+ <div>
2630
+ <label for="node-input-reset_mode_to_disabled_108_active">Active:</label>
2631
+ <input type="checkbox" id="node-input-reset_mode_to_disabled_108_active" class="ncd-config-toggle" data-target-id="node-input-reset_mode_to_disabled_108" value="1">
2632
+ </div>
2633
+ <div>
2634
+ <label for="node-input-reset_mode_to_disabled_108"><i class="icon-tag"></i>Value:</label>
2635
+ <select id="node-input-reset_mode_to_disabled_108">
2636
+ <option value="0" selected>Do not reset counters</option>
2637
+ <option value="1">Based on Shift Ends</option>
2638
+ <option value="2">Based on the Timeout Provided</option>
2424
2639
  </select>
2425
2640
  </div>
2426
2641
  </div>
2642
+ <div class="form-row ncd-active-check">
2643
+ <strong>Set RTC</strong>
2644
+ <div>
2645
+ <label for="node-input-rtc_108"><i class="icon-tag"></i>Active:</label>
2646
+ <input type="checkbox" id="node-input-rtc_108" value="1">
2647
+ </div>
2648
+ </div>
2427
2649
  </div>
2428
2650
  <div class="ncd-dependent" data-sensor-35 data-sensor-36>
2429
2651
  <hr>
@@ -2961,6 +3183,7 @@
2961
3183
  <div class="ncd-dependent" data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114>
2962
3184
  <div class="form-row ncd-active-check">
2963
3185
  <strong>Set Auto Raw Interval</strong>
3186
+ <p>The interval is determined by the sample interval. If the value is set to 1 and the sample interval is 10 minutes, raw data will be sent every 10 minutes. If the value is set to 5, raw data will be sent every 50 minutes.</p>
2964
3187
  <div>
2965
3188
  <label for="node-input-auto_raw_interval_110_active">Active:</label>
2966
3189
  <input type="checkbox" id="node-input-auto_raw_interval_110_active" class="ncd-config-toggle" data-target-id="node-input-auto_raw_interval_110" value="1">
@@ -3118,6 +3341,62 @@
3118
3341
  </div>
3119
3342
  </div>
3120
3343
  </div>
3344
+ <div class="ncd-dependent" data-sensor-32 data-sensor-44 data-sensor-53>
3345
+ <div class="form-row ncd-active-check">
3346
+ <strong>Set FLY Rate</strong>
3347
+ <div>
3348
+ <label for="node-input-change_otf_interval_active">Active:</label>
3349
+ <input type="checkbox" id="node-input-change_otf_interval_active" class="ncd-config-toggle" data-target-id="node-input-change_otf_interval_110" value="1">
3350
+ </div>
3351
+ <div>
3352
+ <label for="node-input-change_otf_interval"><i class="icon-tag"></i>Value:</label>
3353
+ <select id="node-input-change_otf_interval">
3354
+ <option value="60">1 Hour</option>
3355
+ <option value="120">2 Hours</option>
3356
+ <option value="240">4 Hours</option>
3357
+ <option value="480">8 Hours</option>
3358
+ <option value="720">12 Hours</option>
3359
+ <option value="1080">18 Hours</option>
3360
+ <option value="1440">24 Hours</option>
3361
+ </select>
3362
+ </div>
3363
+ </div>
3364
+ <div class="form-row ncd-active-check">
3365
+ <strong>Set Sampling Rate</strong>
3366
+ <p>
3367
+ Valid Range: 30 - 20000 (Seconds).
3368
+ </p>
3369
+ <div>
3370
+ <label for="node-input-sampling_rate_duration_active">Active:</label>
3371
+ <input type="checkbox" id="node-input-sampling_rate_duration_active" class="ncd-config-toggle" data-target-id="node-input-sampling_rate_duration" value="1">
3372
+ </div>
3373
+ <div>
3374
+ <label for="node-input-sampling_rate_duration"><i class="icon-tag"></i>Value:</label>
3375
+ <input type="text" id="node-input-sampling_rate_duration" placeholder="0" value="0">
3376
+ </div>
3377
+ </div>
3378
+ <div class="form-row ncd-active-check">
3379
+ <strong>Stop Sampling</strong>
3380
+ <div>
3381
+ <label for="node-input-stop_sampling"><i class="icon-tag"></i>Active:</label>
3382
+ <input type="checkbox" id="node-input-stop_sampling" value="1">
3383
+ </div>
3384
+ </div>
3385
+ <div class="form-row ncd-active-check">
3386
+ <strong>Extend OTF Timeout</strong>
3387
+ <div>
3388
+ <label for="node-input-extend_otf_timeout"><i class="icon-tag"></i>Active:</label>
3389
+ <input type="checkbox" id="node-input-extend_otf_timeout" value="1">
3390
+ </div>
3391
+ </div>
3392
+ <div class="form-row ncd-active-check">
3393
+ <strong>End Configuration</strong>
3394
+ <div>
3395
+ <label for="node-input-end_cfg"><i class="icon-tag"></i>Active:</label>
3396
+ <input type="checkbox" id="node-input-end_cfg" value="1">
3397
+ </div>
3398
+ </div>
3399
+ </div>
3121
3400
  </div>
3122
3401
  </div>
3123
3402
  </script>
package/wireless.js CHANGED
@@ -1012,13 +1012,28 @@ module.exports = function(RED) {
1012
1012
  if(config.sps_skip_samples_32_active){
1013
1013
  promises.sps_skip_samples_32 = node.config_gateway.config_set_sps_skip_samples_32(mac, parseInt(config.sps_skip_samples_32));
1014
1014
  }
1015
+ if(config.stop_sampling){
1016
+ promises.stop_sampling = node.config_gateway.config_set_stop_sampling(mac);
1017
+ }
1018
+ if(config.extend_otf_timeout){
1019
+ promises.extend_otf_timeout = node.config_gateway.config_set_extend_otf_timeout(mac);
1020
+ }
1021
+ if(config.end_cfg){
1022
+ promises.end_cfg = node.config_gateway.config_set_end_cfg(mac);
1023
+ }
1024
+ if(config.change_otf_interval_active){
1025
+ promises.change_otf_interval = node.config_gateway.config_set_change_otf_interval(mac, parseInt(config.change_otf_interval));
1026
+ }
1027
+ if(config.sampling_rate_duration_active){
1028
+ promises.sampling_rate_duration = node.config_gateway.config_set_sampling_rate_duration(mac, parseInt(config.sampling_rate_duration));
1029
+ }
1015
1030
  break;
1016
1031
  case 33:
1017
1032
  if(config.clear_counter_33){
1018
1033
  promises.clear_counter_33 = node.config_gateway.config_set_clear_counter_33(mac);
1019
1034
  }
1020
- if(config.input_two_108_active){
1021
- promises.input_two_108 = node.config_gateway.config_set_input_two_108(mac, parseInt(config.input_two_108));
1035
+ if(config.input_two_33_active){
1036
+ promises.input_two_33 = node.config_gateway.config_set_input_two_108(mac, parseInt(config.input_two_33));
1022
1037
  }
1023
1038
  if(config.counter_threshold_108_active){
1024
1039
  promises.counter_threshold_108 = node.config_gateway.config_set_counter_threshold_108(mac, parseInt(config.counter_threshold_108));
@@ -1062,6 +1077,21 @@ module.exports = function(RED) {
1062
1077
  if(config.scd_skip_samples_44_active){
1063
1078
  promises.scd_skip_samples_44 = node.config_gateway.config_set_scd_skip_samples_44(mac, parseInt(config.scd_skip_samples_44));
1064
1079
  }
1080
+ if(config.stop_sampling){
1081
+ promises.stop_sampling = node.config_gateway.config_set_stop_sampling(mac);
1082
+ }
1083
+ if(config.extend_otf_timeout){
1084
+ promises.extend_otf_timeout = node.config_gateway.config_set_extend_otf_timeout(mac);
1085
+ }
1086
+ if(config.end_cfg){
1087
+ promises.end_cfg = node.config_gateway.config_set_end_cfg(mac);
1088
+ }
1089
+ if(config.change_otf_interval_active){
1090
+ promises.change_otf_interval = node.config_gateway.config_set_change_otf_interval(mac, parseInt(config.change_otf_interval));
1091
+ }
1092
+ if(config.sampling_rate_duration_active){
1093
+ promises.sampling_rate_duration = node.config_gateway.config_set_sampling_rate_duration(mac, parseInt(config.sampling_rate_duration));
1094
+ }
1065
1095
  break;
1066
1096
  case 45:
1067
1097
  if(config.sensor_boot_time_420ma_active){
@@ -1122,6 +1152,21 @@ module.exports = function(RED) {
1122
1152
  if(config.scd_skip_samples_44_active){
1123
1153
  promises.scd_skip_samples_44 = node.config_gateway.config_set_scd_skip_samples_44(mac, parseInt(config.scd_skip_samples_44));
1124
1154
  }
1155
+ if(config.stop_sampling){
1156
+ promises.stop_sampling = node.config_gateway.config_set_stop_sampling(mac);
1157
+ }
1158
+ if(config.extend_otf_timeout){
1159
+ promises.extend_otf_timeout = node.config_gateway.config_set_extend_otf_timeout(mac);
1160
+ }
1161
+ if(config.end_cfg){
1162
+ promises.end_cfg = node.config_gateway.config_set_end_cfg(mac);
1163
+ }
1164
+ if(config.change_otf_interval_active){
1165
+ promises.change_otf_interval = node.config_gateway.config_set_change_otf_interval(mac, parseInt(config.change_otf_interval));
1166
+ }
1167
+ if(config.sampling_rate_duration_active){
1168
+ promises.sampling_rate_duration = node.config_gateway.config_set_sampling_rate_duration(mac, parseInt(config.sampling_rate_duration));
1169
+ }
1125
1170
  break;
1126
1171
  case 56:
1127
1172
  if(config.sensor_boot_time_420ma_active){
@@ -1477,8 +1522,8 @@ module.exports = function(RED) {
1477
1522
  if(config.accelerometer_state_108_active){
1478
1523
  promises.accelerometer_state_108 = node.config_gateway.config_set_accelerometer_state_108(mac, parseInt(config.accelerometer_state_108));
1479
1524
  }
1480
- if(config.clear_all_counters_108){
1481
- promises.clear_all_counters_108 = node.config_gateway.config_clear_timers_108(mac);
1525
+ if(config.clear_timers_108_active){
1526
+ promises.clear_timers_108 = node.config_gateway.config_set_clear_timers_108(mac, parseInt(config.clear_timers_108));
1482
1527
  }
1483
1528
  if(config.accelerometer_threshold_108_active){
1484
1529
  promises.accelerometer_threshold_108 = node.config_gateway.config_set_accelerometer_threshold_108(mac, parseInt(config.accelerometer_threshold_108));
@@ -1501,6 +1546,36 @@ module.exports = function(RED) {
1501
1546
  if(config.push_notification_108_active){
1502
1547
  promises.push_notification_108 = node.config_gateway.config_set_push_notification_108(mac, parseInt(config.push_notification_108));
1503
1548
  }
1549
+ if(config.qos_108_active){
1550
+ promises.qos_108 = node.config_gateway.config_set_qos_108(mac, parseInt(config.qos_108));
1551
+ }
1552
+ if(config.deactivate_activate_accelero_108_active){
1553
+ promises.deactivate_activate_accelero_108 = node.config_gateway.config_set_deactivate_activate_accelero_108(mac, parseInt(config.deactivate_activate_accelero_108));
1554
+ }
1555
+ if(config.reset_timeout_108_active){
1556
+ promises.reset_timeout_108 = node.config_gateway.config_set_reset_timeout_108(mac, parseInt(config.reset_timeout_108));
1557
+ }
1558
+ if(config.reset_mode_to_disabled_108_active){
1559
+ promises.reset_mode_to_disabled_108 = node.config_gateway.config_set_reset_mode_to_disabled_108(mac, parseInt(config.reset_mode_to_disabled_108));
1560
+ }
1561
+ if(config.rtc_108){
1562
+ promises.rtc_108 = node.config_gateway.config_set_rtc_108(mac);
1563
+ }
1564
+ if(config.rtc_interval_108_active){
1565
+ promises.rtc_interval_108 = node.config_gateway.config_set_rtc_interval_108(mac, parseInt(config.rtc_interval_108));
1566
+ }
1567
+ if(config.shift_one_108_active){
1568
+ promises.shift_time1 = node.config_gateway.config_set_shift_one_108(mac, parseInt(config.shift_one_hours_108), parseInt(config.shift_one_minutes_108));
1569
+ }
1570
+ if(config.shift_two_108_active){
1571
+ promises.shift_time2 = node.config_gateway.config_set_shift_two_108(mac, parseInt(config.shift_two_hours_108), parseInt(config.shift_two_minutes_108));
1572
+ }
1573
+ if(config.shift_three_108_active){
1574
+ promises.shift_time3 = node.config_gateway.config_set_shift_three_108(mac, parseInt(config.shift_three_hours_108), parseInt(config.shift_three_minutes_108));
1575
+ }
1576
+ if(config.shift_four_108_active){
1577
+ promises.shift_time4 = node.config_gateway.config_set_shift_four_108(mac, parseInt(config.shift_four_hours_108), parseInt(config.shift_four_minutes_108));
1578
+ }
1504
1579
  break;
1505
1580
  case 110:
1506
1581
  if(config.output_data_rate_101_active){
@@ -1549,7 +1624,7 @@ module.exports = function(RED) {
1549
1624
  promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
1550
1625
  }
1551
1626
  if(config.auto_raw_destination_110_active){
1552
- promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
1627
+ promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110, 16));
1553
1628
  }
1554
1629
  if(config.clear_probe_uptimers_110_active){
1555
1630
  promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));
@@ -1623,7 +1698,7 @@ module.exports = function(RED) {
1623
1698
  promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
1624
1699
  }
1625
1700
  if(config.auto_raw_destination_110_active){
1626
- promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
1701
+ promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110, 16));
1627
1702
  }
1628
1703
  if(config.clear_probe_uptimers_110_active){
1629
1704
  promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));
@@ -1688,7 +1763,7 @@ module.exports = function(RED) {
1688
1763
  promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
1689
1764
  }
1690
1765
  if(config.auto_raw_destination_110_active){
1691
- promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
1766
+ promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110, 16));
1692
1767
  }
1693
1768
  if(config.clear_probe_uptimers_110_active){
1694
1769
  promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));
@@ -1762,7 +1837,7 @@ module.exports = function(RED) {
1762
1837
  promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
1763
1838
  }
1764
1839
  if(config.auto_raw_destination_110_active){
1765
- promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
1840
+ promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110, 16));
1766
1841
  }
1767
1842
  if(config.clear_probe_uptimers_110_active){
1768
1843
  promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));