AT

at 的 AT+QIOPEN命令连接不上

发布于 2019-02-23 17:44:59
在 rt-thread 4.0.0 版本中,at 模块,经常连接不上外网,不知道为什么,log 如下:

[I/at] 10.74.97.162
[D/at]
[D/at] +QIACT: 1,1,1,"10.74.97.162"
[D/at]
[I/at] 1,1,1,"10.74.97.162"


[E/at.ec20] socket (0) connect failed, maybe the socket was not be closed at the last time and now will retry.
[E/at.ec20] 567 : Socket has been closed
[E/at.ec20] socket (0) connect failed, failed to establish a connection.

[E/at.ec20] 568 : Operation busy
[E/at.ec20] event_result:16
[E/at.ec20] socket (0) connect failed, maybe the socket was not be closed at the last time and now will retry.

[E/at.ec20] 567 : Socket has been closed
[E/at.ec20] socket (0) connect failed, failed to establish a connection.

[E/at.ec20] 567 : Socket has been closed
[E/at.ec20] event_result:16
[E/at.ec20] socket (0) connect failed, maybe the socket was not be closed at the last time and now will retry.


查看更多

关注者
0
被浏览
2.1k
4 个回答
Cheney_Chen
Cheney_Chen 2019-02-25
建议楼主添加更多日志信息调试,可能是解析方式错误导致的域名解析错误、socket 连接数量限制等问题,从目前描述来看很难定位问题
lukgeeker
lukgeeker 2019-02-27
感觉像是 信号很差,应该是 域名解析的问题,at_socket_connect 没有更多的返回错误,所以我也不知道,他实际上是使用 AT+QIOPEN 的 at 命令的。
Cheney_Chen
Cheney_Chen 2019-03-01
AT 组件有 RAW 数据打印功能,可以开启之后查看具体 AT 数据收发情况,RAW 数据功能可以直接在 ENV 中开启,需要注意的是开启 RAW 数据之后需要调节 Shell 串口设备的波特率为 921600.
梦笑真美
梦笑真美 2019-11-18
楼主解决了嘛,我的也有这个问题

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友