Skip to content

Add credit card reader test (New)#2300

Open
rickwu666666 wants to merge 8 commits intomainfrom
add-credit-card-reader-test
Open

Add credit card reader test (New)#2300
rickwu666666 wants to merge 8 commits intomainfrom
add-credit-card-reader-test

Conversation

@rickwu666666
Copy link
Contributor

Description

Add test for credit card reader. We develop the test script according to the Verifone's credit card reader. However, we check if the device echo ACK \x06 back after sending out enquiry string \x05 which is a quite common method to check if serial device's connection established.

Resolved issues

Documentation

Tests

sideload result
https://certification.canonical.com/hardware/202511-38101/submission/469103/test-results/

@rickwu666666 rickwu666666 requested a review from a team January 22, 2026 10:38
@rickwu666666 rickwu666666 added the ce-oem The PR only contains to the ce-oem provider under the contrib area label Jan 22, 2026
@rickwu666666 rickwu666666 marked this pull request as draft January 23, 2026 01:55
@rickwu666666
Copy link
Contributor Author

We have a credit card reader(verifone MX870) that is powered by USB port and communicate over serial port, which means checking device from the udevadm/lsusb output is not really mean that device connected and ready. Therefore, I will stay with current implamentation to send enquiry string to the device port and try to get the ACK form device.

@rickwu666666 rickwu666666 force-pushed the add-credit-card-reader-test branch from e413735 to 9099328 Compare January 26, 2026 06:17
@rickwu666666 rickwu666666 marked this pull request as ready for review January 26, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ce-oem The PR only contains to the ce-oem provider under the contrib area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants