Not much I can help you with there.
]]>core.console("lf search")
It will easily show you if pm3 client does recoqnise it.. (which it doesnt since I tried it)
]]>What is the purpose with the script besides the obvious "write to a t55x7 tag". With yr four core.console commands you archive it.
core.console mimics running a command on commandprompt in the client. So you see the feedback on screen as normal but you don't get "access" to the response inside the luascript. Concerning yr question about verify, it comes down to how to verify it. Do you mean to verfiy that the writes went well? or do you mean that the t55xx tag is mimicing a valid tag (ie test 'lf search') ? Do you want it to be automatic or human verification?
]]>what I did is take FC, CN, and format. Creates three blocks data accordingly and trying to write each block one by one.
local writecmd = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK,arg1 ="60107060", arg2 ="00", arg3 = "00", data = "00"}
local writecmd1 = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK,arg1 ="01D55955", arg2 ="01", arg3 ="00" , data = "00"}
local writecmd2 = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK,arg1 ="5569A569", arg2 ="02", arg3 ="00" , data = "00"}
local writecmd3 = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK,arg1 ="5A956599", arg2 ="03", arg3 ="00" , data = "00"}
local err = core.SendCommand(writecmd:getBytes())
if err then return oops(err) end
err = core.SendCommand(writecmd1:getBytes())
if err then return oops(err) end
err = core.SendCommand(writecmd2:getBytes())
if err then return oops(err) end
err = core.SendCommand(writecmd3:getBytes())
if err then return oops(err) end
local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT)
So, here I got error While writing block 1. Error says "number is Malformed"
I don't know what does it mean.