itas109 / CSerialPort

CSerialPort - lightweight cross-platform serial port library for C++/C/C#/Java/Python/Node.js/Electron
https://blog.csdn.net/itas109/article/details/84282860
Other
730 stars 339 forks source link

能否支持监听已打开串口? #48

Closed JohnnyZhang0628 closed 3 years ago

JohnnyZhang0628 commented 3 years ago

你好,该项目能否支持监听已打开串口?

itas109 commented 3 years ago

暂不支持真正意义的串口监听。如果是用CSerialPort写的串口应用,可以在接收响应函数做串口转发,来间接实现串口监听。

JohnnyZhang0628 commented 3 years ago

好的,谢谢了。真正监听串口是不是要重写驱动啊?

itas109 commented 3 years ago

好的,谢谢了。真正监听串口是不是要重写驱动啊?

是的,需要写驱动或者hook来实现

JohnnyZhang0628 commented 3 years ago

好吧,希望能加上这个功能。