command.txt 5.4 KB
A1\nA2\nA3\n
{"ADDR":"99","colorset":[[1,125,0,0],[2,125,125,0],[3,0,0,125],[4,0,125,0],[5,255,97,0],[15,125,125,125],[16,0,0,0]]}

{"ADDR":"1","color":[[1,1,2,3],[2,4,5,6],[3,7,8,9,10,11,12,13,14]]}\n{"ADDR":"2","color":[[1,1,2,3],[2,4,5,6],[3,7,8,9,10,11,12,13,14]]}\n{"ADDR":"3","color":[[1,1,2,3],[2,4,5,6],[3,7,8,9,10,11,12,13,14]]}

{"ADDR":"99","ledrange":[1,1,100]}

{"ADDR":"0","lightoff":[1,2,3,4,5,6]}
{"ADDR":"0","lighton":[1,2,3,4,5,6]}
{"ADDR":"0","reset":"true"}

ss25mm[]={1,2,3,4,5,6,7,11,12,13,14,15,16,17,
21,22,23,24,25,26,27,31,32,33,34,35,36,
41,42,43,44,45,46,47,51,52,53,54,55,56,
61,62,63,64,65,66,67,71,72,73,74,75,76,
81,82,83,84,85,86,87,91,92,93,94,95,96};
ss54mm[]={1,2,3,4,5,
21,22,23,24,25,26,27,
41,42,43,44,45,46,47,
61,62,63,64,65,66,67,
81,82,83,84,85,86,87};
ss16mm[] = {1,---100}

{"ADDR":"2","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]]}/n{"ADDR":"3","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]]}/n

{"ADDR":"1","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]]}\n{"ADDR":"2","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n{"ADDR":"3","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n{"ADDR":"4","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n{"ADDR":"5","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n{"ADDR":"6","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n{"ADDR":"7","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n{"ADDR":"8","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n{"ADDR":"9","color":[[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66]]}\n

,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100



{"ADDR":"99","setcalibrate":[1,100,600,150],"threshold":45}
{"ADDR":"99","calibrate":"min","threshold":45}
{"ADDR":"99","setcalibrate":"max","threshold":45}
{"ADDR":"1","ledtype":[1,1,1,1,1]}
{"ADDR":"99","action":"siteid","hwid":"FFFFFFF","addr":1}
version 0.3  0708

scan command:"A1\nA2\nA3\n"   //for example this command means scan addr 1,2,3 and return 1,2 and 3 location status
/*
the answer is like this 
A1[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]\n
A2[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]\n
A3[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]\n

*/
// the best way is this 
{"scan":"true","ADDR":"1"}\n
// the answer will be A1[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]\n

quick scan command:"T\n" // scan all of addrs from 1 to 9 and return the answer in hex 
the answer is like this 
A1[23fc98745ad6c7a53f45c4b94]\n
A2[23fc98745ad6c7a53f45c4b94]\n
A3[0000000000000000000000000]\n





control led command: {"ADDR":"1","colorset:[[1,255,0,0],[2,0,255,255],[5,132,142,110]]}\n{"ADDR":"1","color":[[1,10,20,30],[2,31,37,49],[5,1,3,5,7,9,11,14,18]]}\n{"ADDR":"3","color":[[1,10,20,30],[2,31,37,49],[5,1,3,5,7,9,11,14,18]]}\n"
// colorset value means color index and RGB, color value means color value index and led index

turn on/off all leds:"{"ADDR":"1","colorset":[[1,255,255,255]]}\n{"ADDR":"1","ledrange":[1,1,100]}" // turn on 
                      "{"ADDR":"1","ledrange":[1,1,100]}\n"  // turn off


{"ADDR":"1","setcalibrate":[1,100,600,150,30]} //  it contain as {"ADDR":"??","setcalibrate":[start NO,end NO,MAX value ,MIN value ,threshold ]} if you dont want to change the the value you can put -1 
// for example if you want only change threshold of addr 1 sensor No.15 the comand will be like this {"ADDR":"1","setcalibrate":[15, 15 , -1 , -1 , 25 ]} which change the threshold to 25% 
{"ADDR":"1","getcalibrate":[1,100,1,1,1]} // it will show you the amount of calibration data from sensor 1 to 100  if you want to check sensor No.23 it is the sample comand {"ADDR":"1","getcalibrate":[23,23,1,1,1]}

{"ADDR":"1","calibrate":"min"}
{"ADDR":"1","calibrate":"max"}










main controller function 
{"ADDR":"0","lightoff":[1,2,3,4,5,6]}
{"ADDR":"0","lighton":[1,2,3,4,5,6]}
{"ADDR":"0","reset":"true"}