144 lines
No EOL
9.5 KiB
JavaScript
Executable file
144 lines
No EOL
9.5 KiB
JavaScript
Executable file
/*
|
|
0 - cislo registra / prikaz
|
|
1 - recepient - 0 = master, 1 = slave (slave je automaticky group a broadcast)
|
|
2 - r/rw - read/write
|
|
3- register name - nazov registra / prikazu (len pre info - zobrazenie v aplikacii)
|
|
|
|
4,5,6,7, - jednotlive byte-y - nazov byte-u
|
|
4-7 - RES. a prazdny string "" sa nezobrazia!!!
|
|
*/
|
|
|
|
//124 zaznamov
|
|
const registers = [
|
|
["0","1","R","Status","","",""],
|
|
["1","1","RW","Dimming","R-Channel ","G-Channel","B-Channel ","W - Channel"],
|
|
["2","1","R","Device types","","",".",""],
|
|
["3","1","RW","Group addresses 1-4","Groups Add. 4","Groups Add. 3","Groups Add. 2","Groups Add. 1"],
|
|
["4","1","RW","Group addresses 5-8","Groups Add. 8","Groups Add. 7","Groups Add. 6","Groups Add. 5"],
|
|
["5","1","RW","Serial number (MAC)","","","",""],
|
|
["6","1","RW","Time of dusk","HH","MM","SS","EXTRA"],
|
|
["7","1","RW","Time of dawn","HH","MM","SS","EXTRA"],
|
|
["8","1","RW","Time Schedule settings","TBD","TBD","Movement sensor","Time Schedule"],
|
|
["9","1","RW","TS1 Time point 1","HH","MM","SS","Ext. Device"],
|
|
["10","1","RW","TS1 Time point 1 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["11","1","RW","TS1 Time point 2","HH","MM","SS","Ext. Device"],
|
|
["12","1","RW","TS1 Time point 2 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["13","1","RW","TS1 Time point 3","HH","MM","SS","Ext. Device"],
|
|
["14","1","RW","TS1 Time point 3 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["15","1","RW","TS1 Time point 4","HH","MM","SS","Ext. Device"],
|
|
["16","1","RW","TS1 Time point 4 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["17","1","RW","TS1 Time point 5","HH","MM","SS","Ext. Device"],
|
|
["18","1","RW","TS1 Time point 5 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["19","1","RW","TS1 Time point 6","HH","MM","SS","Ext. Device"],
|
|
["20","1","RW","TS1 Time point 6 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["21","1","RW","TS1 Time point 7","HH","MM","SS","Ext. Device"],
|
|
["22","1","RW","TS1 Time point 7 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["23","1","RW","TS1 Time point 8","HH","MM","SS","Ext. Device"],
|
|
["24","1","RW","TS1 Time point 8 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["25","1","RW","TS1 Time point 9","HH","MM","SS","Ext. Device"],
|
|
["26","1","RW","TS1 Time point 9 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["27","1","RW","TS1 Time point 10","HH","MM","SS","Ext. Device"],
|
|
["28","1","RW","TS1 Time point 10 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["29","1","RW","TS1 Time point 11","HH","MM","SS","Ext. Device"],
|
|
["30","1","RW","TS1 Time point 11 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["31","1","RW","TS1 Time point 12","HH","MM","SS","Ext. Device"],
|
|
["32","1","RW","TS1 Time point 12 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["33","1","RW","TS1 Time point 13","HH","MM","SS","Ext. Device"],
|
|
["34","1","RW","TS1 Time point 13 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["35","1","RW","TS1 Time point 14","HH","MM","SS","Ext. Device"],
|
|
["36","1","RW","TS1 Time point 14 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["37","1","RW","TS1 Time point 15","HH","MM","SS","Ext. Device"],
|
|
["38","1","RW","TS1 Time point 15 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["39","1","RW","TS1 Time point 16","HH","MM","SS","Ext. Device"],
|
|
["40","1","RW","TS1 Time point 16 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["41","1","RW","TS2 Time point 1","HH","MM","SS","Ext. Device"],
|
|
["42","1","RW","TS2 Time point 1 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["43","1","RW","TS2 Time point 2","HH","MM","SS","Ext. Device"],
|
|
["44","1","RW","TS2 Time point 2 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["45","1","RW","TS2 Time point 3","HH","MM","SS","Ext. Device"],
|
|
["46","1","RW","TS2 Time point 3 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["47","1","RW","TS2 Time point 4","HH","MM","SS","Ext. Device"],
|
|
["48","1","RW","TS2 Time point 4 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["49","1","RW","TS2 Time point 5","HH","MM","SS","Ext. Device"],
|
|
["50","1","RW","TS2 Time point 5 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["51","1","RW","TS2 Time point 6","HH","MM","SS","Ext. Device"],
|
|
["52","1","RW","TS2 Time point 6 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["53","1","RW","TS2 Time point 7","HH","MM","SS","Ext. Device"],
|
|
["54","1","RW","TS2 Time point 7 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["55","1","RW","TS2 Time point 8","HH","MM","SS","Ext. Device"],
|
|
["56","1","RW","TS2 Time point 8 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["57","1","RW","TS2 Time point 9","HH","MM","SS","Ext. Device"],
|
|
["58","1","RW","TS2 Time point 9 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["59","1","RW","TS2 Time point 10","HH","MM","SS","Ext. Device"],
|
|
["60","1","RW","TS2 Time point 10 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["61","1","RW","TS2 Time point 11","HH","MM","SS","Ext. Device"],
|
|
["62","1","RW","TS2 Time point 11 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["63","1","RW","TS2 Time point 12","HH","MM","SS","Ext. Device"],
|
|
["64","1","RW","TS2 Time point 12 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["65","1","RW","TS2 Time point 13","HH","MM","SS","Ext. Device"],
|
|
["66","1","RW","TS2 Time point 13 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["67","1","RW","TS2 Time point 14","HH","MM","SS","Ext. Device"],
|
|
["68","1","RW","TS2 Time point 14 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["69","1","RW","TS2 Time point 15","HH","MM","SS","Ext. Device"],
|
|
["70","1","RW","TS2 Time point 15 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["71","1","RW","TS2 Time point 16","HH","MM","SS","Ext. Device"],
|
|
["72","1","RW","TS2 Time point 16 Levels","R-Channel","G-Channel","B-Channel","W - Channel"],
|
|
["73","1","RW","Power meter status","TBD","","",""],
|
|
["74","1","R","Input Voltage","","","",""],
|
|
["75","1","R","Input Current","","","",""],
|
|
["76","1","R","Input Power","","","",""],
|
|
["77","1","R","Cos phi","","","",""],
|
|
["78","1","R","Frequency","","","",""],
|
|
["79","1","RW","Energy","","","",""],
|
|
["80","1","RW","Lifetime","","","",""],
|
|
["81","1","RW","Power on cycles (input)","","","",""],
|
|
["82","1","RW","Power on cycles (relay)","","","",""],
|
|
["83","1","R","Time since last power on","","","",""],
|
|
["84","1","R","Accelerometer data","","","",""],
|
|
["85","1","RW","GPS latitude","pos/neg","deg","min ","sec"],
|
|
["86","1","RW","GPS longitude","pos/neg","deg","min ","sec"],
|
|
["87","1","RW","Actual time","HH","MM","SS","RES."],
|
|
["88","1","RW","Actual date","Day of week","Day","Month","Year"],
|
|
["89","1","R","Production data 1","","","",""],
|
|
["90","1","R","Production data 2","","","",""],
|
|
["91","1","RW","Network ID","NID3","NID2","NID1","NID0"],
|
|
["95","1","RW","Actual Lux level from cabinet","RES.","RES.","HB","LB"],
|
|
["96","1","RW","Threshold lux level","Dusk HB","Dusk LB","Dawn HB","Dawn LB"],
|
|
["97","1","RW","Adjust period","Dusk HB","Dusk LB","Dawn HB","Dawn LB"],
|
|
["98","1","RW","Offset","RES.","RES.","Dusk","Dawn"],
|
|
["99","1","RW","CCT min/max range","max-H","max-L","min-H","min-L"],
|
|
["100","1","RW","DALI interface","Cmd ID","Add","Cmd","Resp"],
|
|
["101","1","RW","Module FW ver","v1","v2","v3","v4"],
|
|
["102","1","RW","Module MAC-H","unused","unused","M1","M2"],
|
|
["103","1","RW","Module MAC-L","M3","M4","M5","M6"],
|
|
["122","1","R","FW update status/control register","Byte3","Byte2","Byte1","Byte0"],
|
|
["123","1","R","FW update - data index","Byte3","Byte2","Byte1","Byte0"],
|
|
["124","1","R","FW update - data","Byte3","Byte2","Byte1","Byte0"],
|
|
["0","0","R","Status","","","",""],
|
|
["1","0","RW","Control register","RES.","RES.","RES.","init mode enable"],
|
|
["2","0","R","Device types","","","",""],
|
|
["3","0","R","Serial number (MAC)","","","",""],
|
|
["4","0","R","Production data 1","","","",""],
|
|
["5","0","R","Production data 2","","","",""],
|
|
["6","0","RW","Network ID","NID3","NID2","NID1","NID0"],
|
|
["7","0","RW","RS232 settings","param.","param.","Baudrate H","Baudrate L"],
|
|
["8","0","R","Accelerometer data","","","",""],
|
|
["9","0","RW","Module FW ver","v1","v2","v3","v4"],
|
|
["10","0","RW","Module MAC-H","unused","unused","M1","M2"],
|
|
["11","0","RW","Module MAC-L","M3","M4","M5","M6"],
|
|
["32","0","RW","FW update status/control register","Byte3","Byte2","Byte1","Byte0"],
|
|
["33","0","RW","FW update - data index","Byte3","Byte2","Byte1","Byte0"],
|
|
["34","0","RW","FW update - data","Byte3","Byte2","Byte1","Byte0"],
|
|
["125","0","RW","Debug Register","Byte3","Byte2","Byte1","Byte0"],
|
|
["126","0","RW","Network Control Register","Byte3","Byte2","Byte1","Byte0"],
|
|
["127","0","R","Network Status Register","Byte3","Byte2","Byte1","Byte0"],
|
|
["128","0","RW","Node XX Serial Number Register","SER3","SER2","SER1","SER0"],
|
|
["256","0","R","Node XX Network Status Register","","","",""]
|
|
];
|
|
|
|
let register = {};
|
|
|
|
module.exports = {
|
|
registers,
|
|
register
|
|
} |