config-editor-base 2.7.6 → 2.7.7

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/dist/index.js CHANGED
@@ -179,9 +179,12 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
179
179
  schemaAry = schemaAry.filter(function (e) {
180
180
  return e.includes("CANedge3");
181
181
  });
182
+ var demoFileName = "config-01.09.json";
182
183
  var demoContent = {
183
184
  "general": {
184
- "device": {},
185
+ "device": {
186
+ "meta": "Demo Config CE3G"
187
+ },
185
188
  "security": {},
186
189
  "debug": {
187
190
  "syslog": 1,
@@ -190,8 +193,8 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
190
193
  },
191
194
  "log": {
192
195
  "file": {
193
- "split_size": 50,
194
- "split_time_period": 0,
196
+ "split_size": 512,
197
+ "split_time_period": 900,
195
198
  "split_time_offset": 0,
196
199
  "cyclic": 1
197
200
  },
@@ -221,12 +224,121 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
221
224
  },
222
225
  "filter": {
223
226
  "id": [{
227
+ "name": "Heartbeat",
228
+ "state": 0,
229
+ "type": 0,
230
+ "id_format": 0,
231
+ "method": 0,
232
+ "f1": "2",
233
+ "f2": "2",
234
+ "prescaler_type": 0
235
+ }, {
236
+ "name": "TimeCalendar",
237
+ "state": 0,
238
+ "type": 0,
239
+ "id_format": 0,
240
+ "method": 0,
241
+ "f1": "3",
242
+ "f2": "3",
243
+ "prescaler_type": 0
244
+ }, {
245
+ "name": "TimeExternal",
246
+ "state": 0,
247
+ "type": 0,
248
+ "id_format": 0,
249
+ "method": 0,
250
+ "f1": "5",
251
+ "f2": "5",
252
+ "prescaler_type": 0
253
+ }, {
254
+ "name": "GnssStatus",
224
255
  "state": 1,
225
256
  "type": 0,
226
257
  "id_format": 0,
227
258
  "method": 0,
228
- "f1": "0",
229
- "f2": "7FF",
259
+ "f1": "65",
260
+ "f2": "65",
261
+ "prescaler_type": 0
262
+ }, {
263
+ "name": "GnssTime",
264
+ "state": 1,
265
+ "type": 0,
266
+ "id_format": 0,
267
+ "method": 0,
268
+ "f1": "66",
269
+ "f2": "66",
270
+ "prescaler_type": 0
271
+ }, {
272
+ "name": "GnsssPosition",
273
+ "state": 1,
274
+ "type": 0,
275
+ "id_format": 0,
276
+ "method": 0,
277
+ "f1": "67",
278
+ "f2": "67",
279
+ "prescaler_type": 0
280
+ }, {
281
+ "name": "GnssAltitude",
282
+ "state": 1,
283
+ "type": 0,
284
+ "id_format": 0,
285
+ "method": 0,
286
+ "f1": "68",
287
+ "f2": "68",
288
+ "prescaler_type": 0
289
+ }, {
290
+ "name": "GnssAttitude",
291
+ "state": 1,
292
+ "type": 0,
293
+ "id_format": 0,
294
+ "method": 0,
295
+ "f1": "69",
296
+ "f2": "69",
297
+ "prescaler_type": 0
298
+ }, {
299
+ "name": "GnssDistance",
300
+ "state": 1,
301
+ "type": 0,
302
+ "id_format": 0,
303
+ "method": 0,
304
+ "f1": "6A",
305
+ "f2": "6A",
306
+ "prescaler_type": 0
307
+ }, {
308
+ "name": "GnssSpeed",
309
+ "state": 1,
310
+ "type": 0,
311
+ "id_format": 0,
312
+ "method": 0,
313
+ "f1": "6B",
314
+ "f2": "6B",
315
+ "prescaler_type": 0
316
+ }, {
317
+ "name": "GnssGeofence",
318
+ "state": 1,
319
+ "type": 0,
320
+ "id_format": 0,
321
+ "method": 0,
322
+ "f1": "6C",
323
+ "f2": "6C",
324
+ "prescaler_type": 0
325
+ }, {
326
+ "name": "ImuAlign",
327
+ "state": 1,
328
+ "type": 0,
329
+ "id_format": 0,
330
+ "method": 0,
331
+ "f1": "6E",
332
+ "f2": "6E",
333
+ "prescaler_type": 0
334
+ }, {
335
+ "name": "ImuAcc",
336
+ "state": 1,
337
+ "type": 0,
338
+ "id_format": 0,
339
+ "method": 0,
340
+ "f1": "6F",
341
+ "f2": "6F",
230
342
  "prescaler_type": 0
231
343
  }]
232
344
  },
@@ -242,7 +354,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
242
354
  },
243
355
  "signal": {
244
356
  "type": 0,
245
- "byteorder": 1,
357
+ "byteorder": 0,
246
358
  "bitpos": 0,
247
359
  "length": 0,
248
360
  "factor": 0,
@@ -260,7 +372,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
260
372
  },
261
373
  "signal": {
262
374
  "type": 0,
263
- "byteorder": 1,
375
+ "byteorder": 0,
264
376
  "bitpos": 0,
265
377
  "length": 0,
266
378
  "factor": 0,
@@ -277,7 +389,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
277
389
  "tx_state": 1
278
390
  },
279
391
  "phy": {
280
- "mode": 1,
392
+ "mode": 0,
281
393
  "retransmission": 1,
282
394
  "fd_spec": 0,
283
395
  "bit_rate_cfg_mode": 0
@@ -285,6 +397,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
285
397
  "filter": {
286
398
  "remote_frames": 0,
287
399
  "id": [{
400
+ "name": "AllStandardID",
288
401
  "state": 1,
289
402
  "type": 0,
290
403
  "id_format": 0,
@@ -292,6 +405,15 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
292
405
  "f1": "0",
293
406
  "f2": "7FF",
294
407
  "prescaler_type": 0
408
+ }, {
409
+ "name": "AllExtendedID",
410
+ "state": 1,
411
+ "type": 0,
412
+ "id_format": 1,
413
+ "method": 0,
414
+ "f1": "0",
415
+ "f2": "1FFFFFFF",
416
+ "prescaler_type": 0
295
417
  }]
296
418
  },
297
419
  "control": {
@@ -299,14 +421,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
299
421
  "control_tx_state": 0,
300
422
  "start": {
301
423
  "message": {
302
- "chn": 0,
424
+ "chn": 1,
303
425
  "id_format": 0,
304
426
  "id": "0",
305
427
  "id_mask": "7FF"
306
428
  },
307
429
  "signal": {
308
430
  "type": 0,
309
- "byteorder": 1,
431
+ "byteorder": 0,
310
432
  "bitpos": 0,
311
433
  "length": 0,
312
434
  "factor": 0,
@@ -317,14 +439,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
317
439
  },
318
440
  "stop": {
319
441
  "message": {
320
- "chn": 0,
442
+ "chn": 1,
321
443
  "id_format": 0,
322
444
  "id": "0",
323
445
  "id_mask": "7FF"
324
446
  },
325
447
  "signal": {
326
448
  "type": 0,
327
- "byteorder": 1,
449
+ "byteorder": 0,
328
450
  "bitpos": 0,
329
451
  "length": 0,
330
452
  "factor": 0,
@@ -341,7 +463,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
341
463
  "tx_state": 1
342
464
  },
343
465
  "phy": {
344
- "mode": 1,
466
+ "mode": 0,
345
467
  "retransmission": 1,
346
468
  "fd_spec": 0,
347
469
  "bit_rate_cfg_mode": 0
@@ -349,6 +471,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
349
471
  "filter": {
350
472
  "remote_frames": 0,
351
473
  "id": [{
474
+ "name": "AllStandardID",
352
475
  "state": 1,
353
476
  "type": 0,
354
477
  "id_format": 0,
@@ -356,6 +479,15 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
356
479
  "f1": "0",
357
480
  "f2": "7FF",
358
481
  "prescaler_type": 0
482
+ }, {
483
+ "name": "AllExtendedID",
484
+ "state": 1,
485
+ "type": 0,
486
+ "id_format": 1,
487
+ "method": 0,
488
+ "f1": "0",
489
+ "f2": "1FFFFFFF",
490
+ "prescaler_type": 0
359
491
  }]
360
492
  },
361
493
  "control": {
@@ -363,14 +495,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
363
495
  "control_tx_state": 0,
364
496
  "start": {
365
497
  "message": {
366
- "chn": 0,
498
+ "chn": 2,
367
499
  "id_format": 0,
368
500
  "id": "0",
369
501
  "id_mask": "7FF"
370
502
  },
371
503
  "signal": {
372
504
  "type": 0,
373
- "byteorder": 1,
505
+ "byteorder": 0,
374
506
  "bitpos": 0,
375
507
  "length": 0,
376
508
  "factor": 0,
@@ -381,14 +513,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
381
513
  },
382
514
  "stop": {
383
515
  "message": {
384
- "chn": 0,
516
+ "chn": 2,
385
517
  "id_format": 0,
386
518
  "id": "0",
387
519
  "id_mask": "7FF"
388
520
  },
389
521
  "signal": {
390
522
  "type": 0,
391
- "byteorder": 1,
523
+ "byteorder": 0,
392
524
  "bitpos": 0,
393
525
  "length": 0,
394
526
  "factor": 0,
@@ -411,12 +543,33 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
411
543
  "bit_rate": 19200
412
544
  }
413
545
  },
546
+ "routing": [{
547
+ "name": "CAN9_Pos_To_CAN1",
548
+ "state": 1,
549
+ "log": 0,
550
+ "chn_src": 0,
551
+ "id_format_src": 0,
552
+ "id_src": "67",
553
+ "chn_dst": 1,
554
+ "id_format_dst": 0,
555
+ "id_dst": "42A"
556
+ }, {
557
+ "name": "LIN1_SoC_To_CAN2",
558
+ "state": 1,
559
+ "log": 0,
560
+ "chn_src": 3,
561
+ "id_format_src": 0,
562
+ "id_src": "22",
563
+ "chn_dst": 2,
564
+ "id_format_dst": 0,
565
+ "id_dst": "321"
566
+ }],
414
567
  "connect": {
415
568
  "cellular": {
416
569
  "keyformat": 0,
417
- "pin": "",
418
- "apn": "",
419
- "roaming": 0
570
+ "pin": "1234",
571
+ "apn": "myapn.net",
572
+ "roaming": 1
420
573
  },
421
574
  "protocol": 0,
422
575
  "s3": {
@@ -426,8 +579,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
426
579
  "logfiles": 1
427
580
  },
428
581
  "server": {
429
- "request_style": 0,
582
+ "endpoint": "https://s3.us-east-1.amazonaws.com",
583
+ "port": 443,
584
+ "bucket": "mytestbucket",
585
+ "region": "us-east-1",
586
+ "request_style": 1,
587
+ "accesskey": "AKIASLWXLZB45BCE2X5O",
430
588
  "keyformat": 0,
589
+ "secretkey": "DiI12zYEf12312ASDZZZZdasdasihNqr9E34z",
431
590
  "signed_payload": 0
432
591
  }
433
592
  }
@@ -441,14 +600,13 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
441
600
  "y": 0,
442
601
  "x": 0
443
602
  },
444
- "geofence": [{
445
- "lat": 10,
446
- "lon": 20,
447
- "radius": 1
448
- }],
603
+ "geofence": [],
449
604
  "dyn_model": 0
450
605
  }
451
606
  };
607
+ dispatch(setConfigContent(demoContent));
608
+ dispatch(setUpdatedFormData(demoContent));
609
+ dispatch(setConfigFile([demoFileName]));
452
610
  dispatch(publicSchemaFiles(demoConfig, schemaAry, demoContent, uiSchemaAry));
453
611
  }
454
612
  };