我买了一个 Simcom (Sim7080G) 模块,用于地理定位并通过 TCP 发送数据。 这些模块在市场上很新(它于 2019 年年中首次推出)并且有一些奇怪的功能。我想知道使用它的人是否遇到同样的问题。
我的目标是获取 GNSS(纬度/经度)信息,并通过 TCP 发送它们。
激活并获取GNSS信息
AT+CGNSPWR=1
返回 OK
AT+CGNSINF
返回 +CGNSINF: 1,1,20200517191239.000,4x.xxxxxx,6.xxxxxx,473.769,0.00,,0,,1.9,2.1,1.0,,7 ,,7.9,6.0
连接到任何 TCP 服务器
AT+CNACT=0,1
返回 OK\r\n\r\n+APP PDP: 0,ACTIVE
AT+CAOPEN=0,0,"TCP",151.101.1.69,80
(151.101.1.69是stackoverflow.com的ip地址)
--> 等待一段时间(比如 +40 秒)然后:
+CAOPEN: 0,23\r\n\r\nOK
代码 23
表示:23 Remote refuse
,但在我的例子中,连接从未到达服务器。
只能使用 GNSS 或 TCP,但不能同时使用
所有这一切的奇怪之处在于,我可以连接到 TCP 服务器,但是当我激活 GNSS 时它就停止工作了。
最佳答案
我给 Simcom 技术支持发了邮件。 在坚持让 Simcom 工程师解决我的问题后,我得到了答复。 我鼓励他们更清楚地了解他们的文档,因为这些信息无处可寻(这个模块很新,所以我认为他们在文档中遗漏了它)。
希望以同样的方式帮助某人,或者不要犯同样代价高昂的错误:
Hi Dardan,
"it is not possible to use GNSS and TCP at the same time"
This is known limitation for this module, as there are limitation for LTE and GNSS part, they can not run simultaneously because they are sharing part of RF components(SIM7070G low cost version of SIM7000G) so it is time MUX for LTE and GNSS which means the GNSS performance could not be good(if customer needs to send GNSS data to server in very short interval such as <10 seconds), for SIM7000G LTE and GNSS can work simultaneously without problem. so SIM7070G could be a good solution for "parcel tracking" etc, which do not need the continue navigation. please go for SIM7000G, thanks.
xxxx Sun
关于tcp - 使用 GNSS 时,Sim7080G 模块无法通过 TCP 发送数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61857667/