RFID¶
Overview¶
This section explains how to use the AsReaderRFIDDevice to operate RFID reader functionality.
You can connect to the device, start/stop reading, and receive reading results.
Supported Devices¶
ASX-300R, ASX-301R, ASR-030D, ASR-031D,
ASR-0230D, ASR-0231D, ASR-M30S
Note
Continuous RFID tag scanning may cause the device to become warm over time.
In high-temperature environments or with prolonged scanning, consider adjusting the scan interval in the application as needed.
Classes and Protocols Used¶
Name |
Type |
Description |
|---|---|---|
Class |
Main class for controlling the RFID reader |
|
Protocol |
Delegate used for receiving reading results and other events |
Initialization and Connection¶
AsReaderRFIDDevice* device = [[AsReaderRFIDDevice alloc] init];
device.delegateRFID = self;
delegateRFID: Set this to receive RFID reading events.
Starting and Stopping Reading¶
[device startScan:5 readUntilInSec:10 repeatCycle:3]; // Start reading
[device stopScan]; // Stop reading
Receiving Reading Results¶
- (void)receivedBarcodeData:(NSData *)data {
// data: The acquired pcEPC data
}
※ Implement this method from the AsReaderRFIDDeviceDelegate protocol.