Dear Adrian,
after establishing a connection between smartphone and acr-reader i regularly get this error message after some seconds: Error sending message D440010000 => []
I don't know what this causes, but i got a much more stable connection by putting a sleep in the onConnection method in LlcpOverNfcip while waiting for new messages to be send. In other words, instead of permanently sending empty messages i just wait for some milliseconds if there is no job to do.
Pseudo code:
onConnection(NFCIPConnection connection) throws IOException {
...
while (!Thread.interrupted()) {
if CurrentlyNoMessageToSend then
SleepFor500ms
...
}
Best regards,
Björn
Dear Adrian,
after establishing a connection between smartphone and acr-reader i regularly get this error message after some seconds: Error sending message D440010000 => []
I don't know what this causes, but i got a much more stable connection by putting a sleep in the onConnection method in LlcpOverNfcip while waiting for new messages to be send. In other words, instead of permanently sending empty messages i just wait for some milliseconds if there is no job to do.
Pseudo code:
onConnection(NFCIPConnection connection) throws IOException {
...
while (!Thread.interrupted()) {
if CurrentlyNoMessageToSend then
SleepFor500ms
...
}
Best regards,
Björn