Skip to content

Error sending message [D440010000] (0,5) => [] #9

@heydre

Description

@heydre

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions