Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Ask the Flomies › Sleep Timeout Android
Tagged: polling engine, stand by
Hi, we have just bought wonderful Flojack.
Our enviroment is time attendance program, both on iOS and Android, with NFC badges.
How can i prevent the stand-by of the flojack, our needs it’s to be always active so i can punch-in everytime i need.
We tried to use simply a timer:
– starting the reader the timer starts (max is 20 seconds)
– when for example are passed 10 seconds and i perform again the reader start, or the reader reset, the timer does not reset and remain 10.
our needs is to keep it always on, can you help us? we can’t understand how implement with android code.
Thanks,
Hi Alessio, this is a tricky thing to code since you need to be conscious of the thread priority of the audio driver. Also you need to respond appropriately to audio jack plug/unplug events and only reset the reader when these occur. If you reset the reader on every tag poll sequence you will encounter long read times and likely get the reader out of sync with the host device. This is when things can become unresponsive. The sequence should be:
This is what we call a polling engine and is built into the Flomio SDK that’s included with the FloJack purchase.
You must be logged in to reply to this topic.