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