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

RTS #82

Open
xixiznaopq opened this issue Dec 16, 2022 · 5 comments
Open

RTS #82

xixiznaopq opened this issue Dec 16, 2022 · 5 comments

Comments

@xixiznaopq
Copy link

image
1.我把流控选择RTS或者DSR之后发命令是没有任何反应的
2.如果我想自己加RTS的控制,比如RTS LOW/ RTS HIGH,我应该在哪里的代码进行添加呢

@Neutree
Copy link
Owner

Neutree commented Dec 16, 2022

默认不勾选流控这两个按钮用来手动控制电平, 勾选了流控时是使用的 pyserial 的流控功能,代码:

elif conf_type == "flowcontrol":

如果你想自己改的话,也许改 收发函数就行了

def send(self, data : bytes):

@xixiznaopq
Copy link
Author

1671183048934

这个去了不勾选,选择下拉列表的东西还是发不出去,下面那个问题我打错了字是添加

@Neutree
Copy link
Owner

Neutree commented Dec 16, 2022

没断好句, 是
默认不选择使用流控的时候,这两个按钮只能用来手动控制DTR 和RTS 引脚的电平;
流控选择了 RTS/DTR 时, 是使用的 pyserial 库 的流控功能,理论上是可以的,但是我没有实际测试过。

如果这个流控功能不能使用,你可以改代码手动在发送和接收的代码处加流控逻辑。不过理论上 pyserial 的流控功能能直接用才对,我没有这个需求过 没测过所以不知道 pyserial 的流控好不好用

@xixiznaopq
Copy link
Author

那我想问这块代码我应该要改哪里

@Neutree
Copy link
Owner

Neutree commented Dec 16, 2022

def send(self, data : bytes):

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

No branches or pull requests

2 participants