观看串口活动。 [英] Watching serial port activity.

查看:82
本文介绍了观看串口活动。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在编写一些使用串口

(RS-232)的python应用程序。有什么方法可以监控串口上的所有活动

并在交易发生时打印出来吗?我是b / b
试图对微控制器串行程序进行反向工程,而且我想要看看芯片发回的任何响应。

问候,



Hi,

I''m writing a couple python applications that use the serial port
(RS-232) quite extensively. Is there any way I can monitor all activity
on the serial port and have it printed as the transactions occur? I''m
trying to reverse engineer a microcontroller serial routine and I''d
like to see any response the chip sends back.

Regards,
Ken

推荐答案

2006-05-30,xkenneth< ; XK ****** @ gmail.com>写道:
On 2006-05-30, xkenneth <xk******@gmail.com> wrote:
我正在编写一些相当广泛使用串口
(RS-232)的python应用程序。有什么方法可以监控串口上的所有活动并在事务发生时打印出来吗?我正在尝试对微控制器串行程序进行逆向工程,我希望看到芯片发回的任何响应。
I''m writing a couple python applications that use the serial port
(RS-232) quite extensively. Is there any way I can monitor all activity
on the serial port and have it printed as the transactions occur? I''m
trying to reverse engineer a microcontroller serial routine and I''d
like to see any response the chip sends back.




什么操作系统?


在windows下你可以使用来自sysinternals的portmon。


我认为Linux没什么用的。


我已经知道OS X了。


-

Grant Edwards
gr****@visi.com


我是使用linux。

I''m using linux.


2006-05-30,xkenneth< xk ****** @ gmail.com>写道:
On 2006-05-30, xkenneth <xk******@gmail.com> wrote:
我正在使用linux。
I''m using linux.




[引用足够的上下文通常被认为是一种好习惯

这样你的帖子对没有访问旧版

帖子的人有意义。]


在Linux下有没有真的没什么。 IIRC,很多年前,

有人编写了一个内核模块,它在应用程序和串口之间插入了自己的b $ b和记录的操作,但是

上次我试图找到它时,我没有成功。


如果你想构建一个内核,添加一些printk()调用

到低级串行驱动程序或tty

线条规则层可能会做你想要的。


-

格兰特爱德华兹你好!佑!每个人都可以在GENETIC POOL处获得


visi.com



[It''s generally considered good practice to quote enough context
so that your post makes sense to people without access to older
postings.]

Under Linux there isn''t really anything. IIRC, many years ago,
somebody had written a kernel module that inserted itself
between application and serial port and logged operations, but
the last time I tried to find it, I was unsuccessful.

If you feel like building a kernel, adding a few printk() calls
to either the low-level serial driver or the tty
line-discipline layer might do what you want.

--
Grant Edwards grante Yow! YOW!! Everybody out
at of the GENETIC POOL!
visi.com


这篇关于观看串口活动。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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