GPS 追踪器连接错误
我目前正在尝试在服务器和 GPS 跟踪器 (GT02 - GT06) 之间实现一个简单的通信模块。使用 JBoss Netty ,但由于某些原因,我无法与跟踪器保持连接打开太长时间。在发送第一个数据流几秒钟后,它似乎下降了。
另外有谁知道我如何管理 GT06 设备吗?每次连接时它都会发送不同的会话密钥,因此很难与 IMEI 关联。
感谢您的帮助 !这让我抓狂。
I am currently trying to implement a simple communication module between a server and GPS trackers (GT02 - GT06) . Using JBoss Netty , but for some reasons I cant keep the connection open for too long with the trackers. It seems to drop after a few seconds of sending the first stream of data.
Also Does anyone have an idea how I can manage the GT06 device ? It keeps sending a different Session key everytime it connects , making it hard to relate to the IMEI.
Thanks for your help ! It's driving me nuts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试在netty中启用tcp keepalives。参见[1]。
[1] http:// netty.io/docs/stable/api/org/jboss/netty/channel/socket/SocketChannelConfig.html#setKeepAlive(boolean)
You could try to enable tcp keep alives in netty. See [1].
[1] http://netty.io/docs/stable/api/org/jboss/netty/channel/socket/SocketChannelConfig.html#setKeepAlive(boolean)