update Encoder to compatible with HM10.0