added rx msg length field in header
start to handle rx bit in a case switch statement type scenario with own
function