public static ArrayList<String> extractTsConf(String[] frame){
  ArrayList<String> sorti=new ArrayList<>();
  String info=General.hexToBin(frame[6]);
  for (; info.length() < 8; ) {
    info="0" + info;
  }
  String timeslot=String.valueOf(Integer.parseInt(info.substring(5,8),2));
  if (info.charAt(1) == '1') {
    sorti.add(timeslot);
    sorti.add("1");
  }
 else {
    sorti.add(timeslot);
    sorti.add("0");
  }
  return sorti;
}

public static ArrayList < String > extractTsConf ( String [ ] frame ) { ArrayList < String > sorti = new ArrayList < > ( ) ; String info = General . hexToBin ( frame [ 6 ] ) ; for ( ; info . length ( ) < 8 ; ) { info = "0" + info ; } String timeslot = String . valueOf ( Integer . parseInt ( info . substring ( 5 , 8 ) , 2 ) ) ; if ( info . charAt ( 1 ) == '1' ) { sorti . add ( timeslot ) ; sorti . add ( "1" ) ; } else { sorti . add ( timeslot ) ; sorti . add ( "0" ) ; } return sorti ; }
extract time slot used for an immediate assignment ( frame has to be splitted before )
