I just thinking that for serial port, how I going to define the commands. Its like this as show below?
record[0] = group0Record0;
record[1] = group0Record1;
record[2] = group0Record2;
record[3] = group0Record3;
record[4] = group0Record4;
record[5] = group0Record5;
record[6] = group0Record6;
or
case x 11:
break;
case x12:
break;