日期:2014-05-17  浏览次数:20834 次

关于明华kfr-35 读卡器 修改密码问题
 skey = "ffffffffffff";
                    key1 = Encoding.ASCII.GetBytes(skey);
                    common.a_hex(key1, key2, 12);
                    st = common.rf_load_key(icdev, 0, iii, key2);
                    if (st != 0)
                    {
                        MessageBox.Show("密码装载失败!");
                        return;
                    }
                    st = common.rf_load_key(icdev, 4, iii, key2);
                    if (st != 0)
                    {
                        MessageBox.Show("密码装载失败!");
                        return;
                    }


                    common.rf_reset(icdev, 3);
                    st = common.rf_request(icdev, 1, out tagtype);
                    if (st != 0)
                    {
                        MessageBox.Show("request error!");