EC25 GPS自动初始化

huangapple go评论119阅读模式
英文:

EC25 GPS auto initialize

问题

I am using EC25 with embedded board using ubuntu.
当板子启动时,EC25没有从ttyUSB1响应。但如果我在ttyUSB3上写入以下命令:

AT+QGPS=1 

我可以从ttyUSB1获得响应(位置、速度等)。
如何在设备上电时自动执行此操作?
我正在尝试使用gtkterm
我尝试了不同的方法,但没有成功。
我在板子上运行Python,并且有一个用于自动启动我的Python代码的crontab文件。
我想知道用于解决我的问题的命令行或设置。

  • 我已经尝试过AT+QGPSCFG=“autogps”AT+QGPSCFG=“autogps”[,<autogps>],但它报错 "gne error: 501(device user manuel)"
  • 我尝试过AT+QGPSAUTOSTART=1(我不记得在哪里看到这个命令),但它报错 "error"

问题已解决!
首先
AT+QGPS=1
返回OK
然后
AT+QGPSCFG="autogps",1
返回OK
用于检查命令;
AT+QGPSCFG="autogps"
返回autogps, 1

英文:

I am using EC25 with embedded board using ubuntu.
When board start working EC25 doesnt response from ttyUSB1. But if I write

AT+QGPS=1 

at ttyUSB3, I can get response(location,speed etc.) from ttyUSB1.
How can I make this automatically when device power on?
I'm trying with gtkterm.
I tried different thing but didnt make it.
I'm running python on board and I have crontab file for auto start my python code.
I would like to know a command line or settings for fixing my problem.

  • I already tried to AT+QGPSCFG=“autogps” and AT+QGPSCFG=“autogps”[,&lt;autogps&gt;] but it given error "gne error: 501(device user manuel)
  • I tried to AT+QGPSAUTOSTART=1 (I dont remember where I saw this command) but its given "error"

Problem Solved!
First
AT+QGPS=1
return OK
then
AT+QGPSCFG=&quot;autogps&quot;,1
return OK
for checking the command;
AT+QGPSCFG=&quot;autogps&quot;
return autogps, 1

答案1

得分: 0

使用关键词“EC25 GPS”在搜索引擎上找到一个支持论坛https://forums.quectel.com/t/ec25-do-not-get-gps-position-from-gnss-module-after-reboot/9353

为了在上电后自动运行GPS,请参考附加文档中的AT+QGPSCFG=“autogps”命令。

该页面包含一个手册的下载链接。

2.1.9. AT+QGPSCFG=“autogps”[,&lt;autogps>] 启用/禁用GNSS的自动运行

我猜您可能需要使用普通(打字机)引号而不是印刷引号。

请注意,&lt;autogps&gt;是一个占位符,根据手册,必须替换为01[]标记可选部分。正确的命令可能是

AT+QGPSCFG="autogps",1
AT+QGPSCFG="autogps",0
AT+QGPSCFG="autogps"
英文:

Using a search engine with keywords "EC25 GPS" I found a support forum https://forums.quectel.com/t/ec25-do-not-get-gps-position-from-gnss-module-after-reboot/9353

> To make GPS automatically run after power on, please refer to command AT+QGPSCFG=“autogps” of the attached document.

The page contains a download link to the manual.

> 2.1.9. AT+QGPSCFG=“autogps”[,&lt;autogps>] Enable/Disable GNSS to Run Automatically

I guess you might have to use normal (typewriter) quotes instead of typographical quotes.

Note that &lt;autogps&gt; is a placeholder which has to be replaced with 0 or 1 according to the manual. [ and ] mark optional parts. Correct command might be

AT+QGPSCFG=&quot;autogps&quot;,1
AT+QGPSCFG=&quot;autogps&quot;,0
AT+QGPSCFG=&quot;autogps&quot;

huangapple
  • 本文由 发表于 2023年6月19日 22:01:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76507384.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定