Skip to content

74e0d6e do not work in IAR5.3 #5

@maxever

Description

@maxever

Hello
74e0d6e do not work in query-ack mode under the condition IAR 5.3. (optimizations low or none)
I use the sense reader to query the wisp . Through oscilloscope, I found that wisp replied the reader's query command with RN 16,but did not reply the ack command with correct handle.
Then I changed the ack judgement code in case STATE_REPLY:
" if ( bits == NUM_ACK_BITS && ( ( cmd[0] & 0xC0 ) == 0x40 ) )"
to
"if ( bits >=8 && ( ( cmd[0] & 0xC0 ) == 0x40 ) )".
And changed the ack function:
"if ( NUM_ACK_BITS == 20 )
while ( TAR <90 );
else
while ( TAR < 400 ); "
to
"if ( NUM_ACK_BITS == 20 )
while ( TAR <800);
else
while ( TAR < 400 ); "
After changing
the reader can query the wisp very well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions