Hi C.J.

Ensure you have next lines after connection:

        // KEEP_ALIVE messages are being forwarded to the LLRPEndpoint
        connection.getHandler().setKeepAliveForward(true);

Also, you must implement next lines in your messageReceived() method:

        if (llrpMessage instanceof KEEPALIVE) {
            log.debug("received keepalive message from the reader: " +
readerId);
            setAlive(true);
        }

Regards,

HHC

On Fri, Mar 23, 2012 at 7:24 AM, C. J. <[email protected]> wrote:

> Hi everyone.
>
> I've developed a complex RFID middleware using the LTK-Java library but I
> still got an open (apparently dumb) point: I can't handle the keepalive
> messages from the reader.
>
> The thing is, I can see in the Logger all that kal messages (as if I use
> some sniffer such as Wireshark), but ain't no notification received by the
> main interface, the method messageReceived() in the class implementing the
> LLRPEndpoint interface.
>
> Obviously they are there, so I do really think that the LTK isn't
> forwarding the keepalives "all the way up" thus I can treat them as the
> rest of messages (READER_EVENT_NOTIFICATION, RO_ACCESS_REPORT, etc.).
>
> Does anyone out there know how to set the LTK to kick out the keepalives
> through the messageReceived() function so I can handle the connection
> between the stations (the readers) and the module that will be interacting
> with my middleware? I'd need to show all the reader connection statuses.
>
> Every try to shed some light will be very appreciated.
>
>
> Kind regards.
>
> Some information you might be aware of:
> Using Impinj's Octane 4.8 with LTK-Java 10.14.0.240 with dependencies.
> Working with Impinj's Speedway Revolution UHF Reader R-420.
> Client initiated connection (reader awaits for connection).
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> llrp-toolkit-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
>
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to