public void parse4(byte[] buffer, int packetLen, Endpoints endpoint) {
    int bufLen= buffer.length;
    final String roadCode = endpoint.getRoadCode();
    final int unit = endpoint.getUnit();
    try {
        for ( int i=0;i<bufLen;i++ ) {
            if ( buffer[i] == 0x0A && i>=(packetLen -1) && buffer[i- packetLen +1] == 0x3D ) {
                int b=i - packetLen + 2;
                byte[] val=new byte[packetLen-3];
                System.arraycopy(buffer, b, val, 0, packetLen-3);
                String valString = new String(val);
                toParse(roadCode, unit, val,4);
            }
        }
    }catch (Exception e){
        exceptionTemplate.dealException(e, ProgramErrType.SERIALPORT_DECODING_EXCEPTION,"[Mina] 串口设备-解码异常",endpoint.toString(),LOG);
    }
}