I am trying to simulate a reader using the LLRP Toolkit. I have trouble
in accessing the OpSpec List for the Tag Access Command. In the client
end, I see that I am populating the ACCESS_SPEC correctly. In fact, the
same ACCESS_SPEC from the client works on the Impinj reader. Here's my
reader side code snippet:
CAccessCommand *pAccCmd = pAccSpec->getAccessCommand();
if (pAccCmd != NULL)
{
printf("%s: Processing Access Command type:%d, name:%s", __FUNCTION__,
pAccCmd->m_pType->m_TypeNum, pAccCmd->m_pType->m_pName);
...
CC1G2TagSpec *tspec = (CC1G2TagSpec*)pAccCmd->getAirProtocolTagSpec();
printf("%s: Adding tagSpec type %d, name %s", __FUNCTION__,
tspec->m_pType->m_TypeNum, tspec->m_pType->m_pName);
...
std::list<CParameter *>::iterator spec;
for (spec = pAccCmd->beginAccessCommandOpSpec(); spec !=
pAccCmd->endAccessCommandOpSpec(); spec++);
{
printf("%s: Processing and Adding OpSpec of type %d, name:%s",
__FUNCTION__, (*spec)->m_pType->m_TypeNum, (*spec)->m_pType->m_pName);
....
}
}
The m_pType for CAccessCommand and CC1G2TagSpec is correct. The data for
(*spec) is all messed up. Is there a bug in the toolkit.
Thanks,
Arun
RevaSystems
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel