密集架死机问题

2022-08-22 14:01:06 星期一

背景

55所mjj移动列时不时会死机(每次死机位置是随机地);考虑过是不是线程栈问题;是不是串口接收死到中断了;是不是485接收、解析数据问题;等等...

造成原因

如果一下子盘点到很多文件盒,屏幕上更新文件盒数量时,会导致死机
image

死机时调试串口输出:
[lcd] : sync B tag count = 62
[rs485cmt] : ctrl 1 layer 13 addr 2 pos led off
***error (len <= rt_dma_calc_recved_len(serial)) assertion failed at function:rt_dma_recv_update_get_index, line number:373

image

解决办法

1、改变屏幕上文件盒数量更新方式,原来是来一个更新一次,改为每隔2秒钟更新一次;

引出额外问题

某列重启多次后,点击移动列屏幕使之移动,但mjj不能移动;
原因:固定列没有发出移动信号

tcp recive data 24 bytes : 00 00 00 14 2a 2a 23 23 01 14 00 00 01 01 fe 08 00 00 05 00 01 80 55 aa 

msh >
msh >
msh >tcp recv len: 24
tcp recive data 24 bytes : 00 00 00 14 2a 2a 23 23 01 14 00 00 01 01 fe 08 00 00 05 00 01 80 55 aa 
[3] : ===================== sync cmd = 3 from 3 shelves ================
[3] : ===================== sync cmd = 3 from 3 shelves ================
[3] : ===================== sync cmd = 3 from 3 shelves ================
[3] : ===================== sync cmd = 3 from 3 shelves ================
[3] : ===================== sync cmd = 3 from 3 shelves ================
tcp recv len: 24
tcp recive data 24 bytes : 00 00 00 14 2a 2a 23 23 01 14 00 00 01 01 fe 08 00 00 05 00 01 80 55 aa 
tcp recv len: 24
tcp recive data 24 bytes : 00 00 00 14 2a 2a 23 23 01 14 00 00 01 01 fe 08 00 00 05 00 01 80 55 aa 
[3] : ===================== sync cmd = 3 from 3 shelves ================
[3] : ===================== sync cmd = 3 from 3 shelves ================
tcp recv len: 24
tcp recive data 24 bytes : 00 00 00 14 2a 2a 23 23 01 14 00 00 01 01 fe 08 00 00 05 00 01 80 55 aa 

posted @ 2022-08-22 14:09  我爱茜茜公主  阅读(23)  评论(0)    收藏  举报