通过tcp向enfora gps trakers OTA发送命令 [英] Send commands to enfora gps trakers OTA via tcp

查看:87
本文介绍了通过tcp向enfora gps trakers OTA发送命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我为一家公司提供服务,用gps设备跟踪车辆,现在我需要找到一种方法来发送命令到一个使用tcp协议在空中的enfora设备,我已经尝试了许多方法,但遗憾的是没有结果。我只能通过短信发送命令。



我想发送命令来请求当前位置,打开门等等。



这是我向其他品牌发送AT命令的代码,它就像一个魅力!

Hi guys,

I work for a company that provide service to track vehicles with gps devices, rigth now I need to find a way to send commands to an enfora devices over the air using the tcp protocol, I have tried many ways with no results unfortunately. I just can send commands via sms.

I would like to send commands to request the current position, to open doors, etc.

This is the code how I sent AT commands to other brands and it works like a charm!

var toBeSend = Encoding.ASCII.GetBytes(msj);
tcpClient.Client.Send(toBeSend);



有什么问题,有谁知道?



如果有人有脚本,无论是c#,Java,PHP,Python等,请与我分享。


What can be the problem, anyone knows?

If anyone have a script no matter if it is in c#, Java, PHP, Python, etc. please share it with me.

推荐答案

做了你解决了你的问题?我能够通过TCP发送命令没有任何问题,但似乎设备忽略了它们。你正在使用的包格式怎么样?你能提供一个通过TCP发送的有效AT命令的每个字节的示例字节吗?



我可以给你我用来管理TCP连接的Java类服务器模式,我自己做了。
Hi, did you solve your problem? I’m able to send commands via TCP with no problems but it seems like the device is ignoring them. How is the package format you’re using? Could you provide an example byte per byte of a valid AT command sent over TCP?

I could give you the the Java class I’m using for managing TCP connections in server mode, I made it myself.


这篇关于通过tcp向enfora gps trakers OTA发送命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆