+--local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT)
+--print("Raw response:")
+--show(response)
+
+local answer = ""
+while answer ~='q' do
+
+ local err = core.SendCommand(mf_auth:getBytes())
+ if err then
+ print(err)
+ return nil, err
+ end
+ local nonce = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT)
+ print("Nonce:")
+ show(nonce)
+ io.write("Write q to quit, hit any char to get a nonce ")
+ io.flush()
+ answer=io.read(1)
+
+end--]]