Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with sequence number <seq> #4

Open
Alviunta opened this issue Feb 3, 2022 · 0 comments
Open

Problem with sequence number <seq> #4

Alviunta opened this issue Feb 3, 2022 · 0 comments

Comments

@Alviunta
Copy link

Alviunta commented Feb 3, 2022

Hello, I am using this library and everything seemed to be working fine at first when sending few packages.
But then when trying to send a large number of packets I started getting "Exception: CRC of Answer incorrect."
After some time of analysis and reading standards, I noticed that hexadecimal values ​​appeared in the sequence field. According to what is established in SIA-DC-09 the maximum value for this field is 9999 which makes me understand that hexadecimal values ​​should not be used here.
It is also indicated that for more information, section 7.1.5 of SIA-DC-07 should be reviewed, in which it indicates that the sequence number is a 4-byte field whose ASCII characters represent a 16-bit BCD value.
Is it possible that there is an error in the implementation?

An example:
"ADM-CID"0009R0L0#FFFF[#1111|1401 01 001] does not return an exception, works fine
"ADM-CID"000BR0L0#FFFF[#1111|1401 01 001] returns the mentioned exception

Thanks for your time.
Greetings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant