# List of methods ## getPlatformVersion Get the platform version. ```dart Future getPlatformVersion() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future - Platform version ```
## getSDKVersion Get the SDK version. ```dart Future getSDKVersion() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future - SDK version ```
## showPrintNSLog Set whether to output SDK Log. ```dart Future showPrintNSLog(bool isShow) async ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isShow - bool - Whether to output Log
true: Output
false: Do not output ```
## getReaderInfo Get the data information of AsReader. After execution, receive AsReader data information using the callback method [READER_INFO_RECEIVED](callbacks.md#reader-info-received). ```dart Future getReaderInfo(int infoType) ``` ### Parameters ```{list-table} :align: left :class: list-table *-argument name - type - Description * - infoType - int - Data type
0: Module, 1: RFID Version, 2: Manufacturer, 3: Frequency, 4: Tag type ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getCurrentBattery Get the remaining battery power of AsReader. After execution, receive the remaining battery level of AsReader using the callback method [BATTERY_RECEIVED](callbacks.md#battery-received). ```dart Future getCurrentBattery() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Battery level ```
## setTriggerMode Sets the trigger mode of AsReader. ```dart Future setTriggerMode(bool isDefault) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isDefault - bool - true: perform default action with trigger key (scan)
false: Execute user customized behavior ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Method execution result
true: success
false: failure ```
## setBeep Configure AsReader's beep, vibration, LED, and aiming. After execution, the callback method [DID_SET_BEEP](callbacks.md#did-set-beep) receives the settings results for AsReader's beep, LED, and aiming. ```dart Future setBeep(bool isBeep,bool vibration,bool batteryGaugeLed,bool barcodeAimer) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isBeep - bool - Beep on/off
true: on
false: off *-vibration - bool - Vibration on/off
true: on
false: off * - batteryGaugeLed - bool - LED on/off
true: on
false: off * - barcodeAimer - bool - Aiming on/off
true: on
false: off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setBeepIncludePowerOnBeep Configure AsReader's beep, vibration, LED, aiming, and power-on beep. ```dart Future setBeepIncludePowerOnBeep(bool isBeep,bool vibration,bool batteryGaugeLed,bool barcodeAimer,bool barcodePowerOnBeep) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isBeep - bool - Beep on/off
true: on
false: off * - vibration - bool - Vibration on/off
true: on
?false: off * - batteryGaugeLed - bool - LED on/off
true: on
false: off * - barcodeAimer - bool -Aiming on/off
true: on
false: off * - barcodePowerOnBeep - bool - Power-on beep on/off
true: on - Method execution result
true: success
false: failure ```
## setReaderPower Set the beep, vibration, LED, aiming, and power-on beep at the same time you power on AsReader. After execution, the callback method [CONNECTED_STATUS](callbacks.md#connected-status) receives the AsReader connection status, and the callback method [POWER_ON_OFF](callbacks.md#power-on-off) receives the AsReader connection status and hardware status. ```dart Future setReaderPower(bool isOn,bool beep,bool vibration,bool led,bool illumination,bool connectedBeep,int mode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - bool - Power on/off
true: on
false: off * - beep - bool - Beep on/off
true: on
false: off * - vibration - bool - Vibration on/off
true: on
false: off * - led - bool - LED on/off
true: on
false: off * - illumination - bool - Aiming on/off
true: on
false: off * - connectedBeep - bool - Power-on beep on/off
true: on
false: off * - mode - int - AsReader type
99: Unknown, 0: Barcode, 1: RFID, 2: NFC ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - 0: Failed to send command
1: Command sent successfully
99: Unknown AsReader type ```
## setTagCount Set the counting conditions for scanned RF tags. ```dart Future setTagCount(int mtnu,int mtime,int repeatCycle) async ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - argument name mtnu - type int - Maximum number of RF tags to read * - argument name mtime - type int - Maximum time for reading * - argument name repeatCycle - type int - Number of read repetitions ```
## setChargingControl Set whether to charge the smartphone at the same time when charging the AsReader with the Magconn cable. ```dart Future setChargingControl(bool isOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - bool - Charging settings
true: Charge
False: Do not charge ```
## getDelayDisconnectOnBackground Gets the time from when the app is in the background until the connection with AsReader is broken. ```dart Future getDelayDisconnectOnBackground() ``` ### Return value ```{list-table} :align: left :class: list-table * - type -Description * - Future\ - Time from when the app is in the background until it is disconnected ```
## isOpened Get the AsReader connection status. ```dart Future isOpened() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - true: Connected
false: not connected ```
## setStopTagNum Set the conditions to stop reading RF tags. ```dart Future setStopTagNum(int maxTags,int maxTime,int repeatCycle) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type -Description * - maxTags - int - Maximum number of RF tags to read * - maxTime - int - Maximum time for reading * - repeatCycle - int - Number of read repetitions ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getStopCondition Get the value of StopCondition. After execution, receive the value of StopCondition in the callback method [STOP_CONDITIONS_RECEIVED](callbacks.md#stop-conditions-received). ```dart Future getStopCondition() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## reset Reset AsReader. ```dart Future reset() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ -Method execution result
true: success
false: failure ```
## getAutoLaunch Gets the app's autostart status when connecting to AsReader. (M24D only) After execution, receive the app's autolaunch status in the callback method [RECEIVED_GET_AUTO_LAUNCH](callbacks.md#received-get-auto-launch). ```dart Future getAutoLaunch() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setAutoLaunch Set whether the demo app starts automatically when connected to AsReader. (M24D only) ```dart Future setAutoLaunch(bool enable,String bundleId) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - argument name enable - type bool - App auto-start
true: on
false: off * - argument name bundleId - type String - Bundle ID ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSleepBeep Set AsReader's automatic sleep function. (M24D only) After execution, the setting result of AsReader's automatic sleep function will be received using the callback method [RECEIVED_SLEEP_BEEP](callbacks.md#received-sleep-beep). ```dart Future setSleepBeep(bool isOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - bool - true: on
false: off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSleepTime Set automatic sleep time for AsReader. (M24D only) After execution, the result of AsReader's automatic sleep time setting will be received using the callback method [RECEIVED_SLEEP_BEEP](callbacks.md#received-sleep-beep). ```dart Future setSleepTime(int time) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - time - int - sleep time ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getSleepTime Get AsReader's automatic sleep time. (M24D only) ```dart Future getSleepTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## startBleScan Start searching for Bluetooth devices. After execution, the callback method [SCAN_BLE_STATUS](callbacks.md#scan-ble-status) will receive the search results for the Bluetooth device, and the callback method [SCANING_BLE_DEVICE](callbacks.md#scaning-ble-device) will receive the search results for the Bluetooth name. ```dart Future startBleScan() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## stopBleScan Stop searching for Bluetooth devices. ```dart Future stopBleScan() ```
## disConnectBLE Disconnect from the Bluetooth device. ```dart Future disConnectBLE() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## connectBLE Connect to your Bluetooth device. ```dart Future connectBLE(String deviceName) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - deviceName - String - Name of the Bluetooth device connected to the iOS device ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getSleepTimeForBLEDevice Get the sleep time of a Bluetooth device. After execution, receive the sleep time of the Bluetooth device obtained/set using the callback method [RECEIVED_SLEEP_TIME_AND_ISACK](callbacks.md#received-sleep-time-and-isack) and [RECEIVED_SLEEP_TIME](callbacks.md#received-sleep-time). ```dart Future getSleepTimeForBLEDevice() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
1: Success
0: Failure ```
## setSleepTimeForBLEDeviceType Set the sleep time for your Bluetooth device. After execution, receive the sleep time of the Bluetooth device obtained/set using the callback method [RECEIVED_SLEEP_TIME_AND_ISACK](callbacks.md#received-sleep-time-and-isack) and [RECEIVED_SLEEP_TIME](callbacks.md#received-sleep-time). ```dart Future setSleepTimeForBLEDeviceType(int min,int type) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - min - int - Bluetooth device sleep time * - type - int - How to save

0: Permanent preservation
1: Temporarily save ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
1: Success
0: Failure ```
## startBarcodeScan Start scanning the barcode. After execution, the scan results will be notified using one of the following callback methods: -**[RECEIVED_SCAN_DATA](callbacks.md#received-scan-data)**Receive scanned barcode data. -**[RECEIVED_SCAN_DATA_AND_DATA_TYPE](callbacks.md#received-scan-data-and-data-type)**Receive barcode data and its data type. -**[RECEIVED_SCAN_BARCODE_DATA](callbacks.md#received-scan-barcode-data)** Receive barcode data and data type. *This callback is available on **some models only**, such as **ASR-025S**. ```dart Future startBarcodeScan(int numberOfTags,int readUntilInSec) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - numberOfTags - int - Maximum number of barcodes read * - readUntilInSec - int - Maximum time that can be read at one time ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
1: Success
0: Failure ```
## stopBarcodeScan Stop barcode scanning. ```dart Future stopBarcodeScan() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
1: Success
0: Failure ```
## doFactoryReset Restore the barcode module to factory settings. ```dart Future doFactoryReset() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setCustomPrefix Set the same prefix for all types of barcodes. ```dart Future setCustomPrefix(String prefix) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - prefix - String - prefix string ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setDisableCustomPrefix Delete the prefix set with setCustomPrefix. ```dart Future setDisableCustomPrefix() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setCustomSuffix Set the same suffix for all types of barcodes. ```dart Future setCustomSuffix(String suffix) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - suffix - String - suffix string ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Method execution result
true: success
false: failure ```
## setDisableCustomSuffix Removes the suffix specified by setCustomSuffix. ```dart Future setDisableCustomSuffix() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSymbologyPrefix Depending on the barcode type, set the appropriate prefix for each barcode type. A list of prefixes and corresponding barcode types can be found at Please refer to "5.1 Symbol Table" in [Barcode Setting Manual](https://asreader.jp/download/asr-0230d/docs/AsReaderCombo&GUN_Barcode_Setting_Manual_Rev1_8.pdf). ```dart Future setSymbologyPrefix() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setDisableSymbologyPrefix Delete the prefix specified with setSymbologyPrefix. ```dart Future setDisableSymbologyPrefix() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setCodeID Set the CodeID type. (M24D only) ```dart Future setCodeID(int type,bool isBeepOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - type - int - 0:None, 1:Aim, 2:Symbol * - isBeepOn - bool - true: on
false: off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Method execution result
true: success
false: failure ```
## setOCRType Set the OCR type and on/off. (M24D only) ```dart Future setOCRType(int type,bool isBeepOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - type - int - 0:NONE, 1:A, 2:B, 3:AB * - isBeepOn - bool - true: on
false: off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ -Method execution result
true: success
false: failure ```
## setAndroidHIDEnable Set whether to turn on Android HID mode. (M24D only) ```dart Future setAndroidHIDEnable(int isOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - int - 1: On
0: Off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setiOSHIDEnable Set whether to turn on iOS HID mode. (M24D only) ```dart Future setiOSHIDEnable(int isOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - int - 1: On
0: Off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setPresentationMode Set presentation mode on/off. (M24D only) ```dart Future setPresentationMode(bool isOn,bool isBeepOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - bool - Presentation mode status
1: On
0: Off * - isBeepOn - bool - 1: On
0: Off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getCodeID Get CodeID. (M24D only) After execution, you will receive the CodeID in the callback method [RECEIVED_CODE_ID](callbacks.md#received-code-id). ```dart Future getCodeID() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getHID Get the HID mode status. (M24D only) After execution, receive the HID mode status in the callback method [RECEIVED_HID](callbacks.md#received-hid). ```dart Future getHID() ``` ### Return value ```{list-table} :align: left :class: list-table * - type -Description * - Future\ - Method execution result
true: success
false: failure ```
## getSymbologies Get the barcode type reading status. (M24D only) After execution, receive the reading status of the barcode type in the callback method [RECEIVED_SYMBOLOGIES](callbacks.md#received-symbologies). ```dart Future getSymbologies() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSsiParamWithData Configure SSI parameters. (M24D only) ```dart Future setSsiParamWithData(Uint8List symbolData,bool beepOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - symbolData - Uint8List - data * - beepOn - bool - true: on
false: off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSsiParamWithDictionary Configure SSI parameters. (M24D only) After execution, receive the Ssi parameter setting results using the callback method [RECEIVED_BARCODE_SET_SSI_SUCCESS](callbacks.md#received-barcode-set-ssi-success). ```dart Future setSsiParamWithDictionary(Map symbologies,bool beepOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - symbologies - Map - data * - beepOn - bool - true: on
false: off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ -Method execution result
true: success
false: failure ```
## getPresentationMode Gets the presentation mode status. (M24D only) After execution, receive the presentation mode status in the callback method [RECEIVED_PRESENTATION_MODE](callbacks.md#received-presentation-mode). ```dart Future getPresentationMode() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getSecurity Get the barcode security level. (M24D only) After execution, receive the security level of the barcode in the callback method [RECEIVED_BARCODE_SECURITY](callbacks.md#received-barcode-security). ```dart Future getSecurity() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## startScan Start reading the RF tag. After execution, receive scanned data with callback method [RECEIVED_SCAN_DATA](callbacks.md#received-scan-data), receive data and data type with [RECEIVED_SCAN_DATA_AND_DATA_TYPE](callbacks.md#received-scan-data-and-data-type), Receive the EPC data of the RF tag with [PC_EPC_RECEIVED](callbacks.md#pc-epc-received). ```dart Future startScan(int numberOfTags,int readUntilInSec,int repeatCycle) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - numberOfTags - int - Maximum number of RF tags to read * - readUntilInSec -int - Maximum time for reading * - repeatCycle - int - Number of read repetitions ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## stopRfidScan Stop reading RF tags. ```dart Future stopRfidScan() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## startReadTagsAndRssiWithTagNum AsReader turns on the RSSI function when reading RF tags. After execution, receive RF tag data with RSSI information using the callback method [PC_EPC_RSSI_RECEIVED_AND_RSSI](callbacks.md#pc-epc-rssi-received-and-rssi). ```dart Future startReadTagsAndRssiWithTagNum(int maxTags, int maxTime, int repeatCycle) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - maxTags - int - Maximum number of RF tags to read * - maxTime - int - Maximum time for reading * - repeatCycle - int -Number of read repetitions ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## startReadTagAndTidWithTagNum AsReader turns on the TID function when reading RF tags. After execution, receive the EPC and TID data of the RF tag using the callback method [EPC_RECEIVED_AND_TID](callbacks.md#epc-received-and-tid). ```dart Future startReadTagAndTidWithTagNum(int maxTags,int maxTime, int repeatCycle) ``` ### Parameters ```{list-table} :align: left :class: list-table *-argument name - type - Description * - maxTags - int - Maximum number of RF tags to read * - maxTime - int - Maximum time for reading * - repeatCycle - int - Number of read repetitions ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## startReadTagsRFM Turn on AsReader's temperature/humidity RF tag reading function. After execution, receive the temperature/humidity data of the RF tag read using the callback method [PC_EPC_SENSOR_DATA_RECEIVED](callbacks.md#pc-epc-sensor-data-received), and _EPC_SENSOR_DATA_RECEIVED_RSSI](callbacks.md#pc-epc-sensor-data-received-rssi) Receives the temperature/humidity data of the RF tag with RSSI information read. ```dart Future startReadTagsRFM(int codeType,int maxTags,int maxTime, int repeatCycle) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - codeType - int - RF tag type to read:
Temperature tag: 3, Humidity tag: 2 * - maxTags -int - Maximum number of RF tags to read * - maxTime - int - Maximum time for reading * - repeatCycle - int - Number of read repetitions ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getSelectParameter Get the parameters of AsReader's select function. After execution, receive the select parameter acquisition result using the callback method [SELECT_PARAM_RECEIVED](callbacks.md#select-param-received). ```dart Future getSelectParameter() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSelectParameter Set the filter function when reading RF tags. ```dart Future setSelectParameter(int target,int action,int memoryBank,int pointer, int length,int truncate,Uint8List mask) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - target - int - session: S0: 000, S1: 001, S2: 010, S3: 011, SL: 100 *-action - int - Reference standard: ISO18000-6C * - memoryBank - int - Memory bank: RFU: 00, EPC: 01, TID: 10, User: 11\``` * - pointer - int - Start address * - length - int - length of data * - truncate - int - Whether to crop filtered data:
On: 1, Off: 0 * - mask - Uint8List - Filter data ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getChannel Acquires RF channel when in non-hopping mode. After execution, receive the RF channel acquisition result using the callback method [CHANNEL_RECEIVED_AND_CHANNEL_OFFSET](callbacks.md#channel-received-and-channel-offset). ```dart Future getChannel() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setReadTime Set the read time and idle time. After execution, the callback method [ON_OFF_TIME_CHANGED](callbacks.md#on-off-time-changedd) receives the setting results of the read time and idle time. ```dart Future setReadTime(int readTime,int idleTime) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - readTime - int - Reading time (ms) * - idleTime - int - Idle time (ms) ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setChannel Sets the RF channel when in non-hopping mode. After execution, receive the RF channel setting results using the callback method [DID_SET_CHANNEL_PARAM_RECEIVED](callbacks.md#did-set-channel-param-received). ```dart Future setChannel(int channel,int channelOffset) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - channel - int - channel value * - channelOffset - int - Mirror subcarrier channel offset ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getFhLbtParameter Get FH and LBT parameters. After execution, callback methods [FHLBT_RECEIVED](callbacks.md#fhlbt-received), [RFID_ON_OFF_TIME_RECEIVED](callbacks.md#rfid-on-off-time-received), [QUERY_ Receive the FH and LBT parameter acquisition results with [PARAM_RECEIVED](callbacks.md#query-param-received) and [FREQ_HP_TABLE_RECEIVED](callbacks.md#freq-hp-table-received). ```dart Future getFhLbtParameter() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ -Method execution result
true: success
false: failure ```
## setFhLbtParameter Set the FH and LBT parameters. After execution, the FH and LBT parameter setting results are received using the callback method [DID_SET_FREQ_HP_TABLE](callbacks.md#did-set-freq-hp-table). ```dart Future setFhLbtParameter(int readTime, int idleTime, int carrierSenseTime, int targetRFPowerLevel, int frequencyHopping, int listenBeforeTalk, int continuousWave) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - readTime - int -Reading time (ms) * - idleTime - int - Idle time (ms) * - carrierSenseTime - int - Career sense time
Fixed value: 50 * - targetRFPowerLevel - int - Target RF power level
Fixed value: -740 * - frequencyHopping - int - On: 1 or more, Off: 0 * - listenBeforeTalk - int - On: 1 or more, Off: 0 * - continuousWave - int - Fixed value: 0 ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getOutputPowerLevel Get the current output power and maximum and minimum output power. After execution, the callback method [TX_POWER_LEVEL_RECEIVED_POWER](callbacks.md#tx-power-level-received-power) receives the current output power, maximum, and minimum output power acquisition results. ```dart Future getOutputPowerLevel() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setOutputPowerLevel Set the current output power. After execution, receive the power setting result using the callback method [DID_SET_OUTPUT_POWER_LEVEL](callbacks.md#did-set-output-power-level). ```dart Future setOutputPowerLevel(int powerLevel) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - powerLevel - int - Output power
Japanese output power range: 18~24dBm
Output power range outside Japan: 18~25dBm ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## writeTagMemoryWithAccessPassword Write data to the RF tag. After execution, the callback method [ERROR_RECEIVED](callbacks.md#error-received) receives error information, and the callback method [WRITTEN_RECEIVED](callbacks.md#written-received) receives the data written to the RF tag. ```dart Future writeTagMemoryWithAccessPassword(Int32 accessPassword, Uint8List epc, int memoryBank, int startAddress, Uint8List dataToWrite) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - accessPassword - Int32 -access password * - epc - IUint8List - Target tag * - memoryBank - Iint - RFU: 0, EPC: 1, TID: 2, User: 3 * - startAddress - Iint - Start address (unit: word) * - dataToWrite - Uint8List - Write data ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## killTagWithPassword Kill the RF tag. Note: Before killing a tag, you must set a kill password. After execution, the error information is received using the callback method [ERROR_RECEIVED](callbacks.md#error-received), and the RF tag kill result is received using the callback method [KILL_RECEIVED](callbacks.md#kill-received). ```dart Future killTagWithPassword(Int32 accessPassword, Uint8List epc) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - accessPassword - Int32 - Kill password
Invalid if 00000000 * - epc - Uint8List - EPC data of target RF tag ``` ### Return value ```{list-table} :align: left :class: list-table * - type -Description * - Future\ - Method execution result
true: success
false: failure ```
## lockTagMemoryWithAccessPassword Lock the RF tag. After execution, the error information is received using the callback method [ERROR_RECEIVED](callbacks.md#error-received), and the RF tag lock result is received using the callback method [LOCKED_RECEIVED](callbacks.md#locked-received). ```dart Future lockTagMemoryWithAccessPassword(Int32 accessPassword,Uint8List epc,int lockData) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - accessPassword -Int32 - access password
If 00000000, RF tag cannot be locked * - epc - Uint8List - EPC data of target RF tag * - lockData - int - Tag lock data
0: Kill
1: Access
2: EPC
3: TID
4: USER ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getFrequencyHoppingTable Get the current hopping table. After execution, receive the hopping table acquisition results using the callback method [HOPPING_TABLE_RECEIVED](callbacks.md#hopping-table-received). ```dart Future getFrequencyHoppingTable() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setFrequencyHoppingTableSize Set up the hopping table. After execution, receive the hopping table setting result using the callback method [DID_SET_OPTI_FREQ_HPTABLE](callbacks.md#did-set-opti-freq-hptable). ```dart Future setFrequencyHoppingTableSize(int tableSize, Uint8List channels) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - tableSize - int - Table size (8 digits) * - channels - Uint8List - Channel number (variable) ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getRssi Get RSSI. ```dart Future getRssi() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getSession Get the current session. After execution, receive the session acquisition result using the callback method [SESSION_RECEIVED](callbacks.md#session-received). ```dart Future getSession() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSession Sets the current session. After execution, receive the session setting results using the callback method [DID_SET_SESSION](callbacks.md#did-set-session). ```dart Future setSession(int session) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - session - int - S0:0, S1:1, S2:2, S3:3 ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getAnticollision Get the anti-collision algorithm. After execution, receive the results of the anti-collision algorithm using the callback method [ANTICOL_PARAM_RECEIVED_AND_COUNTER](callbacks.md#anticol-param-received-and-counter). ```dart Future getAnticollision() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setAnticollision Set the anti-collision algorithm. After execution, the anti-collision algorithm setting result is received in the callback method [DID_SET_ANTI_COLLISION](callbacks.md#did-set-anti-collision). ```dart Future setAnticollision(int mode,int counter) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - mode - int - Fixed Q: 0, Dynamic Q: 1 * - counter - int - Counter (default value: 1) ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## updateRegistry Update the registry. After execution, the registry update results are received using the callback method [UPDATED_REGISTERY](callbacks.md#updated-registery). ```dart Future updateRegistry() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getRFIDModuleVersion Get the RFID module version of AsReader. After execution, the callback method [RFID_MODULE_VERSION_RECEIVED](callbacks.md#rfid-module-version-received) receives the acquisition result of AsReader's RFID module version. ```dart Future getRFIDModuleVersion() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setHoppingOnOff Set hopping and LBT parameters. After execution, the hopping and LBT parameter setting results are received in the callback method [DID_SET_FHLBT](callbacks.md#did-set-fhlbt). ```dart Future setHoppingOnOff(bool isOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - bool -true: set hopping argument to 2, LBT argument to 1
false: set hopping argument to 1, LBT argument to 2 ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## writeTagMemoryWithEPC Write data to the RF tag. After execution, receive the data writing results using the callback method [WRITTEN_RECEIVED](callbacks.md#written-received). ```dart Future writeTagMemoryWithEPC(Uint8List epc,String dataToWrite) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - epc - Uint8List - EPC data of target tag * - epcdataToWrite - Uint8ListString - Write data ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ -Method execution result
true: success
false: failure ```
## setRSSIThreshold Set the RSSI filter conditions. ```dart Future setRSSIThreshold(int threshold) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - threshold - int - RSSI value: 50=-50dBm ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getRSSIThreshold Get the RSSI filter conditions. After execution, the callback method [RSSI_THRESHOLD_RECEIVED](callbacks.md#rssi-threshold-received) receives the RSSI filter condition, and the callback method [UNKNOWN_COMMAND_RECEIVED](callbacks.md#unknown-command-received) receives the undefined command. ```dart Future getRSSIThreshold() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getQueryParameter Get A/I query parameters of type C. ```dart Future getQueryParameter() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## readTagWithAccessPassword Reads tag data from the specified memory. After execution, the callback method [ERROR_RECEIVED](callbacks.md#error-received) receives error information, and the callback method [TAG_MEMORY_RECEIVED](callbacks.md#tag-memory-received) receives the reading result of the tag data in the memory specified. ```dart Future readTagWithAccessPassword(Int32 accessPassword, Uint8List epc, int memoryBank, int startAddress, int dataLength) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - accessPassword - Int32 - access password * - epc - Uint8List - Target tag * - memoryBank - int - RFU: 0, EPC: 1, TID: 2, User: 3 * - startAddress - int - Start address (unit: word) * - dataLength - int - Data length (unit: word) ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setQueryParam Set the query command. ```dart Future setQueryParam(int divideRatio,int m,int trext,int selection, int session,int target,int qValue) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - divideRatio - int - DR=8(0), DR=64/3(1) * - m - int - M=1 (0), M=2 (1), M=4 (2), M=8 (3) * - trext - int - No pilot tone: 0, Use pilot tone: 1 * - selection - int - All: 0 or 1, ~SL: 2, SL: 3 *-session - int - S0:0, S1:1, S2:2, S3:3 * - target - int - A: 0, B: 1 * - qValue - int - 0-15, number of slots for inventory recycling ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setRfCw Configure continuous wave signal control for RF tags. ```dart Future setRfCw(bool on) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - on - bool -Continuous wave (CW) signal on/off
This command is valid only in idle mode ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getModulation Get the current modulation mode. After execution, receive the modulation mode acquisition result using the callback method [MODULATION_PARAM_RECEIVED_RXMOD_DR](callbacks.md#modulation-param-received-rxmod-dr). ```dart Future getModulation() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Method execution result
true: success
false: failure ```
## setModulationBLF Set the modulation mode. After execution, receive the modulation mode setting result using the callback method [DID_SET_MODULATION](callbacks.md#did-set-modulation). ```dart Future setModulationBLF(int blf,int rxMod,int dr) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - blf - int - BLF_160:160, BLF_250:250, BLF_320:320, BLF_640:640 * - blfrxMod - intint - FM0:0, M2:1, M4:2, M8:3 *-blfdr - intint - 8:0, 64/3:1 ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## blockEraseTagMemoryWithAccessPassword Block and erase RF tag data. ```dart Future blockEraseTagMemoryWithAccessPassword(Int32 accessPassword, Uint8List epc, int memoryBank, int startAddress, int dataLength) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type -Description * - accessPassword - Int32 - access password
Default: 0x00000000 * - epc - Uint8List - EPC data of target tag * - memoryBank - int - Target memory banks: 0x00 RFU, 0x01 EPC, 0x02 TID, 0x03 USER * - startAddress - int - Start address * - dataLength - int - length of data ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getTemperature Get the temperature. ```dart Future getTemperature() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setOptimumFrequencyHoppingTable Set up the perfect hopping table. ```dart Future setOptimumFrequencyHoppingTable() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getRegistryItem Get the registry table. After execution, receive the registry table acquisition result using the callback method [REGISTERY_ITEM_RECEIVED](callbacks.md#registery-item-received). ```dart Future getRegistryItem(int registryItem) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - registryItem - int - Registry table version: 0x0000
Firmware date: 0x0001
Frequency band: 0x0002
Output Pao: 0x0003
FH/LBT: 0x0004
Anti-collision mode: 0x0005
Modulation mode: 0x0006
Query (Q): 0x0007
Hopping table: 0x0008
Tx power table: 0x0009 ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setFrequencyHoppingMode Set hopping mode. After execution, receive the hopping mode setting result using the callback method [DID_SET_FHMODE_CHANGED](callbacks.md#did-set-fhmode-changed). ```dart Future setFrequencyHoppingMode(int mode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - mode - int - Hopping mode
0: Normal mode, 1: Smart hopping mode ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getFrequencyHoppingMode Get hopping mode. ```dart Future getFrequencyHoppingMode() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSmartHoppingOnOff Set hopping mode. ```dart Future setSmartHoppingOnOff(bool isOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isOn - bool - Hopping mode
true: smart hopping mode
false: normal mode ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getRegion Get local information. After execution, receive the regional information acquisition results using the callback method [REGION_RECEIVED](callbacks.md#region-received). ```dart Future getRegion() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setReadRSSIMode Get RFID module information and region information. ```dart Future setReadRSSIMode(bool isReadRSSIMode) async ``` Set whether to read the RF tag's RSSI data when pressing the Trigger key in RFID mode.
## getRfidModuleInformation ```dart Future getRfidModuleInformation() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - RFID module: true
Not RFID module: false ```
## 2.99sendData Send data. ```dart Future sendData(Uint8List sendData) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - sendData - Uint8List - Transmission data ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setInventoryTime Set inventory time. ```dart Future setInventoryTime(double inventoryTime) ``` ```{list-table} :align: left :class: list-table * - argument name - type - Description * - inventoryTime -double - Inventory time ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## startNFCScan Start scanning the NFC tag. After execution, the callback method [RECEIVED_SCAN_DATA](callbacks.md#received-scan-data) receives the scanned data, and the callback method [RECEIVED_SCAN_DATA_AND_DATA_TYPE](callbacks.md#received-scan-data-and-data-type) receives the scanned data and data type. ```dart Future startNFCScan() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## stopNFCScan Stop scanning NFC tags ```dart Future stopNFCScan() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## readMultiBlockWithBlockIndex Reads multiple consecutive blocks of data on the IC tag memory with the specified UID. After execution, receive the NFC tag reading result using the callback method [NFC_READ_MULTI_BLOCK_RECEIVED](callbacks.md#nfc-read-multi-block-received). ```dart Future readMultiBlockWithBlockIndex(int index, int count) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - index - int - First read block number (0~255) * - count - int - Number of blocks read (0~255) ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## writeSingleBlockWithBlockIndex Writes a single block of data to the IC tag memory with the specified UID. After execution, receive the NFC tag write result using the callback method [NFC_WRITE_SINGLE_BLOCK_STATUS_CODE](callbacks.md#nfc-write-single-block-status-code). ```dart Future writeSingleBlockWithBlockIndex(int index, Uint8List writeData, Uint8List uid) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - index - int - First read block number (0~255) * - writeData -Uint8List - Write data (size of each block is 4bit) * - uid - Uint8List - NFC tag UID data ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## writeBytesWithBlockIndex Writes multiple blocks of data to the IC tag memory with the specified UID. After execution, receive the NFC tag write result using the callback method [NFC_WRITE_BYTES_STATUS_CODE](callbacks.md#nfc-write-bytes-status-code). ```dart Future writeBytesWithBlockIndex(int index, Uint8List writeData, Uint8List uid) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - index - int - First read block number (0~255) *-writeData -Uint8List -Write data (size of each block is 4bit) *-uid -Uint8List -NFC tag UID data ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## startLfScan Starts automatic inventory of RF tags. After execution, the callback method [RECEIVED_SCAN_DATA](callbacks.md#received-scan-data) receives the inventoried data, and the callback method [RECEIVED_SCAN_DATA_AND_DATA_TYPE](callbacks.md#received-scan-data-and-data-type) receives the inventoried data and data type. ```dart Future startLfScan(int numberOfTags, int readUntilInSec, int repeatCycle) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - numberOfTags - int - Maximum number of RF tags to read * - readUntilInSec - int -Maximum time for reading * - repeatCycle - int - Number of read repetitions ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## stopLfScan Stop automatic inventory of RF tags. ```dart Future stopLfScan() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## isShowPrintNSLog Get the output status of SDK Log. ```dart Future isShowPrintNSLog() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - SDK Log output status
true: Output
false: do not output ```
## bundleIdentifier Get the unique identifier of an iOS application. ```dart Future bundleIdentifier() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Unique identifier for iOS applications ```
## deviceName Get the device name of AsReader. ```dart Future deviceName() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - AsReader device name ```
## deviceFirmware Get the AsReader firmware. ```dart Future deviceFirmware() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - AsReader firmware ```
## deviceHardware Get the hardware version of AsReader. ```dart Future deviceHardware() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - AsReader hardware version ```
## deviceID Get the ID of AsReader. ```dart Future deviceID() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - ID of AsReader ```
## deviceManufacturer Get AsReader manufacturer information. ```dart Future deviceManufacturer() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - AsReader manufacturer information ```
## deviceModelNumber Get the model number of AsReader. ```dart Future deviceModelNumber() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - AsReader model number ```
## deviceSerialNumber Get the AsReader serial number. ```dart Future deviceSerialNumber() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - AsReader serial number ```
## deviceProtocol Gets the AsReader protocol. ```dart Future deviceProtocol() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - AsReader protocol ```
## currentSelectDevice Get the selected AsReader. ```dart Future currentSelectDevice() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Selected AsReader ```
## isPowerOn Get power status. ```dart Future isPowerOn() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Power status
true: power on
false: power off ```
## supportMode Get the supported modes. ```dart Future supportMode() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Supported modes ```
## currentReaderMode Get the current mode. ```dart Future currentReaderMode() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Current mode ```
## receiveDataType Gets the AsReader type. ```dart Future receiveDataType() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - AsReader type:
-1:Unknown, 0:Barcode, 1:RFID, 2:NFC, 3:RFIDLF ```
## dualSameTime Gets whether DUAL mode is supported. ```dart Future dualSameTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - true: on
false: off ```
## isBeep Get the beep status. ```dart Future isBeep() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Peep status
true: on
false: off ```
## isVibration Get the vibration status. ```dart Future isVibration() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Vibration status
true: on
false: off ```
## isLED Get the LED status. ```dart Future isLED() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - LED status
true: on
false: off ```
## isIllumination Get the illumination status. ```dart Future isIllumination() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - illumination
true: on
false: off ```
## count ```dart Future count() ``` Get the maximum number of RF tags to read. ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Maximum number of RF tags to read ```
## scanTime Get the maximum reading time. ```dart Future scanTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Maximum time for reading ```
## cycle Gets the number of read repetitions. ```dart Future cycle() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Number of read repetitions ```
## isTriggerModeDefault Gets the trigger mode of AsReader. ```dart Future isTriggerModeDefault() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Trigger mode
true: Perform default action (scan)
false: customization mode ```
## isReadRSSIMode Gets the setting of whether to read RSSI values. ```dart Future isReadRSSIMode() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Whether to read the RSSI value of the RF tag
true: read
false: do not read ```
## isEnginePowerAlwaysOn If the connected AsReader is a model that automatically turns on the power, it will get On. (For M24D, always on) ```dart Future isEnginePowerAlwaysOn() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - true: on
false: off ```
## barcodeEngineType Get the type of barcodeEngineType. ```dart Future barcodeEngineType() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - type of barcodeEngineType

0:NONE
1:HONEYWELL
2:ZEBRA
3:ZEBRA_SSI ```
## carrierSenseTime Get career sense time. ```dart Future carrierSenseTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Career sense time ```
## targetRFPowerLevel Get the target RF power level. ```dart Future targetRFPowerLevel() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Target RF power level ```
## isSmartHopping Get hopping mode. ```dart Future isSmartHopping() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Hopping mode
true: smart hopping mode
false: normal mode ```
## rfidPower Get the current power. ```dart Future rfidPower() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Current power ```
## rfidPowerMax Get maximum power. ```dart Future rfidPowerMax() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ -maximum power ```
## rfidPowerMin Get the minimum power. ```dart Future rfidPowerMin() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - minimum power ```
## rfidOnTime Get RFID on time. ```dart Future rfidOnTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - RFID on time ```
## rfidOffTime Get RFID off time. ```dart Future rfidOffTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - RFID off time ```
## rfidChannel Get RFID channel. ```dart Future rfidChannel() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - RFID channel ```
## rfidListenBeforeTalk Get LBT. ```dart Future rfidListenBeforeTalk() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - L.B.T. ```
## rfidFrequencyHopping Get RFID hopping. ```dart Future rfidFrequencyHopping() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - RFID hopping ```
## rfidContinuousWave Obtain continuous scans of RF tags. ```dart Future rfidContinuousWave() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - RF tag continuous scanning ```
## rfidModuleVersion Get the RFID module version. ```dart Future rfidModuleVersion() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - RFID module version ```
## isSupportType Gets whether AsReader supports the entered module type. ```dart Future isSupportType(int supportType) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - supportType - int - -1:SupportTypeNone
0:SupportTypeBarcode
1:SupportTypeRFID
2:SupportTypeNFC
3:SupportTypeDual
4:SupportTypeRFIDLF ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Whether to support the input module type
true: Support
false: not supported ```
## setConnectionType Set the connection method. ```dart Future setConnectionType(int type) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - type - int - 0: ConnectionTypeUSB
1: ConnectionTypeBLE ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getConnectionType Get the connection method. ```dart Future getConnectionType() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - 0: ConnectionTypeUSB
1: ConnectionTypeBLE ```
## getSupportTypeArray Gets the module type array supported by AsReader. ```dart Future> getSupportTypeArray() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\> - Supported module type array ```
## parseDataByProtocolType Analyze the data read by L70D. ```dart Future> parseDataByProtocolType(Uint8List data,int type) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - data - Uint8List - data * - type - int - Fixed value: 0 ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\> - The return value type is Map, and the key value is as follows.
Key_FDBX_NationalCode
Key_FDBX_CountryCode
Key_FDBX_StatusFlag
Key_FDBX_AnimalIndicator
Key_FDBX_Reserved ```
## setDelayDisconnectOnBackground Set the time after the app is put in the background until it disconnects from AsReader. ```dart Future setDelayDisconnectOnBackground(double time) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - time - double - Time to disconnect ``` ## getAutoOffTime Set the automatic off time for AsReader. After executing this method, receive AsReader's automatic off time using the callback method [DID_GET_AUTO_OFF_TIME_RECEIVED](callbacks.md#did-get-auto-off-time-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S, ASR-025S**. ```dart Future getAutoOffTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setAutoOffTime Set the automatic off time for AsReader. After executing this method, you will receive the AsReader automatic off time set in the callback method [DID_SET_AUTO_OFF_TIME](callbacks.md#did-set-auto-off-time). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S, ASR-025S**. ```dart Future setAutoOffTime(int time) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - time - int - Auto off time (0~1800s) 0: Do not turn off automatically ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Method execution result
true: success
false: failure ``` ## getContinuousMode Gets whether AsReader is in continuous scan mode. When you run this method, you will be notified whether the AsReader is in continuous scan mode through the callback method [DID_GET_CONTINUOUS_MODE_RECEIVED](callbacks.md#did-get-continuous-mode-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future getContinuousMode() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setContinuousMode Sets whether AsReader operates in continuous scan mode. When this method is executed, the continuous scan setting result will be notified through the callback method [DID_SET_CONTINUOUS_MODE](callbacks.md#did-set-continuous-mode). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future setContinuousMode(bool isContinuousMode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - isContinuousMode - bool - true: continuous scan false: single scan ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ``` ## getHidMode Gets whether it is HID mode. When you run this method, you will be notified whether the AsReader is in HID mode through the callback method [DID_GET_HID_MODE_RECEIVED](callbacks.md#did-get-hid-mode-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future getHidMode() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Method execution result
true: success
false: failure ```
## setHidMode Set HID mode. When this method is executed, the HID mode setting result of AsReader will be notified through the callback method [DID_SET_HID_MODE](callbacks.md#did-set-hid-mode). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future setHidMode(bool hidMode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - hidMode - bool - true: HID mode false: not HID mode ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ``` ## getQValue Get the Q value. After executing this method, receive the Q value of AsReader using the callback method [DID_GET_Q_VALUE_RECEIVED](callbacks.md#did-get-q-value-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart FuturegetQValue() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setQValue Set the Q value. After executing this method, you will receive the Q value set in the callback method [DID_SET_Q_VALUE](callbacks.md#did-set-q-value). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future setQValue(int value) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - value - int - Q ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ``` ## getSessionFlag Get SessionFlag. After executing this method, receive AsReader's SessionFlag using the callback method [DID_GET_SESSION_FLAG_RECEIVED](callbacks.md#did-get-session-flag-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future getSessionFlag() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setSessionFlag Set SessionFlag. After executing this method, receive the SessionFlag setting result using the callback method [DID_SET_SESSION_FLAG](callbacks.md#did-set-session-flag). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future setSessionFlag(int sessionFlag) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - sessionFlag - int - SessionFlag ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failed ``` ## getDutyRatio Get the duty ratio. After executing this method, receive the AsReader duty ratio using the callback method [DID_GET_DUTY_RATIO_RECEIVED](callbacks.md#did-get-duty-ratio-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future getDutyRatio() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setDutyRatio Set the duty ratio. Range: 0-15 0: Full load; 1: 5%; 2: 10%; 3: 15%; 4: 20%; 5: 25%; 6: 30%; 7: 35%; 8: 40%; 9: 45%; 10: 50%; 11: 55%; 12: 60%; 13: 70%; 14: 80%; 15: 90% *Example: 5% means stopping for 5%. After executing this method, receive the duty ratio setting result using the callback method [DID_SET_DUTY_RATIO](callbacks.md#did-set-duty-ratio). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future setDutyRatio(int dutyRatio) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - dutyRatio - int - Duty ratio ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ``` ## getDutyRatioBaseTime Get the duty ratio reference time. After executing this method, receive the duty ratio reference time using the callback method [DID_GET_DUTY_RATIO_BASE_TIME_RECEIVED](callbacks.md#did-get-duty-ratio-base-time-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future getDutyRatioBaseTime() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description *-Future\ - Method execution result
true: success
false: failure ```
## setDutyRatioBaseTime Set the duty ratio reference time. After executing this method, you will receive the duty ratio reference time setting result using the callback method [DID_SET_DUTY_RATIO_BASE_TIME](callbacks.md#did-set-duty-ratio-base-time). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-M30S**. ```dart Future setDutyRatioBaseTime(int dutyRatioBaseTime) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - dutyRatioBaseTime - int -Duty ratio reference time ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getSleepBuzzer Gets the buzzer when auto-off. After executing this method, you will receive the buzzer for auto-off using the callback method [DID_GET_SLEEP_BUZZER_RECEIVED](callbacks.md#did-get-sleep-buzzer-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-025S**. ```dart Future getSleepBuzzer() ``` ### Return value ```{list-table} :align: left :class: list-table * - type -Description * - Future\ - Method execution result
true: success
false: failure ```
## setSleepBuzzer Set the buzzer for auto-off. After executing this method, receive the buzzer setting results for auto-off using the callback method [DID_SET_SLEEP_BUZZER](callbacks.md#did-set-sleep-buzzer). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-025S**. ```dart Future setSleepBuzzer(bool sleepBuzzer) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - sleepBuzzer - bool -true: Buzzer On false: Buzzer Off ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## getBarcodeTimeOut Gets the barcode scanning timeout time of AsReader. When you run this method, you can receive the AsReader's barcode scanning timeout time in the callback method [DID_GET_BARCODE_TIME_OUT_RECEIVED](callbacks.md#did-get-barcode-time-out-received). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-025S**. ```dart Future getBarcodeTimeOut() ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```
## setBarcodeTimeOut Set the timeout period for AsReader barcode scanning. After executing this method, you can receive the result of the set timeout time in the callback method [DID_SET_BARCODE_TIME_OUT](callbacks.md#did-set-barcode-time-out). > ⚠️ **Attention** > This feature is only supported by **some models**such as **ASR-025S**. ```dart Future setBarcodeTimeOut(int timeout) ``` ### Parameters ```{list-table} :align: left :class: list-table * - argument name - type - Description * - timeout - int - Scan timeout time (4~300s) ``` ### Return value ```{list-table} :align: left :class: list-table * - type - Description * - Future\ - Method execution result
true: success
false: failure ```