Hi, I'm currently working on a custom protocol handler for a tracker that only uses GSM cell information. I have the basics working, but I ran into an issue. The device sends the GSM cell information and waits for an acknowledgement (or a timeout), before it closes the TCP connection. The get location (from OpenCellId) works OK when I wait for the timeout. When I send an acknowledgement and the device closes the connection, the position is not updated. Is there a way to wait for the information from OpenCellId to be processed before sending the acknowledgement to the device? Or is it possible to update the position, even if the connection is no longer active? Any advice would be appreciated.
It's actually a known issue. If you can figure out a way, it would be nice.
OK, good to know. My java experience is limited, so it will be hard for me to find a fix. I did some debugging and it appears that the channelRead method in BaseDataHandler.java isn't called when the connection is closed by the client. Atm I have no idea why.
Hi, I'm currently working on a custom protocol handler for a tracker that only uses GSM cell information. I have the basics working, but I ran into an issue. The device sends the GSM cell information and waits for an acknowledgement (or a timeout), before it closes the TCP connection. The get location (from OpenCellId) works OK when I wait for the timeout. When I send an acknowledgement and the device closes the connection, the position is not updated. Is there a way to wait for the information from OpenCellId to be processed before sending the acknowledgement to the device? Or is it possible to update the position, even if the connection is no longer active? Any advice would be appreciated.