Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt task error 中断执行Detected event: 0x9db00000 #32

Closed
lappaport opened this issue Dec 27, 2017 · 19 comments
Closed

mqtt task error 中断执行Detected event: 0x9db00000 #32

lappaport opened this issue Dec 27, 2017 · 19 comments
Labels

Comments

@lappaport
Copy link

[22:06:55.132] AT 01 : TaskName: CFW -- sys_timeout msecs=250,handler=0x880e5e21,arg=0x0
[22:06:55.132] : Fn 1018421 T1 0768 T2 01 T3 02 Time 00 15 13 582
[22:06:55.134] AT 01 : TaskName: Task Idle -- timer_sender handler=0x881645e1,arg=0x82139e70
[22:06:55.134] AT 01 : TaskName: CFW -- sys_dotimeout handler=0x881645e1,args=0x82139e70
[22:06:55.234] AT 01 : TaskName: CFW -- sys_timeout msecs=5000,handler=0x881645e1,arg=0x82139e70
[22:06:55.286] : Fn 1018457 T1 0768 T2 11 T3 38 Time 00 15 13 746
[22:06:55.286] AT 01 : TaskName: Task Idle -- timer_sender handler=0x880e5e21,arg=0x0
[22:06:55.286] AT 01 : TaskName: CFW -- sys_dotimeout handler=0x880e5e21,args=0x0
[22:06:55.286] AT 01 : TaskName: CFW -- tcp_slowtmr: processing active pcb
[22:06:55.286] AT 01 : TaskName: CFW -- tcp_slowtmr: polling application
[22:06:55.286] AT 01 : TaskName: CFW -- lwip_tcp_event conn=0x82124c38,lwip_event:4,pcb:0x8213a098
[22:06:55.286] AT 01 : TaskName: CFW -- tcp_output: nothing to send (0x0)
[22:06:55.301] AT 01 : TaskName: CFW -- tcp_output: snd_wnd 29312, cwnd 2848, wnd 2848, seg == NULL, ack 10480
[22:06:55.417] AT 01 : TaskName: CFW -- sys_timeout msecs=250,handler=0x880e5e21,arg=0x0
[22:06:55.539] : Fn 1018511 T1 0768 T2 13 T3 41 Time 00 15 13 996
[22:06:55.539] AT 01 : TaskName: Task Idle -- timer_sender handler=0x880e5e21,arg=0x0
[22:06:55.539] AT 01 : TaskName: CFW -- sys_dotimeout handler=0x880e5e21,args=0x0
[22:06:55.655] AT 01 : TaskName: CFW -- sys_timeout msecs=250,handler=0x880e5e21,arg=0x0
[22:06:55.786] : Fn 1018565 T1 0768 T2 15 T3 44 Time 00 15 14 247
[22:06:55.786] AT 01 : TaskName: Task Idle -- timer_sender handler=0x880e5e21,arg=0x0
[22:06:55.786] AT 01 : TaskName: CFW -- sys_dotimeout handler=0x880e5e21,args=0x0
[22:06:55.786] AT 01 : TaskName: CFW -- tcp_slowtmr: processing active pcb
**[22:06:55.871] : Detected event: 0x9db00000
[22:06:55.871] : Detected event: 0x9db10000_**_
[22:06:55.971] AT 01 : TaskName: CFW -- sys_timeout msecs=250,handler=0x880e5e21,arg=0x0

@Neutree
Copy link
Contributor

Neutree commented Dec 27, 2017

死机了么,在什么情况下出现的

@lappaport
Copy link
Author

跑mqtt demo的过程中,十五分钟内死机两次!

@lappaport
Copy link
Author

mqtt服务器是正常的,其他类型设备没问题。

@Neutree
Copy link
Contributor

Neutree commented Dec 28, 2017

改过代码么

@lappaport
Copy link
Author

只是改了mqtt的server ip,加入了mqtt 的user和password,其他没有动过。

@lappaport
Copy link
Author

#ifndef _DEMO_MQTT_H
#define _DEMO_MQTT_H

#define BROKER_IP "119.23.29.210"
#define BROKER_PORT 1883
#define CLIENT_ID "Neucrack"
#define CLIENT_USER "mq5555tt"
#define CLIENT_PASS "mq5555tt"
#define SUBSCRIBE_TOPIC "neucrack/gprs"
#define PUBLISH_TOPIC "neucrack/app"
#define PUBLISH_INTERVAL 10000 //10s
#define PUBLISH_PAYLOEAD "hello I'm from gprs module"

#endif

ci.client_id = CLIENT_ID;
ci.client_user=CLIENT_USER;
ci.client_pass=CLIENT_PASS;
ci.keep_alive = 60;
ci.clean_session = 1;
ci.use_ssl = false;

其他未做任何改动。

@Neutree
Copy link
Contributor

Neutree commented Dec 28, 2017

我看看

@Neutree
Copy link
Contributor

Neutree commented Dec 28, 2017

连接失败,你的MQTT服务器没开

@lappaport
Copy link
Author

不好意思,这个是正确的地址,刚刚发到github上改了下的。

#define BROKER_IP "119.23.209.214"
#define BROKER_PORT 1883
#define CLIENT_ID "Neucrack"
#define CLIENT_USER "mqtt"
#define CLIENT_PASS "mqtt"
#define SUBSCRIBE_TOPIC "neucrack/gprs"
#define PUBLISH_TOPIC "neucrack/app"
#define PUBLISH_INTERVAL 10000 //10s
#define PUBLISH_PAYLOEAD "hello I'm from gprs module"

非常抱歉,感谢。

@lappaport
Copy link
Author

麻烦用这个测试机。

@Neutree Neutree added the bug label Dec 28, 2017
@Neutree
Copy link
Contributor

Neutree commented Dec 28, 2017

宕机问题已经修复,获取最新代码即可。

造成死机是因为MQTT连接被断开的时候内存非法访问造成的,
造成断线的原因可能是网络不好,也有可能是有另一台机器使用同一个用户登录mqtt broker,导致broker迫使这个客户端断线

@Neutree Neutree closed this as completed Dec 28, 2017
@lappaport
Copy link
Author

神速啊,厉害。

@lappaport
Copy link
Author

_20171228155308
_20171228164428
仍然在多次十几分钟内出现同样错误。1、目前只有一台a9的默认clientid登录。2、网络不好的情况可否sdk可否加入自动重连的机制。
感谢!

@Neutree
Copy link
Contributor

Neutree commented Dec 28, 2017

确认已经更新了么,下载这 V1.4001

@lappaport
Copy link
Author

是的,就是下午新下载的1.401重新编译,下载到板子上去的。

@Joker-Zhao
Copy link

我使用代码版本V1.4001,未改过任何代码,直接编译烧写到A9开发板里面,也出现了这种问题

@Neutree Neutree reopened this Jan 4, 2018
@Neutree
Copy link
Contributor

Neutree commented Jan 15, 2018

@lappaport
Copy link
Author

跑了12小时,mqtt正常,感谢。

@Neutree
Copy link
Contributor

Neutree commented Jan 16, 2018

这个问题后续我们还会继续跟踪的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants