Files
controller-wisetopdataserver/python/res/devlib/json/Elite_TRIG_0.1.devlib.json
T
2023-06-13 09:51:43 +08:00

488 lines
10 KiB
JSON

{
"name": "Elite_TRIG_0.1",
"version": "1.2.30",
"match_rule": {
"local_name_pattern": "Elite.*",
"major_product_number": 0,
"minor_product_number": 5,
"major_version_number": 1,
"minor_version_number": 0
},
"constant": {
"TIME_MAX": 100000,
"BLE_WRITE_MAX": 255
},
"parameters": {
"USED": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 1
]
},
"value": "VALUE"
},
"T_EARLY": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"V_EARLY": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"CYCLE": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"T_MID0": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"T_MID1": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"T_MID2": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"T_MID3": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"V_MID0": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 1
]
},
"value": "VALUE"
},
"V_MID1": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 1
]
},
"value": "VALUE"
},
"V_MID2": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 1
]
},
"value": "VALUE"
},
"V_MID3": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 1
]
},
"value": "VALUE"
},
"T_LATE": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"V_LATE": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 86400000
]
},
"value": "VALUE"
},
"CURRENT": {
"initial": [0, 0, 0, 0, 0, 0, 0, 0],
"domain": {
"list": [
0, 50000
]
},
"value": "VALUE"
},
"OUTPUT_5V": {
"initial": [false, false, false, false, false, false, false, false],
"domain": {
"list": [
0, 1
]
},
"value": "VALUE"
},
"ADC_VALUE_I": {
"description": "ADC value current value",
"domain": "int"
},
"BLE_WRITE": {
"description": "send msg to elite",
"domain": {
"list": [
"BLE_WRITE_MAX"
]
},
"initial": "[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]",
"value": "VALUE"
},
"BLE_READ": {
"description": "receive msg from elite",
"domain": "int"
},
"TIME_DURATION": {
"description": "timer",
"record_meta": true,
"initial": 0,
"domain": [
"TIME_MAX"
],
"value": {
"expression": "VALUE"
}
},
"ACC_a_out0": {
"description": "Switch of analog current channel 1",
"record_meta": true,
"initial": 0,
"value": [
0,
1
],
"on_change": "set_para_AOUT0"
},
"ACC_a_out0_current": {
"description": "current value of analog current channel 1",
"record_meta": true,
"initial": 0,
"domain": [
50001
],
"value": {
"expression": "VALUE"
},
"on_change": "set_para_AOUT0"
},
"ACC_a_out1": {
"description": "Switch of analog current channel 2",
"record_meta": true,
"initial": 0,
"value": [
0,
1
],
"on_change": "set_para_AOUT1"
},
"ACC_a_out1_current": {
"description": "current value of analog current channel 2",
"record_meta": true,
"initial": 0,
"domain": [
50001
],
"value": {
"expression": "VALUE"
},
"on_change": "set_para_AOUT1"
},
"ACC_a_out2": {
"description": "Switch of analog current channel 3",
"record_meta": true,
"initial": 0,
"value": [
0,
1
],
"on_change": "set_para_AOUT2"
},
"ACC_a_out2_current": {
"description": "current value of analog current channel 3",
"record_meta": true,
"initial": 0,
"domain": [
50001
],
"value": {
"expression": "VALUE"
},
"on_change": "set_para_AOUT2"
},
"ACC_a_out3": {
"description": "Switch of current channel 4",
"record_meta": true,
"initial": 0,
"value": [
0,
1
],
"on_change": "set_para_AOUT3"
},
"ACC_a_out3_current": {
"description": "current value of analog current channel 4",
"record_meta": true,
"initial":0,
"domain": [
50001
],
"value": {
"expression": "VALUE"
},
"on_change": "set_para_AOUT3"
},
"TRIG0_en": {
"description": "Switch of current channel 4",
"record_meta": true,
"initial": 0,
"value": [
0,
1
]
},
"TRIG1_en": {
"description": "Switch of current channel 4",
"record_meta": true,
"initial": 0,
"value": [
0,
1
]
},
"TRIG0_edge_type": {
"description": "Switch of current channel 4",
"record_meta": true,
"initial": 0,
"value": [
"RISING",
"FALLING",
"BOTH"
]
},
"TRIG1_edge_type": {
"description": "Switch of current channel 4",
"record_meta": true,
"initial": 0,
"value": [
"RISING",
"FALLING",
"BOTH"
]
},
"MODE": {
"description": "working mode",
"record_meta": true,
"value": [
"Analog Current Control (ACC)",
"Idle",
"Dev Mode",
"Trigger"
]
},
"CHANNEL": {
"description": "delete it",
"record_meta": true,
"domain": "property",
"value": "[0, 1, 2]"
},
"CHANNEL_LABEL": {
"description": "delete it",
"record_meta": true,
"domain": "property",
"value": "['current', 'voltage', 'impedance']"
},
"SAMPLE_RATE": {
"description": "delete it",
"record_meta": true,
"initial": 1000,
"domain": [
1001
],
"value": {
"expression": "VALUE"
},
"on_change": "set_sample_rate"
},
"AMP_GAIN": {
"description": "delete it",
"record_meta": true,
"domain": "constant",
"value": 1
}
},
"instruction": {
"start": [
{
"expression": "MODE",
"when": {
"*": "start_data"
}
}
],
"start_data": [
"data_format",
"_notify(True)",
{
"expression": "MODE",
"when": {
"0": "set_aout_chan_en"
}
},
{
"expression": "MODE",
"when": {
"0": "set_TRIG_EN"
}
},
{
"expression": "MODE",
"when": {
"0": "curve_acc"
}
},
"_sync(True)",
"VIS_STI"
],
"data_format": [
"_data_format('I4V4Z4T4')",
{
"expression": "MODE",
"when": {
"0": "_disable_cache(True)",
"1": "_disable_cache(True)",
"*": "_disable_cache(False)"
}
}
],
"dev_version": [
"CIS_VERSION",
"_cdr('20X>ADC_VALUE_I')"
],
"dev_battery": [
"CIS_VOLT",
"_cdr('20X>ADC_VALUE_I')"
],
"ble_instru_send": [
"ble_write",
"_cdr('20X>ADC_VALUE_I')"
],
"ble_write": {
"type": "RIS",
"data": [
"XFF;",
"1B>BLE_WRITE[0];1B>BLE_WRITE[1];1B>BLE_WRITE[2];1B>BLE_WRITE[3];",
"1B>BLE_WRITE[4];1B>BLE_WRITE[5];1B>BLE_WRITE[6];1B>BLE_WRITE[7];",
"1B>BLE_WRITE[8];1B>BLE_WRITE[9];1B>BLE_WRITE[10];1B>BLE_WRITE[11];",
"1B>BLE_WRITE[12];1B>BLE_WRITE[13];1B>BLE_WRITE[14];1B>BLE_WRITE[15];",
"1B>BLE_WRITE[16];"
]
},
"curve_acc": {
"type": "RIS",
"parameter": {
"va": "ACC_a_out0_current",
"vb": "ACC_a_out1_current",
"vc": "ACC_a_out2_current",
"vd": "ACC_a_out3_current"
},
"data": [
"X0E;",
"2B>va;2B>vb;2B>vc;2B>vd"
]
},
"set_aout_chan_en": {
"type": "RIS",
"parameter": {
"va": "ACC_a_out0",
"vb": "ACC_a_out1",
"vc": "ACC_a_out2",
"vd": "ACC_a_out3"
},
"data": [
"X81;X02;",
"4b>va;4b>vb;4b>vc;4b>vd"
]
},
"set_TRIG_EN": {
"type": "RIS",
"parameter": {
"va": "TRIG0_en",
"vb": "TRIG1_en",
"vc": "TRIG0_edge_type",
"vd": "TRIG1_edge_type"
},
"data": [
"X41;",
"4b>va;4b>vb;4b>vc;4b>vd"
]
},
"set_para_AOUT0": {
"type": "RIS",
"data": [
"XE2;X02;X00;2B>ACC_a_out0_current;1B>ACC_a_out0"
]
},
"set_para_AOUT1": {
"type": "RIS",
"data": [
"XE2;X02;X01;2B>ACC_a_out1_current;1B>ACC_a_out1"
]
},
"set_para_AOUT2": {
"type": "RIS",
"data": [
"XE2;X02;X02;2B>ACC_a_out2_current;1B>ACC_a_out2"
]
},
"set_para_AOUT3": {
"type": "RIS",
"data": [
"XE2;X02;X03;2B>ACC_a_out3_current;1B>ACC_a_out3"
]
}
}
}