停止打印日志? [英] grabserial stops printing the log?

查看:146
本文介绍了停止打印日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试 Grabserial 测量嵌入式Linux设备的启动代码。它以某种方式工作,但是过一会儿(这意味着更长的启动代码-谈论> 26 s),它停止打印消息,但是抓取程序仍在运行-我必须按下[CTRL-C]来检索控件。我检查了带有腻子的串行端口,并且该端口可以正常工作,因此它是抓纸器的问题。但是我想不出它是什么。

i tried Grabserial to measure the startup code of my embedded Linux device. It works somehow but after a while (that means a longer startup code - talking about > 26 s) it stops printing out the messages, but grabserial still is running - i have to hit the [CTRL-C] to retrieve control. I checked the serial port with putty and it's working so it's a problem with grabserial. But i can't think of what it is.

我下载并安装了两个安装变量,这只是改变了外观,但卡住了在同一点。

I downloaded and installed with both of the 2 install-variants and it just changed the look-and-feel but stucks at the same point.

有人遇到过同样的问题吗?

Does anyone ever had the same problem ?

希腊人

[edit:]我刚刚检查了代码,没什么特别的,实际上应该只是在设置[CTRL-C]或计时器并用完时才中断。但是该程序甚至没有中断,只是停止打印到控制台。

[edit:] i just checked the code, it's nothing special and actually should just break when [CTRL-C] or a timer was set and running out. But the program doesn't even break it just stops printing to console.

[edit2:]我发现,该脚本处理起来太慢了。似乎只有在串行线路发送了某些内容(例如中断)时,它才能输出信息,但是好像发送了2个字母,但只显示了1个。由于脚本处理比启动慢,因此我看不到所有内容,只有它能够显示的内容才能显示出来,直到我的设备完成启动为止。我尝试过使用重新启动循环过程,因此它一遍又一遍地获取新消息,并且从未停止打印。

[edit2:] i found out, that script is too slow for processing. It seems like it only can output information when something has been sent by the serial line (like an interrupt), but it's like 2 letters transmitted but only 1 is shown. Since the script-processing is slower than booting i can't see everything, only the stuff it managed to show until my device finishes booting. I tried this with a reboot-loop process, so it gets new messages over and over again, and it never stopped printing out.

我仍然需要对此进行支持,在我必须自己编写代码之前,有人有什么聪明的解决方案吗?

I still need support for this, does anyone have smart solution before i have to code it by my own?

推荐答案

我刚刚开始使用grapserial,没有重现你的问题。
当前抓取程序(1.6.0)确实可以自动停止程序。

I've just started using grabserial and I've not reproduced your problem. Current grabserial (1.6.0) does have an option to autostop your program.

-e, --endtime=<secs> End the program after the specified seconds have elapsed.

如果可以帮助的话,这是我的命令行(我已经从git下载了) / p>

In case it could help, this is my command line (I've downloaded it from git)

./grabserial -v -d "/dev/ttyUSB1" -b 115200 -w 8 -p N -s 1  -t

这篇关于停止打印日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆