26 lines
1.0 KiB
Markdown

# AISU 830T Basic Sample
The Basic Sample provides a complete Unity UI for Windows reader integration: COM-port selection, connection state, card information, and error logs.
## Import
1. Install `xin.aisu.card-reader-830t` through Unity Package Manager.
2. Open the package details and import **Basic** from **Samples**.
3. Open the imported `Scenes/CardReaderSample.unity` scene.
## Select a COM port and connect
1. Run the project on Windows in the Unity Editor or a Windows Standalone build.
2. Click **Refresh** to scan the available COM ports.
3. Select the COM port connected to the AISU 830T reader.
4. Confirm the UART settings in the scene's `CardReaderManager.SerialOptions`.
5. Click **Open**.
## Present a card
After the reader connects, present a card. The UI displays `CardType`, `CardTypeCode`, and the decimal `CardNumber` when the reader reports card data.
## Disconnect
Click **Close** to close the connection and stop automatic reconnect. The Manager also releases serial resources when the scene or application is destroyed.