def METHOD_NAME(dec_code, decstr):	
	Constant = '1010000000000001'
	Start =    '1111111111111111'
	TempBin =  '0000000000000000'
	Bin = '00000000' + bin(int('02', 16))[:2].zfill(8) 
	TempBin.zfill(16)
	Bin.zfill(16)
	l = 0
	for k in range(0,  6):
		Code = dec_code[k+l] + dec_code[k+l+1]
		l = l + 1
		Bin = '00000000' + bin(int(Code, 16))[2:].zfill(8)
		#---------------Start-----------------------
		TempBin =  '0000000000000000'
		Last = Start[len(Start)-1]
		for i in range(0,  len(Start)):
			if Bin[i] == Start[i] :
				TempBin = TempBin[:i] + '0' + TempBin[:(len(TempBin) - 1) - i]
			else:
				TempBin = TempBin[:i] + '1' + TempBin[:(len(TempBin) - 1) - i]		
		Bin = TempBin	
		#--------------End start--------------------	
		for j in range(0,  8) :
			Last = Bin[len(Bin)-1]
			TempBin =  '0000000000000000'
			if Last == '1' :
				for i in range(0,  len(Constant)) :
					if i == 0 :
						if Constant[i]  == '0' :
							TempBin = TempBin[:i] + '0' + TempBin[:(len(TempBin) - 1) - i]
						else :
							TempBin = TempBin[:i] + '1' + TempBin[:(len(TempBin) - 1) - i]
					else :
						if Bin[i-1] == Constant[i] :
							TempBin = TempBin[:i] + '0' + TempBin[:(len(TempBin) - 1) - i]
						else :
							TempBin = TempBin[:i] + '1' + TempBin[:(len(TempBin) - 1) - i]
				Bin = TempBin
			else :
				Bin = Bin[:-1]
				Bin = '0' + Bin
		Start = Bin
		CRCH = Bin
		CRCH = CRCH[8:]
		CRCL = Bin
		CRCL = CRCL[:8]
	SerialByte[6] = '%.2x' %  int(CRCH, 2)
	SerialByte[7] = '%.2x' %  int(CRCL, 2)