Overview
This Tutorial provides a walk-through of the steps toThis Tutorial provides a walk-through of the steps to enable or disable beeper on the device using RFID3 API
Create The Project
- Start by creating a new project in Android Studio. For help, see the Android Studio tutorial.
- Refer Hello RFID to prepare basic setup to work with RFID Reader and then follow this guide
Details
Beeper volume can be controlled with three volume levels
- BEEPER_VOLUME.HIGH_BEEP
- BEEPER_VOLUME.MEDIUM_BEEP
- BEEPER_VOLUME.LOW_BEEP
- BEEPER_VOLUME.QUIET_BEEP
Beeper Volume Settings Compatibility for Devices
| BEEPER_VOLUME | HandHeld Readers | TC53E-Rfid,EM45,ET60/65, ET401, TC501/701, TC22R |
|---|---|---|
| BEEPER_VOLUME.HIGH_BEEP | ✔ | ✔ |
| BEEPER_VOLUME.MEDIUM_BEEP | ✔ | ✖ |
| BEEPER_VOLUME.LOW_BEEP | ✔ | ✖ |
| BEEPER_VOLUME.QUIET_BEEP | ✔ | ✔ |
Setting it up
By default beeper is enabled. Following code snippet can be used once connected to control beeper on the device for RFID operations
/* Disbale beeper */
reader.Config.setBeeperVolume(BEEPER_VOLUME.QUIET_BEEP);
/* Enable device beeper */
reader.Config.setBeeperVolume(BEEPER_VOLUME.HIGH_BEEP);
For RFD40/90 volume control can be set using the following:
int sledBeeperVolume = 2;
BEEPER_VOLUME sledBeeper = BEEPER_VOLUME.HIGH_BEEP;
sledBeeperVolume.setVolumeControl(sledBeeperVolume);
reader.Config.setBeeperVolume(sledBeeper);
Volume control value can be given from 0 - 15 for LOW, MEDIUM and HIGH. Value 0 is for backward compatibility (legacy support). Fine tuning of volume happens from 1 to 15.
NOTE: User has to make sure supported firmware is used for this feature to work.