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

-Add Microchip SEC1210 UART Support. #34

Closed

Conversation

FabioAraujo1977
Copy link

  • Adding support for Microchip SEC1210 Dual reader.

@LudovicRousseau
Copy link
Owner

Thanks for the PR.
I did not know that the SEC1210 was also available with a serial connection.

@@ -7,6 +7,7 @@
# GemCoreSIMPro2
# GemPCPinPad
# GemPCTwin (default value)
# SEC1210 (Dual Uart Reader)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you mean "dual slot" here?
The way the two slots are internally managed is not really relevant for users.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right

if (0 == strcasecmp(reader_name,"SEC1210"))
{
tx_buffer[0] = 0x06;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I will change the code to use a if () {} else {} here.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this command 0x06?
The command 0x02 used to get the firmware does not work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when we sent 0x02 to get firmware version,
"03 06 6B 01 00 00 00 00 00 00 00 00 02 6D"
we received
frame: "83 00 00 00 00 00 00 41 00 00" - "Command not supported."

when we sent 0x06 to get firmware version,
"03 06 6B 01 00 00 00 00 00 00 00 00 06 69"
we received
frame: "83 01 00 00 00 00 00 01 00 00 22", "Everything OK."

@LudovicRousseau
Copy link
Owner

Committed in ec652d2
Thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants